Add Swedish (sv) translation - #4
Open
dchaudhari7177 wants to merge 1 commit into
Open
Conversation
Adds "sv": "Svenska" to LANG_NAMES and a Swedish entry for all 148 STRINGS keys, so nothing falls back to English. Placeholders are kept in the same order and count as the English source. Panel strings are kept short (5 T, VECKA, VECKOGRANS) so they fit the small panel; the longer prose lives in the settings and login dialogs where there is room. Closes gaborvidovics76#1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1.
Adds Swedish to
claude_usage/i18n.py.What changed
"sv": "Svenska"added toLANG_NAMES, so it shows up under right-click → Language using the language's own name."sv"entry for all 148STRINGSkeys — nothing falls back to English.Only additions: 149 inserted lines, 0 deletions. No existing translation or formatting was touched.
Translation notes
{}is preserved, in the same order and count as the English string. I checked this programmatically across all 148 keys rather than by eye.5 T/VECKAfor the short labels,VECKOGRÄNSfor the weekly limit,5-TIMMARSFÖNSTERfor the 5-hour window. The longer prose is confined to the settings and sign-in dialogs, where there is room.{} %/tim), which is standard Swedish typography and matches how the existing European locales handle their own conventions.aktivitetsfältet(taskbar),Startmenyn(Start menu),Starta med Windows(start with Windows), to match what Swedish Windows 11 itself calls these.How I tested
STRINGSparses.'sv' in LANG_NAMES, and that 0 of 148 keys are missing ansventry.{}count matches English for every key — 0 mismatches.I do not have a Windows 11 desktop session to run the PySide6 panel in, so I have not visually confirmed overflow in the live panel. I kept the panel labels at or below the length of the existing German/Dutch strings, which are the longest currently shipping, so they should not be the ones that overflow first — but please do give it a look on your machine.
Note on the sibling issues
I have also opened PRs for #2 (Japanese) and #3 (Chinese). They each touch the same 148 blocks in
i18n.py, so whichever merges first will leave the others needing a trivial rebase. Happy to rebase mine as soon as you merge any one of them — just say the word.