-
Notifications
You must be signed in to change notification settings - Fork 565
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: add translateble false to generated android strings #896
base: main
Are you sure you want to change the base?
Conversation
Just to make our lint happy
This probably will be never merged |
Two quick questions:
I think if we had the test and the answer to the question, it would make this actionable. |
For the first question, I can not say for sure. Is there an option to make it configurable? |
I think it is likely that someone is using SD to have multi-platform translatable strings, including strings on Android. To avoid breaking any users who might be using SD in this way, this functionality should be enabled by configuration. |
config options are passed in to this template via the function here: style-dictionary/lib/common/formats.js Lines 538 to 543 in b0a89ca
|
Its maybe a weird moment; we have lots of config but not much (I think none?) config specific to a platform / output format. This is the documentation for config: We have config for platforms and for individual files, but we don't have any info about documenting options for platform specific configurations. We will have to add something I think. |
#893
Description of changes:
Add translatable="false" attribute to the generated strings. I assume it is default and only one correct use of these strings.
Android documentation is here http://tools.android.com/recent/non-translatablestrings
It would be also great to add test for it here https://github.com/amzn/style-dictionary/blob/main/__tests__/formats/androidResources.test.js