logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.15k stars 395 forks source link

feat(elements): init i18n #6250

Closed gao-sun closed 1 month ago

gao-sun commented 1 month ago

Summary

set up i18n per lit's guide. XLIFF looks pretty standard.

(readme will be updated in a separate pull)

Testing

image

Checklist

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :warning: :chart_with_upwards_trend: +11.79 KB

Diff by File |Name|Diff| |---|---| |commitlint.config.ts|:chart_with_upwards_trend: +12 Bytes| |packages/console/src/pages/Profile/index.tsx|:chart_with_upwards_trend: +108 Bytes| |packages/elements/.gitignore|:chart_with_upwards_trend: +15 Bytes| |packages/elements/lit-localize.json|:chart_with_upwards_trend: +511 Bytes| |packages/elements/package.json|:chart_with_upwards_trend: +258 Bytes| |packages/elements/src/components/logto-card-section.ts|:chart_with_upwards_trend: +811 Bytes| |packages/elements/src/components/logto-form-card.ts|:chart_with_upwards_trend: +71 Bytes| |packages/elements/src/elements/logto-profile-card.ts|:chart_with_upwards_trend: +829 Bytes| |packages/elements/src/index.ts|:chart_with_upwards_trend: +137 Bytes| |packages/elements/src/locales/en.ts|:chart_with_upwards_trend: +166 Bytes| |packages/elements/src/locales/index.ts|:chart_with_upwards_trend: +1009 Bytes| |packages/elements/src/react.ts|:chart_with_upwards_trend: +194 Bytes| |packages/elements/src/utils/locale.ts|:chart_with_upwards_trend: +349 Bytes| |packages/elements/xliff/de.xlf|:chart_with_upwards_trend: +656 Bytes| |packages/elements/xliff/es.xlf|:chart_with_upwards_trend: +653 Bytes| |packages/elements/xliff/fr.xlf|:chart_with_upwards_trend: +654 Bytes| |packages/elements/xliff/it.xlf|:chart_with_upwards_trend: +655 Bytes| |packages/elements/xliff/ja.xlf|:chart_with_upwards_trend: +661 Bytes| |packages/elements/xliff/ko.xlf|:chart_with_upwards_trend: +660 Bytes| |packages/elements/xliff/pl-PL.xlf|:chart_with_upwards_trend: +655 Bytes| |packages/elements/xliff/pt-BR.xlf|:chart_with_upwards_trend: +659 Bytes| |packages/elements/xliff/pt-PT.xlf|:chart_with_upwards_trend: +659 Bytes| |packages/elements/xliff/ru.xlf|:chart_with_upwards_trend: +660 Bytes| |packages/elements/xliff/tr-TR.xlf|:chart_with_upwards_trend: +656 Bytes| |packages/elements/xliff/zh-CN.xlf|:chart_with_upwards_trend: +652 Bytes| |packages/elements/xliff/zh-HK.xlf|:chart_with_upwards_trend: +652 Bytes| |packages/elements/xliff/zh-TW.xlf|:chart_with_upwards_trend: +652 Bytes| |pnpm-lock.yaml|:chart_with_upwards_trend: +986 Bytes|