1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-09-14 11:29:26 +03:00
Commit Graph

17 Commits

Author SHA1 Message Date
Quentin Gliech
3978acd94e Fix recently added Clippy lints
This also ignores the clippy::blocks_in_conditions lint in two crates,
until tracing gets fixed: https://github.com/tokio-rs/tracing/issues/2876
2024-05-07 07:32:02 +02:00
Quentin Gliech
749f71364e mas-i18n: box the sprintf parser error variant 2024-05-02 10:58:25 +02:00
Quentin Gliech
90cebeeefc Remove unnecessary debugging printf in i18n crate 2024-02-19 17:53:45 +01:00
Quentin Gliech
1c000a1fed Make sure the locale fallback works as expected
- Also makes sure that the fallback runs in the backend and is then
   picked up by the frontend
 - and explicitely fallback zh-CN to zh-Hans
2024-02-19 11:43:36 +01:00
Quentin Gliech
3df600b5d7 i18n: make the message translator fallback to en 2024-02-02 18:01:51 +01:00
Quentin Gliech
36ebbc4d70 i18n: utilities to format short dates and times 2024-02-02 18:01:51 +01:00
Quentin Gliech
a0f5f3c642 Enable clippy lints on a workspace level
This enables a lot more lints than before in some crates, so this fixed a lot of warnings as well.
2023-12-05 17:20:42 +01:00
Quentin Gliech
b2cd8d83f7 templates: translate a lot more stuff 2023-10-05 19:29:23 +02:00
Quentin Gliech
873651a780 i18n: fix clippy warnings 2023-10-05 19:29:23 +02:00
Quentin Gliech
2d52ba7fb3 i18n: include context when looking for translation keys 2023-10-05 19:29:23 +02:00
Quentin Gliech
2b645f7be4 templates: escape translation placeholders 2023-10-05 19:29:23 +02:00
Quentin Gliech
15ad89aa82 templates: add translations function 2023-10-05 19:29:23 +02:00
Quentin Gliech
f666da79b3 i18n-scan: utility to scan translatable strings in templates 2023-10-05 19:29:23 +02:00
Quentin Gliech
5f8411e88c i18n: translator structure, to hold translations 2023-10-05 19:29:23 +02:00
Quentin Gliech
396104e8a4 i18n: clippy cleanups 2023-10-05 19:29:23 +02:00
Quentin Gliech
edff285ff6 i18n: simple translation tree structure 2023-10-05 19:29:23 +02:00
Quentin Gliech
a9a4a54a48 i18n: sprintf.js port 2023-10-05 19:29:23 +02:00