Closed 6543 closed 1 year ago
locales files: https://github.com/woodpecker-ci/woodpecker/tree/master/web/src/assets/locales
mentioned one that needs a fallback for sure: https://github.com/woodpecker-ci/woodpecker/blob/master/web/src/assets/locales/es.json
sorry for the inconvenience - we got it solved the other way around by adding an addon to weblate
Reporting a bug?
We use weblate to translate WoodpeckerCI. This does produce locales that have keys with empty values if it did not got translated.
the fallback would work fine if the key does not exist but in our case it does but it's empty.
so we get an UI with no text at all in some cases ... :/
Expected behavior
handle empty string like missing key or add an option to enable this behavior e.g. 'fallbackOnEmptyString: true'
Reproduction
go to https://ci.woodpecker-ci.org/repos and set browser language to Spanish.
you can also checkout to https://github.com/woodpecker-ci/woodpecker/pull/1305 and explicit change the lang ...
System Info
Screenshot
No response
Additional context
if there is already an option I'm sorry I tried hard to find it!
upstream issue: https://github.com/woodpecker-ci/woodpecker/issues/1313
Validations