mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-02-12 16:52:51 +00:00
1.7 KiB
1.7 KiB
DeFlock Localizations
This directory contains translation files for DeFlock. Each language is a simple JSON file.
Adding a New Language
Want to add support for your language? It's simple:
-
Copy the English file:
cp en.json your_language_code.json- Use 2-letter language codes:
es(Spanish),fr(French),it(Italian), etc.
- Use 2-letter language codes:
-
Edit your new file:
{ "language": { "name": "Your Language Name" ← Change this to your language in your language }, "app": { "title": "DeFlock" ← Keep this as-is }, "about": { "title": "Your Translation Here", "description": "Your Translation Here", ... }, "actions": { "tagNode": "Your Translation Here", "download": "Your Translation Here", ... } } -
Submit a PR with your JSON file. Done!
The new language will automatically appear in Settings → Language.
Translation Rules
- Only translate the values (text after the
:), never the keys - Keep
{}placeholders if you see them - they get replaced with numbers/text - Don't translate "DeFlock" - it's the app name
- Use your language's name for itself - "Français" not "French", "Español" not "Spanish"
Current Languages
en.json- Englishes.json- Españolfr.json- Françaisde.json- Deutschit.json- Italianopt.json- Portuguêszh.json- 中文
Files to Update
For a complete translation, you only need to update:
lib/localizations/xx.json- All UI translations including about content
That's It!
No configuration files, no build steps, no complex setup. Add your files and it works.