Přejít na obsah

Persian (Iran) (fa-IR)

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

Reference locale

Persian (Iran)

Metadata locale

Kód BCP 47fa-IR
Název v jazyceفارسی (ایران)
Anglický názevPersian (Iran)
Jazykfa
RegionIR
PísmoArab
Směr textuZprava doleva (RTL)
Kategorie plurálu CLDRone, other
Odhadovaný počet mluvících~70,000,000

Intl API Live Output

DateTimeFormat

Short۱۴۰۵/۶/۴
Medium۴ شهریور ۱۴۰۵
Long۴ شهریور ۱۴۰۵
Full۱۴۰۵ شهریور ۴, چهارشنبه

NumberFormat

Decimal۱٬۲۳۴٬۵۶۷٫۸۹
Currency (USD)‎$۹٫۹۹
Percent۷۵٪
Compact۱٫۲ میلیون

RelativeTimeFormat

۳ روز پیش

Output for: -3 days ago

ListFormat

apples،‏ oranges، و bananas

Conjunction list: apples, oranges, bananas

CLDR Plural Rules

Categories supported by fa-IR: one, other

oneExample number: 1
one
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: ['fa-IR', 'en'],
  defaultLocale: 'en',
});
react-intl
// react-intl configuration
import { IntlProvider } from 'react-intl';
import messages from './messages/fa-IR.json';

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

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

export default i18n;

Related Locales

Persian (Iran) is supported by Better I18N

Add fa-IR to your project in seconds — no manual config required.

Start free trial

Další nástroje

Bezplatné nástroje pro zbytek vašeho i18n workflow: data locale, zprávy ICU, formáty souborů a hreflang.

Jste připraveni na globální přepravu?

Připojte se ke stovkám týmů, které používají Better I18N k rychlejšímu překladu s ohledem na kontext.

Už běží na Better I18N