Skip to content

Translations #2

Closed
Closed

Description

@vycdev

Would be nice to have translations

Activity

  1. added
    enhancement
    on Mar 8, 2026
  2. added a commit that references this issue on Mar 13, 2026
  3. vycdev commented on Jun 11, 2026

    @vycdev
    OwnerAuthor

    Adding some implementation notes so this is easier for someone to pick up.

    Suggested direction:

    • Use a maintained React-friendly i18n library. i18next + react-i18next looks like the best fit for this app because Kromacut is React/Vite, and the official docs cover React integration, JSON resources, interpolation, plurals, and language detection.
    • I originally looked at the i18n npm package too, but that seems more Node/server-oriented. It may still be worth comparing, but for the frontend app I would prefer i18next/react-i18next unless there is a clear reason not to.
    • Store translations in JSON files, starting with one English file and adding more languages later.

    Proposed first implementation shape:

    src/locales/en.json
    src/locales/ro.json   # can be added later; I can help contribute Romanian
    src/lib/i18n.ts       # i18n setup/init
    

    Initial scope:

    • Add the i18n setup with English as the fallback/default language.
    • Move visible app strings into en.json gradually, starting with high-traffic UI like header/settings/3D controls/docs navigation.
    • Add a language selector in Settings once at least two languages exist.
    • Persist the selected language in localStorage.
    • Use browser/system language as the default when possible, falling back to English.
    • Keep translation keys stable and descriptive, not tied to component names that may change.
    • Make sure dynamic values use interpolation instead of string concatenation.
    • Leave generated/export file formats alone unless a string is clearly user-facing.

    Useful references:

  4. vycdev commented on Jun 11, 2026

    @vycdev
    OwnerAuthor

    Small clarification: the language selector should live in the existing Settings popup, alongside other app-level preferences. It should not be a separate top-level toolbar control.

  5. vycdev commented on Jun 11, 2026

    @vycdev
    OwnerAuthor

    Additional note for the language selector: for flag-style icons, we can use the maintained Twemoji repo at https://github.com/jdecked/twemoji. We should only vendor/reference the specific SVG flag assets needed for supported languages instead of adding/parsing the full Twemoji library. Twemoji graphics are CC-BY 4.0, so we should include brief attribution in the README and/or relevant docs; I do not think this needs to appear directly inside the Settings popup.

  6. vycdev commented on Sep 26, 2026

    @vycdev
    OwnerAuthor

    Progress update: translation support is now implemented in the local working tree, with a broader scope than the original UI-only proposal. The changes are still uncommitted on develop; this is a progress update, not a published release.

    Languages

    English, French, German, Italian, Romanian, Spanish, Japanese, Simplified Chinese, Hindi, European Portuguese (pt-PT), Ukrainian, and Bengali. English has one shared variant rather than separate US/UK options.

    Implemented

    • i18next + react-i18next, with English fallback, a saved language preference, and a System language option.
    • Language selection in the existing Settings popup, reusing the shared Select component. Public pages also have a compact selector; the landing footer groups it with Privacy and Terms in a dedicated, aligned row. The selector uses native language names rather than flag icons.
    • Translation resources for app controls, dialogs, tooltips, accessibility labels, errors, print instructions, all 15 documentation guides and their diagrams, landing/404 pages, Privacy, and Terms.
    • Language-prefixed public routes, translated static pages and metadata, stable documentation anchors, localized install descriptions, and desktop release notes.
    • Locally bundled translations and fonts, including desktop support. No external translation service is used at runtime.
    • Language changes preserve artwork, profiles, print settings, built geometry, and exported model data.

    Verification

    Lint and the production build pass. Coverage checks validate 21,940 messages and 165 translated guides across the 11 non-English languages, including placeholders and diagram measurements. Passing browser checks cover live switching, persistence, keyboard/focus behavior, desktop save prompts, unchanged exports, translated public pages without JavaScript, and responsive footer layouts in English and Romanian.

    Structural coverage is not the same as linguistic accuracy: native-speaker review and wording corrections are still welcome. Keeping the issue open while this implementation is prepared for delivery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions