i18n-element
Version:
I18N Base Element for lit-html and Polymer
175 lines • 3.77 kB
JSON
{
"el5": {
"meta": {
"locales": [
"de",
"es",
"fr",
"ja",
"zh-Hans"
]
},
"model": {},
"label1": "Bound UI label 1",
"label2": "Bound UI label 2",
"label3": "Bound UI label 3"
},
"i18n-behavior-demo": {
"meta": {
"locales": [
"de",
"es",
"fr",
"ja",
"zh-Hans"
]
},
"model": {
"simple-input": {
"placeholder": "Placeholder String"
},
"data": {
"sender": {
"name": "Joe",
"gender": "male"
},
"recipients": [
{
"name": "Alice",
"gender": "female"
},
{
"name": "Bob",
"gender": "male"
},
{
"name": "Yoda",
"gender": "other"
}
]
}
},
"h2_1": "Simple String",
"simple": "UI Text String",
"h2_3": "Simple Attribute",
"h2_5": "Automatic Format",
"example-sentence": [
"This {1} with {2} is automatically converted to {3} to translate it as a whole with any parameter order.",
"example sentence",
"some parameters or embedded tags",
"<i18n-format>"
],
"h2_7": "Compound Format with <i18n-format>",
"compound-format-text": [
{
"0": "You ({3}) gave no gifts.",
"1": {
"male": "You ({3}) gave him ({4}) {5}.",
"female": "You ({3}) gave her ({4}) {5}.",
"other": "You ({3}) gave them ({4}) {5}."
},
"one": {
"male": "You ({3}) gave him ({4}) and one other person {5}.",
"female": "You ({3}) gave her ({4}) and one other person {5}.",
"other": "You ({3}) gave them ({4}) and one other person {5}."
},
"other": "You ({3}) gave them ({4}) and {1} other people gifts."
},
"{{recipients.length - 1}}",
"{{recipients.0.gender}}",
"{{model.data.sender.name}}",
"{{recipients.0.name}}",
"a gift"
],
"h2_9": "Parameters",
"pre_10": [
"lang = {1} ({2})",
"{{effectiveLang}}",
"{{langName}}"
],
"pre_11": [
"sender = {1}",
"{{stringifiedUser}}"
],
"pre_12": [
"recipients = {1}",
"{{stringifiedRecipients}}"
],
"langNames": {
"en": "English",
"ja": "Japanese",
"fr": "French"
}
},
"i18n-legacy-element": {
"meta": {
"locales": [
"de",
"es",
"fr",
"ja",
"zh-Hans"
]
},
"model": {},
"label1": "Legacy UI label 1",
"label2": "Legacy UI label 2",
"label3": "Legacy UI label 3"
},
"i18n-subclass-element": {
"meta": {
"locales": [
"de",
"es",
"fr",
"ja",
"zh-Hans"
]
},
"model": {
"input_8": {
"placeholder": "localizable attribute",
"i18n-attr": "i18n attr"
}
},
"label1": "Subclass UI label 1",
"label2": "Subclass UI label 2",
"label3": "Subclass UI label 3",
"span_6": [
"complex {1} sentences {2}",
"parameterized",
"abc"
]
},
"i18n-thin-element": {
"meta": {
"locales": [
"de",
"es",
"fr",
"ja",
"zh-Hans"
]
},
"model": {},
"label1": "Thin UI label 1",
"label2": "Thin UI label 2",
"label3": "Thin UI label 3"
},
"localizable-element": {
"meta": {
"locales": [
"de",
"es",
"fr",
"ja",
"zh-Hans"
]
},
"model": {},
"label1": "Localizable UI label 1",
"label2": "Localizable UI label 2",
"label3": "Localizable UI label 3"
},
"bundle": true
}