volta/README.md

15 lines
569 B
Markdown
Raw Normal View History

2025-07-06 21:16:53 +02:00
## How To Use
2025-07-06 21:14:47 +02:00
2025-07-06 21:16:53 +02:00
Place your translation JSON files inside any `locales` directory, anywhere within your project or working folder.
2025-07-06 21:14:47 +02:00
2025-07-06 21:16:53 +02:00
Each JSON file ***should*** be named after the language code, for example:
`en.json`, `es.json`, `fr.json`.
2025-07-06 21:17:53 +02:00
<br>
2025-07-07 00:37:36 +02:00
(even calling it terrorism.json works, as long as it's a valid file!)
2025-07-06 21:14:47 +02:00
2025-07-06 21:16:53 +02:00
Ensure you have a `.env` file with a `locale` variable that sets your default language code, like so:
```env
locale=en
2025-07-06 22:10:56 +02:00
```
If you don't want to manually add keys to each file you can use [ctih's translator compiler!](https://github.com/ctih1/kaannos)