114 Commits

Author SHA1 Message Date
Valentyne Stigloher
23dcc1a454 (refactor)(nouns) use Numerus string union to simplify types 2025-07-27 23:43:57 +02:00
Valentyne Stigloher
6575dc959e (refactor)(nouns) migrate nouns/nounDeclension.tsv to nouns/nounData.suml 2025-07-27 23:43:57 +02:00
Valentyne Stigloher
71499f3f9a (refactor)(nouns) move cases.ts into nounsData.suml 2025-07-27 23:43:57 +02:00
Valentyne Stigloher
dc1ee7424e (refactor)(nouns) rename nounConventions.suml to nounsData.suml 2025-07-27 23:43:57 +02:00
Valentyne Stigloher
ba7630ba63 (refactor)(nouns) remove empty nounTemplates.tsv 2025-07-27 23:43:57 +02:00
Valentyne Stigloher
70c29ac997 (test) ensure that profile.defaultWords has exactly four columns (else the editor breaks) 2025-06-07 18:00:07 +02:00
Valentyne Stigloher
2bafc81c3a (lint) activate import/consistent-type-specifier-style for consistency of import type 2025-05-19 20:20:31 +02:00
Valentyne Stigloher
58e11e5833 Merge branch 'declarative-grammar-tables-p' into 'main'
declarative grammar tables

See merge request PronounsPage/PronounsPage!606
2025-05-06 20:24:43 +00:00
Andrea Vos
9682965918 implement CR feedback 2025-05-03 18:11:56 +02:00
Andrea Vos
8f74d83a43 add role "external" (only timesheets) and unit tests for isGranted logic 2025-05-03 15:48:47 +02:00
Valentyne Stigloher
22161f04d7 (test) check that grammar tables contain valid morphemes 2025-05-01 11:47:47 +02:00
Valentyne Stigloher
bf2954c6fe (nouns) group conventions similar too pronouns 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
f021cd08ea (nouns) move noun convention links to top level 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
03abb39da1 (nouns) add translations for conventions intro, add title 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
5aa83aa1f0 (nouns) filter example sentences missing required morphemes or declensions 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
5ecb113ddc (de)(nouns) add examples 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
c770365d63 (refactor) make ExamplePart[] a class to move methods there and rename old Example to PronounExample 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
ec5f0ba97d (de)(nouns) grammar tables for noun conventions 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
ab40c054e6 (refactor) decouple <Example>, <Morpheme> and other components from Pronoun 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
933ecb3d65 (refactor) factor out getBaseMorpheme 2025-04-22 14:29:10 +02:00
Valentyne Stigloher
930fdef9b4 (refactor) common interface between loadSuml and loadTsv, bring them to the same file 2025-03-14 19:26:52 +01:00
Valentyne Stigloher
6f9f8fc6e0 (nuxt) detect locale from requested origin 2025-03-14 19:25:57 +01:00
Valentyne Stigloher
6edb822d9a (refactor) inline /admin/all-locales route for better caching opportunities 2025-03-14 19:25:57 +01:00
eo contributors
a74c777168 (eo)(nouns) add templates 2025-03-08 00:23:23 +01:00
Valentyne Stigloher
d3a76a3c7e (test) apply single build to snapshot tests 2025-02-15 14:27:01 +01:00
Valentyne Stigloher
8298bcc21a (nuxt) dynamically include nouns subroutes 2025-02-15 14:27:00 +01:00
Valentyne Stigloher
41b4d6d668 (nuxt) dynamically load config.suml in router and plugin 2025-02-15 14:04:09 +01: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
Adaline Simonian
23a3862ca0
test: introduce snapshot-based smoke tests
- Adds a new test suite with Docker-based smoke tests for all locales.
  Can be run using the ./smoketest.sh script.
- Replaces all calls to Math.random() with a new helper that returns 0.5
  in snapshot testing mode, ensuring deterministic snapshots.
- Similarly replaces all calls to new Date() and Date.now() with new
  helpers that return a fixed date in snapshot testing mode.
- Replaces checks against NODE_ENV with APP_ENV, to ensure that the
  bundles can be built with Nuxt for testing without losing code that
  would otherwise be stripped out by production optimizations.
- Adds a database init script that can be used to initialize the
  database with a single admin user and a long-lived JWT token for use
  in automation tests.
- Adds a JWT decoding/encoding CLI tool for debugging JWTs.

Note: Snapshots are not checked in, and must be generated manually. See
test/__snapshots__/.gitignore for more information.
2025-02-02 23:11:19 -08:00
Andrea Vos
96cd191bff (hbs) fix naski script converter
i accepted a copilot suggestion that seemed sensible, but actually accomplished the opposite ("NFD" vs "NFC")

adding tests as penance 😅
2025-01-20 22:06:34 +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
Andrea Vos
73734d9d31 CR feedback 2025-01-19 20:45:00 +01:00
Andrea Vos
2990abe59e (pronunciation) finish narakeet implementation 2025-01-19 20:14:51 +01:00
Andrea Vos
6dbd121186 Merge branch 'nynorsk' into 'main'
Publish Nynorsk

See merge request PronounsPage/PronounsPage!554
2025-01-19 17:08:35 +00:00
Valentyne Stigloher
3a2d04285c (nouns) add nonbinary column to generated images 2025-01-17 13:36:14 +01:00
Valentyne Stigloher
9c861646de (nouns) add nonbinary column to dictionary 2025-01-17 13:36:14 +01:00
Adaline Simonian
979aa097c7
feat: macrolanguage landing page for no locale
Auto-redirects:
- if the page requested is a user profile, and the user has one profile
  out of the multiple individual languages, to the one profile that was
  found
- otherwise based on user's accept-language header
- if all else fails, shows language selection landing page
2025-01-15 16:18:01 -08:00
Adaline Simonian
9de5bbdce4
feat: add nynorsk and complete/fix bokmål locale 2025-01-12 15:56:24 -08:00
Valentyne Stigloher
c5d17aa011 (test) use test environment nuxt to make it unnecessary to mock defineCachedFunction 2025-01-06 13:20:35 +01:00
Valentyne Stigloher
64735cac1b (admin)(blog) very simple post editor 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
bbfe946ac7 (refactor) migrate /blog routes from express to h3 2024-12-28 00:03:28 +01:00
Valentyne Stigloher
5590adb5e0 (pronouns) make all pronouns routes case insensitive (shorts already were so it was confusing to some users) 2024-11-16 16:20:03 +01:00
Valentyne Stigloher
b25afefc49 (fmt) 2024-10-29 10:56:32 +01:00
Valentyne Stigloher
3c3f045146 (pronouns) show different variants for null page 2024-10-17 16:43:47 +02:00
Valentyne Stigloher
e6ddc10e5b (pronouns) add ask usage 2024-10-12 18:45:27 +02:00
Valentyne Stigloher
129c128eda Merge branch 'locale-tests' into 'main'
more locale tests

See merge request PronounsPage/PronounsPage!522
2024-10-12 14:17:00 +00:00
Valentyne Stigloher
94f4c0435a (test)(pronouns) ensure that pronouns.emoji.morphemes contains known morphemes 2024-10-07 14:58:45 +02:00
Valentyne Stigloher
75c7b8889a (test)(pronouns) ensure that pronouns.null.morphemes contains known morphemes 2024-10-07 14:58:44 +02:00