Skip to content

Commit

Permalink
[i18n] Add additional translations for de-DE, es-ES, fr-FR, id-ID, it…
Browse files Browse the repository at this point in the history
…-IT, js-JP, ko-KR, pt-PT, tr-TR, zh-CN, and zh-TW (#8788)

* [i18n-dev] Allow updating existing localization files when importing with "i18n:integrate"

Signed-off-by: Miki <[email protected]>

* [i18n] Add additional translations for de-DE, es-ES, fr-FR, id-ID, it-IT, ja-JP, ko-KR, pt-PT, tr-TR, zh-CN, and zh-TW

Signed-off-by: Miki <[email protected]>

* Changeset file for PR #8788 created/updated

---------

Signed-off-by: Miki <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 016f090 commit 87832f3
Show file tree
Hide file tree
Showing 21 changed files with 27,387 additions and 772 deletions.
4 changes: 4 additions & 0 deletions changelogs/fragments/8788.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
feat:
- [i18n-dev] Allow updating existing localization files when importing with "i18n:integrate" ([#8788](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8788))
- [i18n] Add additional translations for de-DE, es-ES, fr-FR, id-ID, it-IT, pt-PT, and tr-TR ([#8788](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8788))
- [i18n] Add additional translations for ja-JP, ko-KR, zh-CN, and zh-TW ([#8788](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8788))
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"lint:style": "scripts/use_node scripts/stylelint",
"i18n:check": "scripts/use_node scripts/i18n_check --ignore-missing --ignore-unused",
"i18n:extract": "scripts/use_node scripts/i18n_extract.js",
"i18n:integrate": "scripts/use_node scripts/i18n_integrate.js --ignore-missing --ignore-unused --update",
"makelogs": "scripts/use_node scripts/makelogs",
"uiFramework:compileCss": "cd packages/osd-ui-framework && yarn compileCss",
"osd:watch": "scripts/use_node scripts/opensearch_dashboards --dev --logging.json=false",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"formats": {
"number": {
"currency": {
"style": "currency"
},
"percent": {
"style": "percent"
}
},
"date": {
"short": {
"month": "numeric",
"day": "numeric",
"year": "2-digit"
},
"medium": {
"month": "short",
"day": "numeric",
"year": "numeric"
},
"long": {
"month": "long",
"day": "numeric",
"year": "numeric"
},
"full": {
"weekday": "long",
"month": "long",
"day": "numeric",
"year": "numeric"
}
},
"time": {
"short": {
"hour": "numeric",
"minute": "numeric"
},
"medium": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric"
},
"long": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric",
"timeZoneName": "short"
},
"full": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric",
"timeZoneName": "short"
}
}
},
"messages": {
"plugin-1.message-id-1": "Old translated text 1",
"plugin-2.message-id-1": "Old translated text 1",
"plugin-2.message-id-2": "Old translated text 2",
"plugin-3.message-id-1": "Old translated text 1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"messages": {
"plugin-1.message-id-1": "Translated text 1",
"plugin-1.message-id-2": "Translated text 2",
"plugin-2.message-id-1": "Translated text 1",
"plugin-2.message-id-2": "Translated text 2",
"plugin-4.message-id-1": "Translated text 1"
},
"invalid": {
"number": {
"currency": {
"style": "currency"
},
"percent": {
"style": "percent"
}
},
"date": {
"short": {
"month": "numeric",
"day": "numeric",
"year": "2-digit"
},
"medium": {
"month": "short",
"day": "numeric",
"year": "numeric"
},
"long": {
"month": "long",
"day": "numeric",
"year": "numeric"
},
"full": {
"weekday": "long",
"month": "long",
"day": "numeric",
"year": "numeric"
}
},
"time": {
"short": {
"hour": "numeric",
"minute": "numeric"
},
"medium": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric"
},
"long": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric",
"timeZoneName": "short"
},
"full": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric",
"timeZoneName": "short"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"invalid": {
"plugin-1.message-id-1": "Translated text 1",
"plugin-1.message-id-2": "Translated text 2",
"plugin-2.message-id-1": "Translated text 1",
"plugin-2.message-id-2": "Translated text 2",
"plugin-4.message-id-1": "Translated text 1"
},
"formats": {
"number": {
"currency": {
"style": "currency"
},
"percent": {
"style": "percent"
}
},
"date": {
"short": {
"month": "numeric",
"day": "numeric",
"year": "2-digit"
},
"medium": {
"month": "short",
"day": "numeric",
"year": "numeric"
},
"long": {
"month": "long",
"day": "numeric",
"year": "numeric"
},
"full": {
"weekday": "long",
"month": "long",
"day": "numeric",
"year": "numeric"
}
},
"time": {
"short": {
"hour": "numeric",
"minute": "numeric"
},
"medium": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric"
},
"long": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric",
"timeZoneName": "short"
},
"full": {
"hour": "numeric",
"minute": "numeric",
"second": "numeric",
"timeZoneName": "short"
}
}
}
}
8 changes: 8 additions & 0 deletions src/dev/i18n/__fixtures__/integrate_locale_files/tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"messages": {
"plugin-1.message-id-1": "Translated text 1",
"plugin-1.message-id-2": "Translated text 2",
"plugin-2.message-id-1": "Translated text 1",
"plugin-4.message-id-1": "Translated text 1"
}
}
90 changes: 90 additions & 0 deletions src/dev/i18n/__snapshots__/integrate_locale_files.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 87832f3

Please sign in to comment.