Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    Nanoscale Ceramic Film Boosts High-Frequency Performance

    November 7, 2025

    Hackers target massage parlour clients in blackmail scheme

    November 7, 2025

    Turning Security into Profit: Advanced VMware vDefend Opportunities for Cloud Service Providers

    November 7, 2025
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»ios – Strings Catalog in Xcode 26 with auto-generated symbols: device won’t use correct language
    iOS Development

    ios – Strings Catalog in Xcode 26 with auto-generated symbols: device won’t use correct language

    big tee tech hubBy big tee tech hubNovember 2, 2025002 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    ios – Strings Catalog in Xcode 26 with auto-generated symbols: device won’t use correct language
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I watched the talk at WWDC25 where Apple introduced the generated symbols feature for Strings Catalog.

    Since I have just started a new project as my first iOS development experience (I come from 10+ experience in Android), I found this feature very neat considering how it was done in the past.

    Anyway, I started implementing my very first string for English & French (my native tongue). The project is setup to use English as the default language.

    My project is decoupled into multiple targets (simple swift frameworks) and in my View target, where I am writing the UI code, I have created a resource folder in which I created the Strings Catalog which content is a follow:

    {
      "sourceLanguage" : "en",
      "strings" : {
        "loading data" : {
          "extractionState" : "manual",
          "localizations" : {
            "en" : {
              "stringUnit" : {
                "state" : "translated",
                "value" : "Loading data..."
              }
            },
            "fr" : {
              "stringUnit" : {
                "state" : "translated",
                "value" : "Chargement des données..."
              }
            }
          }
        }
      },
      "version" : "1.1"
    }
    

    And in the code:

    public struct HomeScreen: View {
        
        public init(){}
        
        @StateObject private var viewModel: HomeViewModel = Resolver.resolve()
        
        public var body: some View {
            content
        }
        
        @ViewBuilder
        private var content: some View {
            switch(viewModel.uiState) {
            case .loading:
                ProgressView(String(localized: .HomeScreenStrings.loadinData))
                    .frame(maxWidth: .infinity, maxHeight: .infinity)
                    .background(Color(.systemBackground))
            ... // other cases
        }
    }
    
    

    When building the app on my iPhone X - iOS 16 (the minimum supported by the app), the displayed text is in English. But my iPhone is setup French…


    If I switch to French as the default language in Project > Infos > Localizations, the french text is properly displayed which at least confirm the catalog is properly bundled in my app. By the way, both language (FR / EN) are listed in the project main Infos.plist.

    I also made sure to add the 2 supported languages in the Infos.plist of my View target:

    
    
    
    
        CFBundleLocalizations
        
            en
            fr
        
    
    
    

    But in Xcode it also shows that Default Localization is set to "$(DEVELOPMENT_LANGUAGE)". I don’t know if that matters somehow?

    Finally, if I print the preferred language of my device:

    print(Locale.preferredLanguages)
    

    it get: ["fr"].

    And there you have it. I don’t how to fix that. Am I doing something wrong?



    Source link

    autogenerated Catalog Correct Device iOS Language Strings symbols Wont Xcode
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    swift – Swiftui LazyVStack issue on iOS 17, 18

    November 6, 2025

    A deep dive into Collections, Sequences, and Iterators in Swift – Donny Wals

    November 5, 2025

    swift – TipGroup tip presented as sheet iOS 18 instead of a popover tip

    November 4, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Nanoscale Ceramic Film Boosts High-Frequency Performance

    November 7, 2025

    Hackers target massage parlour clients in blackmail scheme

    November 7, 2025

    Turning Security into Profit: Advanced VMware vDefend Opportunities for Cloud Service Providers

    November 7, 2025

    Developers decode their journeys from app ideas to App Store

    November 6, 2025
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    Nanoscale Ceramic Film Boosts High-Frequency Performance

    November 7, 2025

    Hackers target massage parlour clients in blackmail scheme

    November 7, 2025

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2025 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.