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

feat(android): defaultLang option in tiapp.xml #14027

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Apr 30, 2024

Currently when you create an app that only uses one language that isn't EN it won't create the correct string structure. In the build file EN is set to always be the default language.

This PR will allow you to set <defaultLang>de</defaultLang> inside the tiapp.xml file so it will use a different language as the default file. If it is not set it will still use en

Test:

  • download: demo.zip
  • run it
  • it will show "test" in the logs (which is the name, not the translated string)
  • uncomment the <defaultLang>de</defaultLang> setting in tiapp.xml
  • run again
  • it will show "testDE"

Note: only tested and added it to Android as iOS already has a plist entry for default lang.

android/cli/commands/_build.js Outdated Show resolved Hide resolved
@m1ga
Copy link
Contributor Author

m1ga commented Apr 30, 2024

docs: tidev/titanium-docs#217

@cb1kenobi cb1kenobi merged commit 07e9a6a into master Apr 30, 2024
5 checks passed
@m1ga m1ga deleted the androidDefaultLang branch May 29, 2024 12:09
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

Successfully merging this pull request may close these issues.

2 participants