Skip to content

session-foundation/session-localization

Repository files navigation

Session Localization

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.

Structure

  • localeTools.ts - Main localization logic
  • generated/ - Auto-generated translation files (updated by external codegen)
  • index.ts - Main export

Usage as Git Submodule

Add to your project

git submodule add <repo-url> ts/localization

Import and use

import { setLocaleInUse, tr } from './ts/localization';

setLocaleInUse('es');
const text = tr('your.token', { arg: 'value' });

Type Checking

./scripts/compile.sh

Automatically downloads TypeScript and runs type checking.

Updating

cd ts/localization
git pull origin main

About

Repo which holds Session's localization strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published