jamesread 91f7764de2 perf: optimize frontend build and initial loading 5 ساعت پیش
..
generated 91f7764de2 perf: optimize frontend build and initial loading 5 ساعت پیش
Makefile 2ed564a403 feat: Add translations and language support 10 ماه پیش
README.md 91f7764de2 perf: optimize frontend build and initial loading 5 ساعت پیش
de-DE.yaml 23221aa687 fix: Migrate much of the UI to modern picocrank, cleanup some dead code, improve tests 1 روز پیش
en.yaml 23221aa687 fix: Migrate much of the UI to modern picocrank, cleanup some dead code, improve tests 1 روز پیش
es-ES.yaml 23221aa687 fix: Migrate much of the UI to modern picocrank, cleanup some dead code, improve tests 1 روز پیش
go.mod 8c08a55dd8 chore: dep update 11 ساعت پیش
go.sum 8c08a55dd8 chore: dep update 11 ساعت پیش
it-IT.yaml 23221aa687 fix: Migrate much of the UI to modern picocrank, cleanup some dead code, improve tests 1 روز پیش
main.go 91f7764de2 perf: optimize frontend build and initial loading 5 ساعت پیش
zh-Hans-CN.yaml 23221aa687 fix: Migrate much of the UI to modern picocrank, cleanup some dead code, improve tests 1 روز پیش
zh-Hant-TW.yaml 23221aa687 fix: Migrate much of the UI to modern picocrank, cleanup some dead code, improve tests 1 روز پیش

README.md

Hey, thanks for reading this quick introduction to translations. The project founder only speaks two languages; English, and Bad English (!), so the initial translations have all been AI-generated. It is assumed that "something is better than nothing".

It would be most welcome to have human contributors who are native speakers improve these translations, or add new ones.

How to contribute

If a translation file does not exist for your locale, you can create one by copying en.yaml and changing the locale code in the filename. You can view the language that your browser reports by opening the "Select Language" dialog from the footer.

File format

Internally, OliveTin uses the vue-i18n library for translations. This does support language pluralization and other advanced features. For docs, check the following;

Vue i18n Pluralization Guide

The translation files are in YAML format. Each file contains key-value pairs.

OliveTin developers then process these files into per-locale JSON files under lang/generated/, which lets the app load only the languages it needs.

If you are able, it would be appreciated if you run make in the language directory to process your language file before submitting a PR. This will ensure that the JSON file is up-to-date. If you don't understand how to do this, don't worry; just submit the YAML file and the developers will take care of it.

Contributing improvements

Please check out the file CONTRIBUTING.md for instructions on how to submit a pull request with your improvements.

As always, if you need any help, please feel free to raise an issue on GitHub or jump into the Discord server for OliveTin.