feat: add i18n support (Spanish/English) with language selector in profile - #47
Merged
Merged
Conversation
Co-authored-by: foxkdev <22413328+foxkdev@users.noreply.github.com>
…ibility Co-authored-by: foxkdev <22413328+foxkdev@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Translate all views to Spanish and English
feat: add i18n support (Spanish/English) with language selector in profile
Aug 27, 2026
Collaborator
|
@copilot Update all routes, all texts in project |
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.
Adds full internationalization support using
svelte-i18n, with Spanish as the base locale and English as the secondary. Language preference is persisted inlocalStorageand applied on startup.Changes
i18n infrastructure
src/lib/i18n/index.ts: registers locales, exportssetupI18n(),setLocale(), andlocalestoresrc/lib/i18n/locales/es.jsonanden.jsoncovering navigation, sidebar, footer, and profile UIComponent translations
AppNavbar.svelte— project selector, user dropdown itemsAppSidebar.svelte— all category names, module names, nav item labels, aria-labelsFooter.svelte— license text, footer links+layout.svelte— callssetupI18n()on startup so the persisted locale loads immediatelyProfile page
$_()calls<select>that switches and persists locale:Related issue
Change type
Verification
bun run checkbun run lintbun run testbun run format:checkReview notes
localStorageunder keygitops-locale. No server-side or session changes.es) is the default/fallback locale; switching to English changes all translated strings reactively via thelocalestore.$_()pattern and translation keys.package-lock.jsonadded to.gitignore(project uses Bun; lock file was generated by npm in CI environment).