Commit graph

5 commits

Author SHA1 Message Date
Goutte
0abea784c4 feat(i18n): translate the usage template as well
This should keep backwards compat'.
2023-11-05 00:28:50 +01:00
Goutte
d6ed0816a9 feat(i18n): add translations for args validation 2023-11-05 00:27:46 +01:00
Goutte
2e90e51710 feat(i18n): add make i18n_extract and make i18n_merge
Flow is as follows:

    <add some new i18n.Message in code>
    make i18n_extract
    <fill the generated translations/translate.*.toml>
    make i18n_merge
    <perhaps delete translations/translate.*.toml> ?
2023-11-05 00:27:46 +01:00
Goutte
6853f280ed feat(i18n): translate command error and usage tip 2023-11-05 00:27:40 +01:00
Goutte
ccbdd223d1 feat(i18n): draft of i18n with embedded TOML files
Supports rfc4646 language tags in env vars.
If region is detected (en-US, fr-CA), will try to load regional files first.
2023-11-05 00:21:04 +01:00