Contributing to an existing language
- Fork this repo, and switch over to the dev branch
git clone https://github.com/ctih1/frii.site-frontend && cd frii.site-frontend && git checkout dev
Now open https://fink.inlang.com/ and input your forks url
Now change over to the dev
branch
Change to your target language
Now translate your sentences into your target language
Once you're done, log into fink
And now push the changes into your repository.
Now create a pull request into the dev
branch of frii.site.
Creating a new locale
- Fork this repo, and switch over to the dev branch
git clone https://github.com/ctih1/frii.site-frontend && cd frii.site-frontend && git checkout dev
- Copy the
en.json
file (located inmessages/en.json
) into the same directory, and change the name to your language (e.g Italian: it, Polish: pl, French: fr)
- Add your language to
project.inlang/settings.json
slanguageTags
array.
Editing using your code editor (recommended)
Open your new `.json` file located in the `messages` directory, and translate the sentences into your language.WARNING
Do NOT translate variables (text wrapped in {}) inside sentences. Variables such a {domain}
and {email}
can not be translated, as they would stop working. You can move these variables around the sentence itself, but you can not move them into other sentences, or delete them.
After you're done editing, push the changes into your fork (git push origin dev
) Now create a pull request into the dev
branch of frii.site.
Editing using a web editor
Firstly, push the changes into your fork (git push origin dev
)
Now open https://fink.inlang.com/ and input your forks url
Now change over to the dev
branch
Change to your target language
Now translate your sentences into your target language
Once you're done, log into fink
And now push the changes into your repository.
Now create a pull request into the dev
branch of frii.site.
Rewards
You can get certain rewards for translating frii.site into your language. make sure you include your frii.site username with in the pull request
How many people speak it | Reward |
---|---|
less than 5 million | Added to the contributors |
5 million - 50 million | 150 credits |
51 million - 99 million | 350 credits |
100 million - 500 million | 500 credits |
more than 500 million | 800 credits |