21 Commits

Author SHA1 Message Date
Valentyne Stigloher
10180aa6a3 (refactor) use #shared alias instead of ~~/shared
the #shared alias used by Nuxt cannot be easily disabled and to prevent breackage with jiti, we make use of it
2025-08-17 18:56:02 +02:00
Valentyne Stigloher
8e6f812a9a (nuxt) rename imports ~/locale, ~/public, ~/server, ~/test to resolve to root directory ~~ 2025-08-17 18:13:52 +02:00
Valentyne Stigloher
4568616359 (nuxt) rename src to shared to be consistent with nuxt default directory structure 2025-08-17 18:12:42 +02:00
Valentyne Stigloher
66627a8212 (nuxt) move scss variables to config.style which then renders them as css custom properties 2025-02-15 14:04:09 +01:00
Valentyne Stigloher
bead722c48 (test)(pronouns) move config.pronouns.default to config.pronouns.generator.startPronoun to have a more clear name and add tests for it 2025-02-10 12:22:35 +01:00
Valentyne Stigloher
0e6d28984e (test) reorganize imports, dynamic import() is not necessary anymore as morphemes.ts does not need to be mocked anymore 2025-01-19 21:24:57 +01:00
Valentyne Stigloher
c2346cac5f (pronouns) move pronouns/morphemes.ts into config.pronouns.morphemes 2025-01-19 21:24:57 +01:00
Valentyne Stigloher
b25afefc49 (fmt) 2024-10-29 10:56:32 +01:00
Valentyne Stigloher
37aaf9537b (pronouns) add option to disable generator and move all related configuration to a submodule configuration
disable generator for ar
2024-05-23 18:19:26 +02:00
Valentyne Stigloher
118ea121de (refactor) remove process.env.CONFIG and other env variables containing config values 2024-05-13 12:18:40 +02:00
Valentyne Stigloher
12dbbb327c (ts) convert tests to TypeScript 2024-02-23 17:51:21 +01:00
Valentyne Stigloher
7ce1bb0e83 (ts) convert a lot to TypeScript
Co-authored-by: Sky <msurvival65@gmail.com>
Co-authored-by: tecc <tecc@tecc.me>
2024-02-23 17:48:16 +01:00
Valentyne Stigloher
d792270c80 (refactor) inject translator instead of importing the singleton instance
this prevents of having a module which needs a suml-loader
which is complicated for testing and server scopes
2024-01-24 00:50:29 +01:00
Valentyne Stigloher
6309daa78c (pronouns) add support for empty and unset morphs in slash notation 2024-01-24 00:50:29 +01:00
Valentyne Stigloher
48992c53d6 (pronouns) differentiate between empty and unset morphs
empty morphs are those which have a real value, which corresponds to a suffix without additional letters,
they should still show up in example sentences
unset / null morphs are used when a pronoun does not support a specific form at all,
so their example sentences should be hidden

This reverts in part ed4049b3cc124605a3f9588b19eb63c5ff2dd961 and reintroduces the failure
when an unset morpheme is used in an interchangeable pronoun, however this needs more restructering to fix
2024-01-24 00:50:29 +01:00
Valentyne Stigloher
918e2672e4 (pronouns) escape control symbols in morphemes to support for slashes in the slash notation 2024-01-24 00:50:28 +01:00
Valentyne Stigloher
b5d57bf19b (pronouns) add modifiers when formatting pronoun with slashes 2024-01-24 00:50:12 +01:00
Theodore Dubois
ee240c43a1 (trans) Get list of expected translations from _base
This includes a series of if statements based on the config to attempt
to exclude translations that are in _base but shouldn't be on the
current language version.
2024-01-22 21:02:36 -08:00
PronounsPage
fa14ab79d9 (lint) automatically fix lints via yarn lint --fix 2024-01-11 20:36:05 +01:00
Valentyne Stigloher
27cbf91e04 (de) add custom translations for some any pronoun groups 2024-01-11 00:24:05 +01:00
Valentyne Stigloher
c7735a522c (test) add tests for merging pronoun groups by key 2024-01-11 00:21:21 +01:00