9 Commits

Author SHA1 Message Date
Óscar
32a2d5094b
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.

- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
  Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
2023-09-12 18:58:58 +02:00
Óscar
78f97e17b4
♻️ refactor(translation): introduce translation macro (#129) 2023-09-01 23:29:11 +02:00
Steven Roose
c99cf940a7
🐛fix(format_date): actually use short_date_format (#119) 2023-08-28 12:43:09 +02:00
welpo
eded835d3f
🐛 fix: avoid empty dates when long_date_format is empty 2023-05-23 22:59:47 +02:00
welpo
fa9229377d
feat: add multi-language support 2023-05-22 19:12:03 +02:00
welpo
8ff86b17fc
🐛 fix: check short value before using config date format
Added a check for whether short is true or false, rather than just
checking if it exists. This ensures that if short is set to false,
it will still use the long date format if it's available.
♻️ refactor: move the conditional around the date output, so it only
needs to check `short` once
2023-03-18 02:05:16 +01:00
welpo
9887fb0a6f
feat: allow dual date-format (short/long) 2023-03-10 23:25:54 +01:00
welpo
4b18391c18
♻️ refactor: format date as "6 July 2049"
Follows Oxford's and other formal style manuals.
2023-03-06 00:07:41 +01:00
welpo
3aa22cb3ad
♻️ refactor: split macros.html in different files
Clearer macros format.
2023-02-21 19:39:54 +01:00