-
Notifications
You must be signed in to change notification settings - Fork 151
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
Fallback mapping only for output #307
Comments
It's been a while since I worked on this part but IIRC the fallback is applied to all formatters, so also Apple would use
What's your workflow? When/how/why do you re-import platform specific formats? Would specifying |
Hi @sebastianludwig,
Correct, but in practice, with the existing default configuration it feels like it is there just to fix the problem with Android not supporting zh-Hans / zh-Hant.
Our configuration is simple and I think quite typical. One (twine) file with multiple languages including zh-Hans and zh-Hant. Four different actions that we run:
And that is why I think that the problem of Android not supporting the standard codes for simplified/traditional Chinese should be addressed inside the Android formatter instead of using the generic fallback mechanism, that is also only one way (exporting). And yes, manually incorporating each language file with the |
Yes, I believe the current Android formatter does not support the newer BCP 47 support introduced in Android 7.0. It would be nice to add support for that and then remove the older fallback mechanism. Does this sound correct to you? |
@scelis Yes, that would work. If there would be support for BCP 47, then Android could use the modern language codes and no need to use fallbacks. The abstract formatter (and maybe other parts of Twine) would also need to support BCP 47:
|
I second that. BCP-47 support sounds good, but wouldn't that mean that android formatter will be Android 7.0+ only? What about earlier versions? I think there should be a fallback mechanism anyway. |
I noticed that the fallback mapping is only used for the output and not for the input. This creates some troubles like exporting a set of files that cannot be inserted back because incorrect language codes are resolved.
It also looks like so far the only purpose of the fallback mechanism is to support the Android regional codes that everybody use for simplified and traditional Chinese.
And then my question is, shouldn't the language code fix for Chinese be inside the Android formatter instead?
The text was updated successfully, but these errors were encountered: