Skip to content

Language pack contributions: translate one Posnic UI language at a time #32

Open

Description

@sridharkalaibala

What are you trying to do?

Contributors who know a retail language should be able to submit one focused language pack without needing to understand every part of the POS codebase.

This issue is for individual language-pack PRs after the localization framework rules are clear in #31.

Good language-pack PR shape

One PR should normally include:

  1. One language file or one coherent update to an existing language file.
  2. One locale metadata entry if the language is new.
  3. A short glossary note for POS words that are hard to translate, such as sale, return, register, shift, invoice, tax, discount, customer credit, stock, supplier, branch, and receipt.
  4. Screenshots or a short evidence note confirming the common flows do not overflow badly.
  5. Placeholder checks for amounts, dates, counts, invoice numbers, branch names, tax labels, product names, and customer names.
  6. No changes to business logic, database field names, API route names, tax behavior, installer behavior, or payment flow.

Suggested first PRs

  • Tamil language pack update
  • Hindi language pack
  • Malayalam language pack
  • Kannada language pack
  • Telugu language pack
  • Sinhala language pack
  • Nepali language pack
  • Arabic language pack and right-to-left layout check
  • French language pack
  • Spanish language pack
  • Portuguese language pack
  • Bahasa Indonesia language pack
  • Thai language pack

This list is not exclusive. Contributors can propose another language if they can review the POS vocabulary carefully.

Acceptance criteria

  • The PR touches only translation files, locale metadata, glossary notes, screenshots, or tests needed for that language pack.
  • The app starts successfully after selecting or loading the language through the documented path.
  • All required translation keys for the targeted language are present, or missing keys are listed with an intentional English fallback note.
  • Placeholders are preserved exactly for amounts, dates, counts, invoice numbers, branch names, tax labels, product names, user names, and customer names.
  • Core workflows remain understandable: login, dashboard, new sale, checkout/payment, sales history, products/items, customers, suppliers, reports, settings, backup/restore, receipt/invoice print.
  • Screenshots or a short test note show the language on at least three common screens, including one dense workflow such as new sale or reports.
  • Translation uses neutral, international retail wording. Avoid region-specific words in English-facing labels; for example, use generic terms such as Supermarket / Grocery instead of region-bound terms such as Kirana.
  • Dates, currencies, numbers, and tax labels are not mistranslated or reformatted in a way that changes business meaning.
  • The language pack does not change tax, receipt, invoice, payment, stock, or accounting calculations.
  • The PR description mentions who reviewed the translation or how the wording was checked.

Out of scope for this issue

  • Multiple unrelated languages in one PR.
  • Machine-generated translations without human review.
  • Business logic, database, payment, tax, or installer changes.
  • Claims that a translation is final or officially certified for a country without maintainer approval.

Contributor notes

This is intentionally contributor-friendly. Please mention which language you want to take before opening a large PR, so two people do not translate the same file at the same time.

Activity

  1. added
    documentation
    enhancement
    good first issue
    help wanted
    area: localization
    on Sep 1, 2026
  2. sridharkalaibala commented on Sep 1, 2026

    @sridharkalaibala
    ContributorAuthor

    How to actually do this, as of today

    The tooling landed today, so here are the concrete steps. Full guide: docs/TRANSLATING.md.

    You need Node.js and a text editor. You do not need to run the app, install a database, or understand JavaScript.

    Start a language nobody has done

    node tests/tools/i18n-coverage.js --new hi

    That writes hi-to-translate.json with all 656 strings, each with its English and the screen it appears on:

    "lang_conversion_factor_title": {
      "english": "Units per pack",
      "screen": "items_write.html",
      "hi": ""
    }

    Fill in what you know, leave the rest blank, then:

    node tests/tools/i18n-coverage.js --merge hi --out hi-to-translate.json

    That creates languages/hi.json. Add one line to LANGUAGES in frontend/gulpfile.js/config.js and the app offers it.

    Improve a language that exists

    node tests/tools/i18n-coverage.js --worksheet ta

    Tamil is at 89% — 75 strings still show English. That is a good first contribution.


    You do not have to finish it

    This is the thing worth saying plainly, because it is what stops people starting.

    A half-translated language is not broken. Every key you have not done falls back to the English already in the app. Ten strings is a real improvement and a mergeable PR. Nobody is waiting for all 656.

    Blank entries are skipped on merge, so you can come back to it as many times as you like.


    Check your own work

    node tests/tools/check-translations.js
    node tests/tools/i18n-coverage.js --review ta

    --review finds two things a reviewer cannot: the same English translated two different ways, and the same translation used for two different English words. It is how we found that every Edit button in Tamil said "Edited" — a past participle on a button that had not done anything yet.

    Save as UTF-8

    Nine Tamil strings shipped to the sale screen showing பà¯à®¤à®¿à®¯ where they meant புதிய, and were live for months. If your editor offers "ANSI", "Windows-1252" or "Western", do not use it. CI refuses a file with this in it, so you will find out immediately rather than after a shopkeeper does.


    About the suggested list

    The 13 languages in the description are a good list and it stands. Two notes:

    • Tamil is not a fresh start — it is at 89%, so that one is "finish it", not "do it".
    • Arabic needs right-to-left layout work first, which is a CSS problem rather than a translation one. Worth a separate issue before someone spends a weekend on the words.

    Comment here with the language you are taking so two people do not do the same one.

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

    area: localizationdocumentationenhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions