← Languages & locales

RS · SRB

Serbia languages and locale codes

Official or primary languages with practical BCP 47 locale recommendations.

BCP 47

Languages and locale codes

LanguageCodeRecommended localeStatus
SerbianOfficial
SerbianOfficial
HungarianRegional official
RomanianRegional official
CroatianRegional official
SlovakRegional official
UkrainianRegional official

Use a Serbia locale in a product

When content is written in Serbian, use the lang tag below to describe the text. The Intl locale selects regional formatting. This is one example from the table, not a claim about every visitor's language preference.

<html lang="sr">
new Intl.NumberFormat("sr-RS").format(1234567.89);

Compare number and date formatting

These examples use 1234567.89 and the fixed instant 2026-01-15T13:45:00Z, with dates displayed in UTC. Intl computes the results when this site is built; your browser and locale-data version may differ. Unsupported tags are identified instead of showing default-language output.

Intl formatting examples (UTC)
LocaleNumberDateCurrency
sr-RS1.234.567,8915. јануар 2026.
RSD: 1.234,50 RSD
sr-Latn-RS1.234.567,8915. januar 2026.
RSD: 1.234,50 RSD
hu-RS1 234 567,892026. január 15.
RSD: 1234,50 RSD
ro-RS1.234.567,8915 ianuarie 2026
RSD: 1.234,50 RSD
hr-RS1.234.567,8915. siječnja 2026.
RSD: 1.234,50 RSD
sk-RS1 234 567,8915. januára 2026
RSD: 1 234,50 RSD
uk-RS1 234 567,8915 січня 2026 р.
RSD: 1 234,50 RSD

Currency examples use the fixed value 1234.5. SIX and CLDR snapshot: 2026-09-26. Specify each currency explicitly; formatting is not an exchange rate.

new Intl.NumberFormat("sr-RS", { style: "currency", currency: "RSD" }).format(1234.5);

Before adopting a tag, run Intl.NumberFormat.supportedLocalesOf() and Intl.DateTimeFormat.supportedLocalesOf() in your target runtime. A locale does not select a time zone or translate interface text; specify currency explicitly when formatting money.

Intl locale support reference (MDN)

Data provenance

Sources

Data snapshot: 2026-09-26