Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6514] Localization not working on SDK 9.0.0.GA

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2020-03-27T18:48:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterMichiel van Eerd
AssigneeAbir Mukherjee
Created2020-03-26T13:37:45.000+0000
Updated2020-03-27T18:48:26.000+0000

Description

Since SDK 9.0.0.GA the localization isn't working anymore. When I build the app I also see the following warning for each line in the strings.xml file: {noformat} [INFO] [GRADLE] warn: removing resource nl.michielvaneerd.testlocalize:string/my_app_name without required default value. {noformat} My localize file strings.xml looks like this: {noformat} This is a test app {noformat}

Comments

  1. Joshua Quick 2020-03-26

    This is actually a bug on your end. The issue is that you're missing a "en" folder for the "app_name" string. English "en" is the default language fallback folder in case the device's locale doesn't match anything you have. This has actually always been required by Google. The gradle build tools are just better at reporting this issues like this.
  2. Michiel van Eerd 2020-03-27

    Hi Joshua, Thank you for the explanation, this solved my issue! Michiel
  3. Joshua Quick 2020-03-27

    Happy to help! :)

JSON Source