How to translate the web client to your own language or propose changes.
The OpenAudioMc web client relies on "language files" to translate the web client into different languages. These language files are contributed by the community and are available in the GitHub repository (look for all the files ending in .lang
).
Each language file can be opened like a plain text document. The file is structured in a way that each line is a key-value pair. The key is the key that is used in the web client to translate a string, and the value is the translated string. For example, the following line:
home.confirmLoginHeader=Welcome back!
home.confirmLoginBody=Are you trying to login as <i>%player</i>?<br />If you are not, please clo
Values can:
Values cannot:
&
or <
) without encoding themé
or ü
) without encoding themIf you have a language that is not yet supported, you can contribute a language file by following these steps:
client/public
folder, and name it lang-<language code>.lang
(for example lang-en.lang
for English)If you want to propose changes to an existing language file, you can do so by following these steps:
client/public
folder, and name it lang-<language code>.lang
(for example lang-en.lang
for English)If you want to preview your changes, you can do so by following these steps:
cd client/ && npm install --force && npm start
http://localhost:3000