localizations, dark mode touchups

This commit is contained in:
stopflock
2025-08-31 11:16:20 -05:00
parent 8381388ffa
commit fa6b6ffcda
17 changed files with 598 additions and 191 deletions
+49
View File
@@ -0,0 +1,49 @@
# 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:
1. **Copy the English file**: `cp en.json your_language_code.json`
- Use 2-letter language codes: `es` (Spanish), `fr` (French), `it` (Italian), etc.
2. **Edit your new file**:
```json
{
"language": {
"name": "Your Language Name" ← Change this to your language in your language
},
"app": {
"title": "DeFlock" ← Keep this as-is
},
"actions": {
"tagNode": "Your Translation Here",
"download": "Your Translation Here",
...
}
}
```
3. **Submit a PR** with just that one 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` - English
- `es.json` - Español
- `fr.json` - Français
- `de.json` - Deutsch
## That's It!
No configuration files, no build steps, no complex setup. Just add your JSON file and it works.