i18n
ZShip supports multiple languages via i18n configuration.
Translation files
Section titled “Translation files”- Web:
apps/web/src/i18n/locales/—en.json,zh-CN.json, etc. - Dashboard:
packages/dashboard/or shared i18n - Admin:
apps/admin/i18n/locales/
Adding a language
Section titled “Adding a language”- Add a new JSON file (e.g.
ja.json) to the locales folder - Add the locale to
utils.tsor the i18n config - Update routing if using locale-prefixed paths (e.g.
/ja/)
Translation keys follow a nested structure. Add new keys for new UI strings. Existing keys can be overridden per locale.