Home / Insights / Web and SaaS Development
Web and SaaS Development
Internationalising a Web App: Locales, Right-to-Left Layouts, Currencies and Translation Workflow
Adding a second language to a web app looks like a translation job. In practice it touches your data model, layout, formatting, release process and support. This guide explains the engineering decisions that make the second, third and tenth language cheap rather than painful.
Key takeaways
- Separate internationalisation (making the code locale-ready) from localisation (translating and adapting for a market); the first is an engineering investment you make once.
- Model locale as language plus region plus currency and time zone, stored per user and per account, rather than a single ‘language’ field.
- Use the platform: the browser’s Intl APIs for numbers, currencies and dates, CSS logical properties and the dir attribute for right-to-left, and ICU-style messages for plurals.
- Never concatenate translatable strings; give translators complete sentences with placeholders, context and screenshots.
- Run translation as a continuous pipeline with string freezes, pseudo-localisation in CI and a named owner for each language.
On this page
- Which markets, which locales, and what ‘supporting’ them means
- Designing the locale model and language tags
- Dates, numbers and currencies: let the platform do the formatting
- Right-to-left and bidirectional text
- Strings, plurals and message format
- Running translation as a continuous workflow
- Costs, risks and a readiness checklist
- Frequently asked questions
- Sources and methodology
Most web apps are built for one market first, and that is sensible. The problem arrives later, when a distributor in Germany, a customer in the Gulf or an investor’s portfolio company in Japan asks for the product in their language. Teams then discover that dates are formatted by hand, prices are stored as strings with a dollar sign, layout assumes text flows left to right, and sentences are assembled from fragments that cannot be translated.
This article is for CTOs, product owners and founders of SaaS products and customer portals who are about to add their first additional locale, or who have added one and found it harder than expected. It separates two things that are often confused. Internationalisation (often written i18n) is the engineering work that makes the application capable of supporting any locale. Localisation (l10n) is the work of adapting it for a specific market: translation, formats, imagery, legal text. Getting the first right makes the second a repeatable, mostly non-engineering process.
The guidance draws on how our web development teams approach customer portals and SaaS platforms built in React, Angular, Vue or Next.js with Node.js, .NET or Python back ends. The principles apply regardless of stack.
Which markets, which locales, and what ‘supporting’ them means
Before touching code, decide what support means for each target market. “We support French” can mean anything from a translated interface to French invoices, French-speaking support staff and compliance with local consumer law.
Levels of support
| Level | What users get | Typical engineering impact |
|---|---|---|
| 1. Locale-aware formatting | Dates, numbers, currencies and time zones shown correctly; interface still in one language | Low, if Intl APIs are used from the start |
| 2. Translated interface | All UI strings, emails and notifications translated | Medium: string extraction, message format, translation pipeline |
| 3. Translated content | Help articles, templates, product data, user-facing documents | Medium to high: content model needs per-locale fields |
| 4. Market adaptation | Local currencies and pricing, tax rules, address formats, legal pages, payment methods | High: billing, data model and integrations change |
| 5. Right-to-left or complex scripts | Mirrored layout, bidirectional text handling, font support | Medium to high: layout and component audit |
For example, a 30-person B2B SaaS company selling into Australia and the UK might need only level 1 at first, because both markets read English, while a company expanding into Saudi Arabia needs levels 2, 4 and 5 together. Writing this down per market prevents a common failure: estimating “translation” and discovering billing changes halfway through.
Action: for each target market, record the support level, the commercial reason and the date it is needed. This becomes the scope for your internationalisation backlog.
Designing the locale model and language tags
The most expensive internationalisation mistakes are in the data model, because they spread into every query and report.
Use standard language tags
Identify locales with BCP 47 language tags such as en, en-GB, fr-CA or zh-Hant. The W3C’s guidance puts it simply: “The golden rule when creating language tags is to keep the tag as short as possible” (W3C: Language tags in HTML and XML). Add a region only when it changes something users see, such as fr-CA versus fr, and a script subtag when the language is written in more than one script, as with Simplified and Traditional Chinese. Set the lang attribute on the html element so browsers, screen readers and search engines know which language is on the page.
Locale is more than language
Store these as separate settings rather than deriving all of them from one field:
- Interface language (a language tag), chosen by the user.
- Formatting region, which decides date order, number separators and first day of the week. A British user may want English text with continental date formats, or vice versa.
- Time zone, as an IANA identifier such as
Australia/Sydney, never as a fixed offset, because offsets change with daylight saving. - Currency, usually a property of the account, contract or price list, not of the user’s language.
Where locale lives
- Account default, overridable per user.
- Per-document locale for things that leave the system, such as invoices and contracts, so a document is generated in the customer’s language even when a staff member in another locale triggers it.
- Locale in the URL (for example
/fr/) for public, indexable pages; user preference for authenticated application screens.
Action: audit every place where the app formats a date, number or price, and every database column that stores display text. That list is the real size of the job.
Dates, numbers and currencies: let the platform do the formatting
Hand-written formatting code is a reliable source of bugs. Modern browsers and Node.js ship the ECMAScript Internationalization API (Intl), backed by the Unicode CLDR locale data, and it should be the default.
Numbers and currencies
MDN’s reference for Intl.NumberFormat shows how much varies between locales for the same value. Formatting 123456.789 as euros in German gives “123.456,79 €”, as yen in Japanese gives “¥123,457” because the yen has no minor unit, and plain formatting in Indian English groups digits as “1,23,456.789” (MDN: Intl.NumberFormat). None of that should be coded by hand.
Rules that save rework:
- Store money as an integer amount in minor units (or a fixed-precision decimal) plus an ISO 4217 currency code. Never store formatted strings.
- Remember that minor units differ: the yen has none, so “multiply by 100” logic breaks.
- Keep the currency of a price separate from the locale used to display it. An Australian user viewing a USD invoice should see US dollars formatted in Australian conventions, not converted silently.
- Decide explicitly whether you show converted prices, local price lists, or one billing currency. That is a commercial decision, not a formatting one.
Dates and times
- Store timestamps in UTC; store the user’s IANA time zone; convert at display time.
- For things that are dates rather than instants (a birthday, a contract start date), store a date without a time zone, or you will shift it by a day for some users.
- Use
Intl.DateTimeFormatwith style options rather than format strings likeDD/MM/YYYY, which are wrong for most of the world. - Week start, calendar systems and 12- or 24-hour clocks also vary; let the locale decide.
Input is harder than output
Parsing user input such as “1.234,50” is where locale bugs usually bite. Prefer structured inputs (date pickers, numeric fields with locale-aware masks) and validate on the server against the locale the user was shown.
Right-to-left and bidirectional text
Supporting Arabic, Hebrew, Persian or Urdu means the whole interface mirrors: navigation moves to the right, progress flows right to left, and icons that imply direction flip. It also means handling mixed-direction text, such as an English product name inside an Arabic sentence.
Set direction in markup, not CSS
The W3C recommends adding dir="rtl" to the html element whenever the overall document is right-to-left, and advises: “Do not use CSS to apply base direction in HTML pages” (W3C: Structural markup and right-to-left text in HTML). For text whose direction you cannot know in advance, such as user names, comments or chat messages, use dir="auto" and wrap inserted fragments in the bdi element so they do not disturb the surrounding sentence. Form fields can use dirname to send the direction to the server alongside the value.
Write CSS in logical terms
CSS logical properties describe layout by the flow of text rather than physical sides. MDN’s documentation explains that with properties such as margin-inline-start and inset-inline-end, content translated into languages with different writing modes “will be rendered as intended” (MDN: CSS logical properties and values). Adopting them in a new codebase costs almost nothing. Retrofitting them into an existing one is a mechanical but sizeable job, best done component by component.
RTL audit checklist
- Replace physical margins, paddings, borders and positions with logical equivalents in shared components first.
- Mirror directional icons (arrows, back buttons, progress indicators) but not universal ones (play buttons, clocks, logos).
- Check charts, carousels, sliders and date pickers from third-party libraries for RTL support before committing to them.
- Test with real Arabic or Hebrew strings, including numbers and embedded Latin words, not mirrored English.
- Confirm the font stack covers the script and renders well at small sizes.
Strings, plurals and message format
The single habit that makes translation possible is to treat every user-visible string as a message with an identifier, stored outside the code and passed to translators whole.
Do not build sentences from fragments
Code such as "You have " + count + " new " + (count === 1 ? "message" : "messages") cannot be translated well. Word order differs between languages, and many languages have more than two plural forms. ICU’s MessageFormat documentation notes that when sentences are concatenated from pieces, translators are unable to rearrange them, and recommends placing plural and select arguments at the outermost level with complete sentences inside each branch (ICU User Guide: Formatting Messages).
In practice, choose an i18n library for your framework that supports ICU message syntax, so a message looks like {count, plural, one {You have # new message} other {You have # new messages}} and translators can add the forms their language needs.
Give translators context
- Use descriptive keys (
billing.invoice.overdue_banner) rather than English text as keys. - Attach a description and, where possible, a screenshot to each message. “Save” as a verb and “Save” as a noun can translate differently.
- State maximum lengths for buttons and labels. German and Finnish strings often run much longer than English; design components to wrap or truncate gracefully.
- Keep formatting out of messages: pass pre-formatted dates and amounts as placeholders, as the ICU guide also recommends.
Do not forget non-UI text
Transactional emails, SMS, push notifications, PDF documents, error messages from the API, validation messages and seed data all need the same treatment. They are the strings most often missed in the first release.
Running translation as a continuous workflow
Translation fails when it is a one-off project at the end of a release. It works when it runs alongside development, like testing.
A workable pipeline, step by step
- Extract. CI extracts new and changed messages from the codebase into the source language file on every merge.
- Sync. The source file is pushed to a translation management system (TMS) or a shared repository that translators can work in.
- Translate. Professional translators, an agency or in-market staff translate, using a glossary and translation memory so terms stay consistent. Machine translation can draft, but a human reviews anything customer-facing.
- Review in context. A reviewer checks translations on a staging build, because many problems only show on screen: truncation, wrong tone, ambiguous terms.
- Pull back. Completed translations return to the repository as a pull request and go through normal review.
- Release. Agree a string freeze before each release so translators have a stable target, and decide what happens to untranslated strings: fall back to the source language, or block the release for that locale.
Pseudo-localisation
Before any real translation, run the app with a pseudo-locale that replaces strings with accented, lengthened versions (for example “[Ŝàvé çĥàñĝéš !!!]”). It immediately shows hard-coded strings, truncation and layout breakage, and it can run in automated UI tests. It is the cheapest internationalisation test available.
Roles and ownership
| Role | Owns |
|---|---|
| Engineering | Extraction, message format, fallbacks, pseudo-localisation in CI |
| Product or content owner | Source copy quality, glossary, string freeze dates |
| Language owner (per locale) | Translation quality, in-context review, tone |
| QA | Locale test matrix, RTL and formatting checks |
Glossary and quality practices are covered in more depth in our article on machine translation for product and support content.
Costs, risks and a readiness checklist
Where the cost really sits
The cost of internationalisation is dominated by how much existing code assumes one locale. A new product that uses Intl APIs, logical CSS and an i18n library from the first sprint pays a small premium. An established product with hand-formatted dates, concatenated strings and physical CSS carries a retrofit cost that grows with the number of screens. Translation itself is a recurring cost per word and per locale that continues for the life of the product, so every new feature adds to it.
Common risks
- Partial translation. A half-translated interface undermines trust more than an English one. Decide fallback rules deliberately.
- Search and sorting. Alphabetical sorting, search and case-insensitive matching differ by language. Use locale-aware collation in the database and search index.
- SEO duplication. Public pages in several languages need correct language annotations; see our guide on multilingual websites and hreflang.
- Accessibility. Screen readers depend on correct
langattributes to pronounce text; include localised builds in accessibility testing, as described in testing for accessibility against WCAG 2.2. - Legal text. Terms, privacy notices and consent wording may need legal review per market, not just translation.
Readiness checklist
- Support level agreed per target market.
- Locale model stores language, region, time zone and currency separately.
- All formatting goes through Intl APIs or a library built on them; money stored as amount plus currency code.
- All user-visible strings externalised, including emails, PDFs and API errors.
- ICU-style messages for plurals and gender; no concatenated sentences.
- Logical CSS properties in shared components;
dirandlangset on thehtmlelement. - Pseudo-locale running in CI and visual tests.
- Translation pipeline, glossary, string freeze and language owners in place.
- Locale-aware sorting and search configured.
Action: score your product against this checklist before you estimate a new market. Each unchecked line is a backlog item with a known purpose.
Frequently asked questions
How long does it take to internationalise an existing web app?
It depends on how many screens, emails and documents assume one locale. The fastest way to find out is a short audit: grep for hard-coded strings and date formats, run a pseudo-locale build and count what breaks. That gives an evidence-based estimate rather than a guess.
Can we just use machine translation for the interface?
Machine translation is useful for drafts and for low-risk internal text, but customer-facing interface strings, billing messages and legal text should be reviewed by a fluent human in context. Short UI strings are ambiguous without context and often mistranslate.
Should we store prices in each local currency or convert at display time?
That is a commercial decision. Converted display prices are simple but fluctuate; local price lists give stable, market-appropriate prices but need management. Either way, store amounts with an explicit currency code and never infer currency from language.
Do we need to support right-to-left languages from day one?
Not unless a target market needs it. But using CSS logical properties and setting direction in markup from the start costs very little and avoids an expensive retrofit if Arabic or Hebrew markets appear later.
Which library should we use for translations?
Choose a well-maintained i18n library for your framework that supports ICU message syntax, extraction tooling and lazy loading of locale files. The specific choice matters less than using it consistently and never concatenating strings.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- W3C Internationalization: Language tags in HTML and XML — accessed 9 November 2026. Guidance to keep BCP 47 tags short, when to add region and script subtags, and use of the lang attribute.
- W3C Internationalization: Structural markup and right-to-left text in HTML — accessed 9 November 2026. Setting dir on the html element, avoiding CSS for base direction, dir=auto, bdi and dirname.
- MDN Web Docs: Intl.NumberFormat — accessed 9 November 2026. Locale-specific currency and number formatting examples (de-DE, ja-JP, en-IN).
- MDN Web Docs: CSS logical properties and values — accessed 9 November 2026. Flow-relative properties for layouts that adapt to right-to-left and vertical writing modes.
- ICU User Guide: Formatting Messages — accessed 9 November 2026. Why concatenated strings block translation, and plural/select message recommendations.
Related reading
Continue your research
How ready is your web app for its next market?
We can audit your codebase for internationalisation gaps, estimate the work per locale, and build the locale model, formatting and translation pipeline with your team.
