← Back to projects
Thorium Locales
Localization files for Thorium Reader
#🌍 Shared locales between Thorium products
We're gradually moving to shared locales between Thorium products, which includes:
- Thorium Desktop
- Thorium Web
- and Thorium Mobile
This repository is meant to host these locales, made available to our translators through Weblate.
#Best Practices
A document listing best practices for translators and developers can be found in guides.
#Formatting
All JSON locale files are formatted using Prettier with alphabetically sorted keys. This ensures consistent formatting and reduces merge conflicts.
#Setup
npm install
#Commands
| Command | Description |
|---|---|
npm run format |
Format all JSON files |
npm run format:check |
Check if files are properly formatted (used in CI) |
#Formatting Rules
- Keys are sorted alphabetically
- 4-space indentation
[!NOTE] The CI will fail if JSON files are not properly formatted. Run
npm run formatbefore committing.