Don Olmstead
2015-10-22 23:41:22 UTC
I was wondering about how to properly utilize the intl package. I'm not
actually using Google Translation Kit, the files are XLIFF and I'm
converting them over to ARB. The conversion isn't a problem I'm just not
sure if I'm doing things in an optimal way.
First question is whether I need a en_US ARB. So if I had this
String continueMessage() => Intl.message(
"Hit any key to continue",
name: "continueMessage",
args: [],
desc: "Explains that we will not proceed further until "
"the user presses a key");
Do I need to have a corresponding ARB like this?
"continueMessage": "âHit any key to continueâ",
"@continueMessage": {
"type": "text",
"placeholders": {}
}
Or is it assumed that en_US is the default locale and I don't need to
generate an ARB?
Second question is whether there is any sort of hierarchy to ARB files. So
lets say I had translations for en_US and en_GB which have the same values
except for one string which has the word color in it so in GB it should be
colour. Do I want to have an en ARB which has everything but that one
string and then an en_US which has the US version and one string that has
the GB version?
As a corollary if I had one Arabic translation would I want to just name it
ar or do I need to take the arabic values and write ar_AR, ar_EG etc?
Thanks!
actually using Google Translation Kit, the files are XLIFF and I'm
converting them over to ARB. The conversion isn't a problem I'm just not
sure if I'm doing things in an optimal way.
First question is whether I need a en_US ARB. So if I had this
String continueMessage() => Intl.message(
"Hit any key to continue",
name: "continueMessage",
args: [],
desc: "Explains that we will not proceed further until "
"the user presses a key");
Do I need to have a corresponding ARB like this?
"continueMessage": "âHit any key to continueâ",
"@continueMessage": {
"type": "text",
"placeholders": {}
}
Or is it assumed that en_US is the default locale and I don't need to
generate an ARB?
Second question is whether there is any sort of hierarchy to ARB files. So
lets say I had translations for en_US and en_GB which have the same values
except for one string which has the word color in it so in GB it should be
colour. Do I want to have an en ARB which has everything but that one
string and then an en_US which has the US version and one string that has
the GB version?
As a corollary if I had one Arabic translation would I want to just name it
ar or do I need to take the arabic values and write ar_AR, ar_EG etc?
Thanks!
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.