Valentyne Stigloher
2434919113
(trans) check that referenced paths inside translations are valid for the particular locale
...
remove some untranslated entries because they would generate errors
2024-02-17 21:00:47 +01:00
Valentyne Stigloher
4357ba235a
(fix) add missing tabs to some pronouns.tsv
...
defect: /api/banner crashes as pronouns could not be parsed
2024-02-17 19:46:20 +01:00
Valentyne Stigloher
b6b2a8036d
(fix) explicitely set missing morphemes to null for template pronouns (nameself / emojiself)
...
necessary for requiredMorphemesPresent
2024-02-17 13:53:43 +01:00
Valentyne Stigloher
8cdbf04b1f
(fix) catch unknown timezones
2024-02-14 15:02:33 +01:00
Valentyne Stigloher
11d291a24f
(pronouns) enable translations for slash modifiers
2024-01-24 00:53:43 +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
067a7b4dd9
(test) add cases to the suite for pronoun parsing from commas
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
Valentyne Stigloher
fd9e851214
(pronouns) add modifiers to slash links to support for description and plural
2024-01-24 00:49:07 +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
f82344eb0c
(refactor) decouble pronunciation API from pronouns to allow more flexible use
2024-01-11 16:15:04 +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
Valentyne Stigloher
419ef55555
(test) ensure that expected translations are defined in base translations
...
(trans) fix typo from pronoun.example to profile.example
(refactor) use deepGet util in translator and test
2023-12-28 23:14:10 +01:00
Valentyne Stigloher
93db7e672e
(test) validate translations
2023-12-28 23:12:33 +01:00
Valentyne Stigloher
e5b84d7368
(ci) add linting with ESLint
...
remove unused variables
2023-12-28 22:32:59 +01:00
Valentyne Stigloher
7e5134c0ed
(test) add tests for pronoun parsing
2023-12-13 23:35:38 +01:00
Valentyne Stigloher
21adf0e13d
(test) add jest as unit testing framework
2023-12-13 23:35:37 +01:00