Skip to content

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)
  • 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 the Source 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 to upload/modules/<your module>language/en_UK.json
  • Adding new translation - Set to Contact 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.