Language support was recently added.
Preliminary implementation was made using Google Translate.
It is therefore expected that there will be some mistakes and possible improvements to be made.
That is where you come in!
All of the language data is stored in the file language.js
.
Any language added or edited there will automatically be update on the site.
If there is something you want to fix you can edit the file and create a pull request. Your changes can then be reviews and accepted into the official site version.
This will guide you trough making the changes and how to submit these changes to the official site.
-
First you will need a GitHub account if you don't have one already, you can do that here.
-
Go to the language file located at
src/language.js
, or use this link. -
Click the edit button in the top right corner (see image)
-
Make changes: This is the fun part. Fix spelling mistakes or add a language. Use the official two letter country code which you can find here when adding a language.
-
Propose the changes by adding a message and clicking the green
Propose changes
button
- Click the green
Create pull request
button. Your changes will now be officially up for review. Once a maintainer has looked over it they can approve your pull request and the changes will be implemented into the site (and eventually the FiveM mod).
GitHub can be a bit confusing for new users. If something goes wrong don't panic. You can watch this video on how to create a simple GitHub Pull Request (ignore the command line portion). Do not worry. There is no way you can break the website by making your changes.
According to google analytics these are the most popular languages of the current users. This guided the decision in implement the initial languages. This is subject to change. Do not hesitate to create a GitHub issue if you wish your language to be supported.