aboutsummaryrefslogtreecommitdiff
path: root/src/stores/locale.ts
Commit message (Collapse)AuthorAgeFilesLines
* style: apply biome autofixes and resolve remaining lint findingsFuwn5 days1-2/+1
| | | | | | | | | | | | | | Auto-fixed cosmetic findings (import ordering, obj["k"]->obj.k, optional chaining, template literals, Date.now, parseInt radix, useless ternaries/ switch cases). Resolved the non-autofixable rest by hand: - Senpy: static-only class -> object literal (no this/static reliance). - app.html: var global shim -> window.global = window (keeps the shim, drops the unused-var flag). - biome-ignore with rationale for the logout document.cookie clear and the holodule scrape non-null assertion. Verified: biome check 0 diagnostics, svelte-check 0/0, 24/24 unit tests.
* fix(locale): deep-merge fallback into partial namespace returnsFuwn10 days1-7/+38
| | | | | | | | svelte-i18n's getJSON returns the active locale's sub-tree verbatim; nested keys missing in that locale do not auto-fall-back to the fallbackLocale. The locale store now deep-merges the English value into the resolved object so JP users see English for any sub-key the JA dictionary omits (instead of blanks).
* chore(biome): drop formatter style overridesFuwn2026-03-011-52/+58
|
* chore(prettier): use spaces instead of tabsFuwn2024-10-091-48/+48
|
* feat(locale): localise profile pageFuwn2024-01-251-17/+51
|
* feat(locale): typed locale getterFuwn2024-01-211-0/+40