Skip to content

Add Swedish translation#3

Merged
thebigjoe1 merged 2 commits into
TraceApps:mainfrom
olsson82:main
Jun 27, 2026
Merged

Add Swedish translation#3
thebigjoe1 merged 2 commits into
TraceApps:mainfrom
olsson82:main

Conversation

@olsson82

Copy link
Copy Markdown
Contributor

This add swedish translation

Test has been done with npm run i18n:check

olsson82 and others added 2 commits June 27, 2026 08:01
Companion to TraceApps#3. The translation file alone isn't enough to surface
the language in Settings; AVAILABLE_LOCALES plus register() also need
the new code. Now Swedish shows up in Settings -> Appearance ->
Language and the JSON is loaded on demand.
@thebigjoe1
thebigjoe1 merged commit 17a2d7f into TraceApps:main Jun 27, 2026
@thebigjoe1

thebigjoe1 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Thank you for the contribution Andreas! Exactly the flow the README promised: single JSON file, npm run i18n:check clean at 442/442. I added one small commit on top to register sv in src/i18n/index.js so the locale shows up in Settings → Appearance → Language; without that the file would be in the repo but the picker wouldn't display it. Merged with your authorship preserved on the translation. Swedish will be live in the next release.

thebigjoe1 added a commit that referenced this pull request Jul 2, 2026
Follow-up to v1.0.0-rc.2. Instrumented the main user-facing surfaces
with $_() calls so switching to Swedish (from PR #3) actually
translates the primary shell of the app rather than only auth
flows.

Coverage added:
- Bottom nav: all six tab labels.
- Main routes (Recipes, Pantry, CookDiary, Shopping, Settings):
  page titles, search placeholders, empty states, all Settings
  section headers.
- Recipe view: meta labels (Prep / Cook / Rest / Total Time),
  section titles (Ingredients / Instructions / Video / Cook
  History), Cook Mode.
- Recipe editor: field labels (Name / Description / Rating /
  Prep / Cook / Servings / Category / Tags / Kitchen Gear /
  Notes / Source URL).
- Pantry item sheet: Name / Brand / Barcode / Category / On
  Hand / Variants / Expires On + hint / Notes / Clear.
- Trace AI panel: subtitle, welcome name + description, all four
  quick-chip labels + their prompt payloads, input placeholder.

en.json + sv.json:
- ~100 new keys across recipe.*, editor.*, pantry_sheet.*,
  trace.*, routes.<route>.*, and 12 new settings.<section>.section
  entries. Swedish translations supplied in-house in the same
  style as @olsson82's original PR.

CHANGELOG rc.2 Swedish bullet rewritten to reflect the real
coverage. Longer-form help copy, individual Settings sub-
components, and some import / manage surfaces remain English
pending future passes.
thebigjoe1 added a commit that referenced this pull request Jul 2, 2026
…ations

sv.json restored to exactly what @olsson82 shipped in PR #3. The
recently-wrapped English keys stay in en.json — svelte-i18n's
fallbackLocale: 'en' means missing Swedish keys render in
English. Leaves the door open for a follow-up Swedish PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants