Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note for naming theme language file #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pages/languages/translate-themes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Each theme has a folder `languages`, inside this folder you can create the diffe
<div class="title">File Encoding</div>
All dictionary files are <b>JSON</b> files, and are encoded in <b>UTF-8</b>.
</div>
<div class="note">
<div class="title">File Naming</div>
Be careful with the name of your language files. You have to name the language file of your theme the same way as the main language file in the bt-languages folder (for example: for french translation, 'fr_FR.json' and not 'fr.json', but for english 'en.json')
</div>

This is an example of an English dictionary file (`en.json`). Each line in the `en.json` file is a key-value pair, with the key on the left and the value on the right.

Expand Down