23 November, 2026

Building Arabic-English applications involves more than translating interface content. It requires careful handling of right-to-left (RTL) layouts, bidirectional text, numerals, date formatting, typography, navigation, and localisation across the entire application.
This guide explores how Flutter and Next.js handle RTL implementation, including:
RTL support in Flutter and Next.js requires more than translating an application into Arabic. It affects layout direction, text rendering, navigation, numerals, date formatting, fonts, and user interaction.
For CTOs and engineering teams, the challenge is ensuring that both Arabic and English interfaces behave consistently across every screen and user workflow. Hard-coded left/right values, concatenated strings, and mixed-direction text can create defects that remain hidden during English-only testing.
This guide explains how to approach RTL architecture in Flutter and Next.js, avoid common implementation problems, and test bilingual applications before release.
Bilingual Arabic and English support covers seven engineering areas beyond translated strings: layout mirroring, bidirectional text, numerals and dates, plural rules, fonts, icons, and content and QA. Translation supplies the words. Engineering decides how those words are laid out, ordered, formatted, and tested in both directions.
Treat bilingual support as a layout and text-handling discipline, not a translation task. Arabic app development touches all seven areas, and a gap in any one reaches users as a visible defect. RTL support in Flutter and Next.js uses different APIs for the same underlying model: logical directions, locale-aware formatting, and isolated text.
RTL layout works by replacing physical directions (left, right) with logical ones (start, end), so the framework can place content relative to the reading direction. Components anchored to the start edge move to the right in Arabic. Content with physical meaning, such as logos, stays put.
Logical properties are layout settings expressed as start and end, or inline and block, instead of left and right. CSS margin-inline-start and Flutter’s EdgeInsetsDirectional both resolve against the current direction. Use start and end in code, and reserve left and right for things that are physically left or right. Right-to-left app design is mostly this substitution applied consistently.
Do not mirror these:
Decide explicitly: chart axes. Mirroring a time axis is a product decision, not a default.
The Unicode bidirectional algorithm decides how mixed-direction text is displayed. In plain words, each character has a direction class, the algorithm splits a line into runs of one direction, and the paragraph’s base direction decides where neutral characters, such as spaces and punctuation, attach. Digits keep their own left-to-right order inside an Arabic line.
In the sentence تم تحديث تطبيق Acme اليوم (“The Acme app was updated today”), the English name stays left-to-right while the Arabic words run right-to-left around it. Trouble starts when punctuation or a number sits at the boundary between two runs.
Isolating text means rendering a piece of it as its own run, so its direction cannot reorder the text around it. User-generated content, brand names, and codes need isolation because their direction is unknown at build time. On the web, dir="auto" and the bdi element isolate text, as the W3C guidance on the dir attribute explains. Unicode also defines isolate control characters for plain-text contexts.
In Flutter, text direction comes from the app’s locale: when the locale is Arabic, and the localisation delegates are registered, the framework supplies a right-to-left Directionality. Widgets that use directional APIs follow it. Hard-coded left and right values, physical alignments, and custom painting do not, and the developer must fix them.
For applications targeting mobile, web and desktop, maintaining consistent behaviour across platforms also requires careful architectural planning. Learn more about Flutter cross-platform development and the considerations involved in building applications for multiple platforms.
A locale is a language plus an optional region, such as ar or ar-AE, that selects translations and formatting. The Flutter documentation describes generating an AppLocalizations class from ARB files, which are JSON message files per locale. Registering its delegates and supported locales on MaterialApp, as below, also registers the widget-level delegate that gives Arabic its right-to-left direction. Confirm the setup against the current documentation for your version. Teams implementing complex bilingual mobile interfaces can explore our Flutter app development services for custom application architecture, UI/UX, and integration requirements.
dart
MaterialApp(
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
home: const HomeScreen(),
)An ICU plural is a message written in ICU syntax that selects wording by plural category. ARB files support it, so the Arabic file needs a form for each category the language uses, while English needs only one and other. Never build plurals with a count greater than one; that is English grammar, not a general rule. Arabic localisation in Flutter therefore needs the message layer finished before screens depend on it.
Flutter RTL support depends on using the directional variants. EdgeInsetsDirectional, AlignmentDirectional, and PositionedDirectional take start and end values and resolve them against the ambient direction, and Row lays out children from start to end.
EdgeInsets.only(left: 16), Alignment.centerLeft, Positioned(left: 0), and TextAlign.left are physical and never move.
dart
Padding( padding: const EdgeInsetsDirectional.only(start: 16), child: Align( alignment: AlignmentDirectional.centerStart, child: Icon(Icons.arrow_forward, matchTextDirection: true), ), )
Icon accepts a matchTextDirection flag that mirrors the glyph in right-to-left contexts. Some icons in the Icons class are already defined to match direction, but check each directional icon in both languages instead of assuming.
A CustomPainter draws in physical canvas coordinates, so painted charts, progress arcs, and timelines do not mirror. The painter must read Directionality .of(context) and flip its own x-axis, fill direction, and labels. Chart packages differ in direction support, so test the chosen package with Arabic labels.
TextField aligns text with the ambient direction, and the bidirectional algorithm orders the text itself. Fields that hold email addresses, URLs, phone numbers, and codes should set textDirection to TextDirection.ltr, while free-text fields keep the ambient direction.
Bundle or select a font with Arabic glyph coverage and check the fallback behaviour for mixed Arabic and Latin lines. Keep letterSpacing at zero for Arabic text, because added spacing can break letter joining.
The common structural mistake is forcing one direction at the root, such as wrapping the app in a Directionality widget fixed to TextDirection.ltr or reading direction from a stored flag instead of the locale. That override disables mirroring for every descendant. Derive direction from the locale and override it only for isolated content.
In Next.js, the developer sets lang and dir on the root HTML element and owns routing and locale handling; the framework does not choose direction from the language. Arabic pages need dir set to rtl, CSS written with logical properties, and per-language URLs and metadata so search engines and users reach the right version.
Next.js RTL support starts at the root layout, which renders the html element and is where lang and dir are set from the active locale. Browsers use dir for base direction and to resolve start and end in CSS.
text
// app/[locale]/layout.tsx: locale resolved by your routing code
const dir = locale === "ar" ? "rtl" : "ltr";
return (
<html lang={locale} dir={dir}>
<body>{children}</body>
</html>
);Locale routing in the App Router usually means a dynamic locale segment at the top of the route tree, with the active locale read from the URL. For applications requiring localized routing, scalable frontend architecture and API integrations, explore our Next.js development services.
The Next.js internationalisation guide describes this routing pattern. Routing, locale detection and message loading remain the developer’s responsibility, whether handwritten or supplied by a library such as next-intl.
CSS logical properties such as margin-inline-start, padding-inline, border-inline-start and text-align: start resolve against dir, so one stylesheet serves both directions. Physical properties such as margin-left do not flip, and utility classes that compile to left and right behave the same way. An Arabic RTL website in Next.js is ready for review only when a stylesheet audit finds no physical values left.
Choose a font with Arabic coverage and load the Arabic subset if the font provider splits fonts by subset. Check mixed Arabic and Latin lines for size and baseline differences, because the two scripts can look uneven at the same font size.
Intl.NumberFormat and Intl.DateTimeFormat format numbers and dates for a locale and accept options for numbering system and calendar. The digits a bare Arabic locale tag produces depend on the runtime’s locale data, so set the numbering system explicitly once the product has chosen. Format every number and date through Intl, never through string concatenation.
Each language needs its own indexable URL, a translated title and description, and hreflang annotations that list every language version, including the page itself. The Google documentation on localised versions recommends distinct URLs per language and advises against redirecting users automatically based on a guessed language. Offer a visible language switcher and remember an explicit choice. The Next.js metadata API supports language alternates, so declare hreflang per page.
Bilingual apps break in predictable places: strings assembled from fragments, plural logic copied from English, numbers and phone numbers inside Arabic sentences, directional icons, custom-drawn charts, truncation, letter-spacing, exports and search. The table below lists eight failure points, why each happens, and the fix. Most of them survive English-only testing and surface once real Arabic content arrives.
| Problem | Why it happens | Fix |
|---|---|---|
| Concatenated strings | Arabic word order, agreement, and plural forms differ, so fragments cannot be rejoined | Use whole messages with named placeholders |
| Plural forms | Code branches on count equal to one; Arabic uses six categories | Use ICU plurals or Intl.PluralRules with every category |
| Numbers and phone numbers in Arabic text | The bidirectional algorithm can reorder digits and neighbouring punctuation | Isolate the value and format it through Intl |
| Directional icons, charts and progress bars | Icons and canvas drawing use physical coordinates | Mirror directional icons; make painters read the direction; fill from start |
| Truncation | Limits were tuned on English; mixed runs clip at the logical end | Allow wrapping; size by layout, not character count |
| Letter-spacing | Added spacing separates letters that should join | Set spacing to zero for Arabic |
| Exports and emails | PDFs, CSVs and templates sit outside the UI layer and skip direction and fonts | Set dir and lang in templates; embed Arabic-capable fonts; test in target clients |
| Search | One word can be written with or without diacritics and with letter variants | Normalise stored and query text |
Where this goes wrong: a confirmation message built from a count, a noun and a verb fragment compiles in both languages. The Arabic translator receives three disconnected pieces and cannot reorder them or choose the right plural form. Every fragment is correct, and the sentence is still wrong.
Where this goes wrong: an Arabic sentence ending in a Latin-digit order number sits inside an LTR container. The final full stop attaches to the wrong side of the last run, because the base direction does not match the text. The string is correct in memory and wrong on screen.
Test an Arabic and English app by running every screen in both directions with real Arabic content, long strings and bidirectional test strings, then changing device language while the app is running. Add automated direction assertions to catch regressions and finish with sign-off from a native Arabic reviewer.
Review the running app, not the string file. RTL support in Flutter and Next.js stays dependable only when these checks run on every release.
Chat interfaces, such as an Arabic AI chatbot, add streaming text and mixed-direction messages, so each needs its own bidirectional test cases for partial strings.
Design for Arabic and English from the start when the product is new: directional layout code, whole-sentence strings, and locale-aware formatting are easiest to write once. Retrofit an existing app when its layout code already uses start and end values. Rebuild the UI layer when hard-coded left and right values and concatenated strings are spread through the codebase.
For SaaS products, these decisions should also account for scalability, maintainability, and future feature requirements. Explore our guide to Flutter SaaS architecture decisions for more considerations when planning application architecture.
| Approach | Best when | Main risk |
|---|---|---|
| Design first | The product is new | Needs Arabic content and a reviewer before the product has either |
| Retrofit | Layout code already uses start and end | Auditing every screen; English regressions |
| Rebuild the UI layer | Direction values and string assembly are spread through the codebase | Reimplementing behaviour that already works |
The rebuild versus maintain decision for a UI layer depends on how many screens need edits to every directional value, and rebuilding becomes the lower-effort path when most do.
Where this goes wrong: a team searches the codebase for left and right and replaces each with start and end. The search finds explicit values but misses fixed-width containers, canvas drawing, hand-built strings, and images with embedded text. The app looks mirrored on the main screens and breaks on the rest.
Planning RTL support in Flutter and Next.js for an existing product starts with a codebase audit. A retrofit takes effort in proportion to the number of screens containing hard-coded direction, not the number of languages added.
Building a bilingual Arabic-English application requires more than adding translations. It requires a consistent approach to directional layouts, bidirectional text, locale-aware formatting, typography, and testing across every user interaction.
Whether you are developing a new product or modernising an existing application, addressing RTL requirements early helps reduce rework and deliver a consistent experience across both languages. Flutter and Next.js provide the foundations, but reliable implementation depends on the architectural decisions behind them.
At iSyncEvolution, we help businesses build scalable web and mobile applications with thoughtful architecture, cross-platform development, and seamless user experiences. If you are planning an Arabic-English application or evaluating your existing RTL implementation, talk to our team about your development requirements.
Partly. Flutter derives text direction from the locale, and widgets that use directional APIs, such as Row, EdgeInsetsDirectional and AlignmentDirectional, follow it. Hard-coded left and right values, physical text alignment, custom painting, and some icons do not mirror, so the developer must replace or handle them. Run every screen in an Arabic locale to find them.
No. Next.js does not set direction from the language; the developer sets dir on the HTML element and writes CSS that responds to it. Logical properties such as margin-inline-start flip with dir, while physical properties such as margin-left do not. Routing, locale detection, and message loading are also the developer’s responsibility.
Yes, for any public content. One URL per language, such as a locale prefix in the path, lets search engines index each version and lets users share links that open in the right language. Add hreflang annotations listing every version, and avoid redirecting users automatically based on a guessed language.
The choice between Latin digits (0-9) and Arabic-Indic digits is a product decision, not a technical default. Decide it with the product owner and a native Arabic reviewer, apply it consistently through locale-aware formatting such as Intl, and keep phone numbers, codes, and identifiers in a predictable form. Test the choice with real users.
Yes. A native Arabic reviewer checks tone, terminology, gendered forms, and how text reads in the running interface, which automated checks and machine translation cannot confirm. Direction bugs, truncation, and joined-letter problems also show up faster to a reader who knows the script. Review the running app, not an exported string file.
Nikhil Shah is the CTO and Co-Founder of iSyncEvolution, an engineering leader who aligns modern technology best practices with long-term commercial success. A veteran of cloud infrastructure and scalable web/mobile solutions, he specializes in building high-performance software environments. Nikhil helps global brands master their technical roadmaps, optimizing both code performance and development economics to fuel growth.
Written by