Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language settings are not reflected in localization #228

Open
suguruTakahashi-1234 opened this issue Mar 26, 2024 · 1 comment
Open

Language settings are not reflected in localization #228

suguruTakahashi-1234 opened this issue Mar 26, 2024 · 1 comment

Comments

@suguruTakahashi-1234
Copy link

Description

Language settings do not seem to be reflected in localization.

I built in the simulator with Edit Scheme(Selected Production) > Options > App Language > English

a
b
c

Suggestion

Sorry, I have no idea of a fix, but apparently it may be that the project's localization settings always reflect the defaults.

Environment

  • Xcode 15.3
  • iPhone 15 Pro (simulator)
  • iOS 17.4
  • macOS 14.4.1
@suguruTakahashi-1234
Copy link
Author

suguruTakahashi-1234 commented Mar 27, 2024

Proposed Modifications

I have verified that the following steps resolve the issue:

  • Step 1: Add InfoPlist.xcstrings
    • Navigate to Production > Production > Resources > "Add New File…" and create InfoPlist.xcstrings
  • Step 2: Extract String Catalogs
    • Build the Production target to ensure InfoPlist.strings generates the CFBundleName and CFBundleDisplayName keys.
  • Step 3: Add English Localization
  • Step 4: Change Language Setting
    • From "Edit Scheme", change the language setting to English, then build again

a

By the way, if this is already mentioned officially somewhere, my bad! Just hoping it might help someone else stuck on the same issue.

This repository has always been very helpful in iOS app development. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant