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

fix: issue #18 - Duplicate default strings.xml #19

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

adrienbusin
Copy link
Contributor

Copy default file strings.xml to value-DEFAULT_LANGUAGE/strings.xml if there is no variant, default file will be taken instead so we don't need to copy it.

This corrects this issue : #18
When a default language (ex: "en") has some variants (ex: en-GB) which have a translation which is different between them, before this fix, there was no values-en file created, so, for an other variant (ex: en-IE) the translation will be pull from en-GB and not from "en".
See google "resource resolution order" doc for more details -> https://developer.android.com/guide/topics/resources/multilingual-support?hl=fr#resource-resolution-examples

@GerardPaligot GerardPaligot merged commit 3b71c3d into Decathlon:main Jun 21, 2024
3 checks passed
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