Expand i18n locales and improve reviews UI

Add many new language packs with RTL support, refresh brand assets, and harden review rendering with tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
michilis
2026-08-21 05:06:58 +02:00
co-authored by Cursor
parent 1c5df18e81
commit 47e6537dde
51 changed files with 15291 additions and 246 deletions
+23
View File
@@ -23,6 +23,8 @@ export interface LocaleInfo {
intl: string;
/** `og:locale`. Underscored, region required by the OpenGraph spec. */
og: string;
/** Writing direction for the document. */
dir?: 'rtl';
}
/**
@@ -33,6 +35,27 @@ export const LOCALES: LocaleInfo[] = [
{ code: 'en', label: 'English', intl: 'en-GB', og: 'en_US' },
{ code: 'es', label: 'Español', intl: 'es-ES', og: 'es_ES' },
{ code: 'nl', label: 'Nederlands', intl: 'nl-NL', og: 'nl_NL' },
{ code: 'zh', label: '简体中文', intl: 'zh-CN', og: 'zh_CN' },
{ code: 'hi', label: 'हिन्दी', intl: 'hi-IN', og: 'hi_IN' },
{ code: 'ar', label: 'العربية الفصحى', intl: 'ar-SA', og: 'ar_SA', dir: 'rtl' },
{ code: 'fr', label: 'Français', intl: 'fr-FR', og: 'fr_FR' },
{ code: 'pt', label: 'Português', intl: 'pt-BR', og: 'pt_BR' },
{ code: 'it', label: 'Italiano', intl: 'it-IT', og: 'it_IT' },
{ code: 'tr', label: 'Türkçe', intl: 'tr-TR', og: 'tr_TR' },
{ code: 'pl', label: 'Polski', intl: 'pl-PL', og: 'pl_PL' },
{ code: 'uk', label: 'Українська', intl: 'uk-UA', og: 'uk_UA' },
{ code: 'ro', label: 'Română', intl: 'ro-RO', og: 'ro_RO' },
{ code: 'el', label: 'Ελληνικά', intl: 'el-GR', og: 'el_GR' },
{ code: 'cs', label: 'Čeština', intl: 'cs-CZ', og: 'cs_CZ' },
{ code: 'sv', label: 'Svenska', intl: 'sv-SE', og: 'sv_SE' },
{ code: 'da', label: 'Dansk', intl: 'da-DK', og: 'da_DK' },
{ code: 'id', label: 'Bahasa Indonesia', intl: 'id-ID', og: 'id_ID' },
{ code: 'ur', label: 'اردو', intl: 'ur-PK', og: 'ur_PK', dir: 'rtl' },
{ code: 'ru', label: 'Русский', intl: 'ru-RU', og: 'ru_RU' },
{ code: 'de', label: 'Deutsch', intl: 'de-DE', og: 'de_DE' },
{ code: 'ja', label: '日本語', intl: 'ja-JP', og: 'ja_JP' },
{ code: 'ar-eg', label: 'العربية المصرية', intl: 'ar-EG', og: 'ar_EG', dir: 'rtl' },
{ code: 'vi', label: 'Tiếng Việt', intl: 'vi-VN', og: 'vi_VN' },
];
export type Locale = string;