Treceți la conținut

Arabic (Tunisia) (ar-TN)

Complete reference for the ar-TN locale — live Intl API output, CLDR plural rules, and framework config snippets.

Referință locale

Arabic (Tunisia)

Metadate locale

Cod BCP 47ar-TN
Nume nativالعربية (تونس)
Nume în englezăArabic (Tunisia)
Limbăar
RegiuneTN
ScriereArab
Direcția textuluiDe la dreapta la stânga (RTL)
Categorii de plural CLDRzero, one, two, few, many, other
Vorbitori estimați~12,000,000

Intl API Live Output

DateTimeFormat

Short31‏/10‏/2026
Medium31‏/10‏/2026
Long31 أكتوبر 2026
Fullالسبت، 31 أكتوبر 2026

NumberFormat

Decimal1.234.567,89
Currency (USD)‏9,99 US$
Percent75‎%‎
Compact1,2 مليون

RelativeTimeFormat

قبل 3 أيام

Output for: -3 days ago

ListFormat

apples وoranges وbananas

Conjunction list: apples, oranges, bananas

CLDR Plural Rules

Categories supported by ar-TN: zero, one, two, few, many, other

zeroExample number: 0
→ zero
oneExample number: 1
→ one
twoExample number: 2
→ two
fewExample number: 3
→ few
manyExample number: 11
→ many
otherExample number: 100
→ other

Framework Config Snippets

next-intl
// next-intl configuration
// next.config.ts
import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin();
export default withNextIntl({});

// i18n/routing.ts
import { defineRouting } from 'next-intl/routing';
export const routing = defineRouting({
  locales: ['ar-TN', 'en'],
  defaultLocale: 'en',
});
react-intl
// react-intl configuration
import { IntlProvider } from 'react-intl';
import messages from './messages/ar-TN.json';

function App() {
  return (
    <IntlProvider locale="ar-TN" messages={messages}>
      {/* your app */}
    </IntlProvider>
  );
}
i18next
// i18next configuration
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';

i18n
  .use(initReactI18next)
  .init({
    lng: 'ar-TN',
    fallbackLng: 'en',
    resources: {
      'ar-TN': {
        translation: require('./locales/ar-TN/translation.json'),
      },
    },
  });

export default i18n;

Related Locales

Arabic (Tunisia) is supported by Better I18N

Add ar-TN to your project in seconds — no manual config required.

Start free trial

Alte instrumente

Instrumente gratuite pentru restul fluxului tău i18n: date despre locale, mesaje ICU, formate de fișiere și hreflang.

Sunteți gata să expediați la nivel global?

Alăturați-vă sutelor de echipe care utilizează Better I18N pentru a furniza traduceri mai rapide, în funcție de context.

Deja în producție cu Better I18N