Shared TypeScript localization library for Session projects.
Do not edit any files in the generated/ directory. All user-facing strings are localized and managed via our Localization Platform.
localeTools.ts- Main localization logicgenerated/- Auto-generated translation files (updated by external codegen)index.ts- Main export
git submodule add <repo-url> ts/localizationimport { setLocaleInUse, tr } from './ts/localization';
setLocaleInUse('es');
const text = tr('your.token', { arg: 'value' });./scripts/compile.shAutomatically downloads TypeScript and runs type checking.
cd ts/localization
git pull origin main