-
-
Notifications
You must be signed in to change notification settings - Fork 310
Adding a component in Weblate
Robin edited this page Dec 18, 2023
·
2 revisions
This page is meant for Nameless developers with Weblate access
Navigate to Projects > Third Party Resources and click the +
button to create a new component.
-
Component name
- enter name here -
Source language
- English UK -
Source code repository
- Choose 'Git' for direct commits (recommended). Enter the SSH git url (starts with
git@github.com:
) - Choose 'GitHub with pull request'. Enter the HTTPS git URL (starts with
https://github.com
)
- Choose 'Git' for direct commits (recommended). Enter the SSH git url (starts with
-
Repository branch
- set to your main branch
In the next step, choose "File format JSON nested structure file, File Mask upload/modules/<your module>/language/*.json
".
In the next step, set:
-
Repository push URL
- copy the value of theSource code repository
field here. -
Repository browser
-https://github.com/<youruser>/<yourrepo>/blob/{{branch}}/{{filename}}#L{{line}}
. Replace<youruser>
and<yourrepo>
. Leave the other variables. Leave blank if you are not using GitHub but some other Git platform. -
Monolingual base language file
- Set toupload/modules/<your module>language/en_UK.json
-
Adding new translation
- Set toContact maintainers
-
Translation license
- Select a license here. Probably the same license as your code. -
Language code style
- Set to POSIX style with underscore, including country code -
Source language
- Set to English (United Kingdom), should be the default already
You are done! Don't configure any addons.
If you need further help, feel free to join our Discord server for support 😃