Loki icon indicating copy to clipboard operation
Loki copied to clipboard

Language settings are not reflected in localization

Open suguruTakahashi-1234 opened this issue 11 months ago • 1 comments

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 avatar Mar 26 '24 04:03 suguruTakahashi-1234

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!

suguruTakahashi-1234 avatar Mar 27 '24 08:03 suguruTakahashi-1234