doc/dev: Dashboard translations release update

Add a note on how to add a new release resource to transifex.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
This commit is contained in:
Tatjana Dehler 2021-08-03 15:45:45 +02:00
parent 321bf26628
commit 84da5ca55f
No known key found for this signature in database
GPG Key ID: EDC57C4C3C77CE61

View File

@ -1033,6 +1033,31 @@ To create a transifex api token visit `<https://www.transifex.com/user/settings/
After the command ran successfully, build the UI and check if everything is
working as expected. You also might want to run the frontend tests.
Add a new release resource to transifex
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In order to organize the translations, we create a
`transifex resource <https://www.transifex.com/ceph/ceph-dashboard/content/>`_
for every Ceph release. This means, once a new version has been released, the
``src/pybind/mgr/dashboard/frontend/i18n.config.json`` needs to be updated on
the release branch.
Please replace::
"resource": "Master:master"
by::
"resource": "<Release-name>:<release-name>"
E.g. the resource definition for the pacific release::
"resource": "Pacific:pacific"
Note:
The first part of the resource definition (before the colon) needs to be
written with a capital letter.
Suggestions
~~~~~~~~~~~