feat: romanian translations (#6369)

This commit is contained in:
Dhruwang Jariwala
2025-08-08 09:33:55 +05:30
committed by GitHub
parent cd2884d83e
commit c0240d60a1
7 changed files with 223 additions and 3 deletions
+9 -1
View File
@@ -188,7 +188,15 @@ export const STRIPE_API_VERSION = "2024-06-20";
export const MAX_ATTRIBUTE_CLASSES_PER_ENVIRONMENT = 150;
export const DEFAULT_LOCALE = "en-US";
export const AVAILABLE_LOCALES: TUserLocale[] = ["en-US", "de-DE", "pt-BR", "fr-FR", "zh-Hant-TW", "pt-PT"];
export const AVAILABLE_LOCALES: TUserLocale[] = [
"en-US",
"de-DE",
"pt-BR",
"fr-FR",
"zh-Hant-TW",
"pt-PT",
"ro-RO",
];
// Billing constants
+18
View File
@@ -140,6 +140,7 @@ export const appLanguages = [
"fr-FR": "Anglais (États-Unis)",
"zh-Hant-TW": "英文 (美國)",
"pt-PT": "Inglês (EUA)",
"ro-RO": "Engleză (SUA)",
},
},
{
@@ -151,6 +152,7 @@ export const appLanguages = [
"fr-FR": "Allemand",
"zh-Hant-TW": "德語",
"pt-PT": "Alemão",
"ro-RO": "Germană",
},
},
{
@@ -162,6 +164,7 @@ export const appLanguages = [
"fr-FR": "Portugais (Brésil)",
"zh-Hant-TW": "葡萄牙語 (巴西)",
"pt-PT": "Português (Brasil)",
"ro-RO": "Portugheză (Brazilia)",
},
},
{
@@ -173,6 +176,7 @@ export const appLanguages = [
"fr-FR": "Français",
"zh-Hant-TW": "法語",
"pt-PT": "Francês",
"ro-RO": "Franceză",
},
},
{
@@ -184,6 +188,7 @@ export const appLanguages = [
"fr-FR": "Chinois (Traditionnel)",
"zh-Hant-TW": "繁體中文",
"pt-PT": "Chinês (Tradicional)",
"ro-RO": "Chineză (Tradicională)",
},
},
{
@@ -195,6 +200,19 @@ export const appLanguages = [
"fr-FR": "Portugais (Portugal)",
"zh-Hant-TW": "葡萄牙語 (葡萄牙)",
"pt-PT": "Português (Portugal)",
"ro-RO": "Portugheză (Portugalia)",
},
},
{
code: "ro-RO",
label: {
"en-US": "Romanian",
"de-DE": "Rumänisch",
"pt-BR": "Romeno",
"fr-FR": "Roumain",
"zh-Hant-TW": "羅馬尼亞語",
"pt-PT": "Romeno",
"ro-RO": "Română",
},
},
];
+3 -1
View File
@@ -1,5 +1,5 @@
import { formatDistance, intlFormat } from "date-fns";
import { de, enUS, fr, pt, ptBR, zhTW } from "date-fns/locale";
import { de, enUS, fr, pt, ptBR, ro, zhTW } from "date-fns/locale";
import { TUserLocale } from "@formbricks/types/user";
export const convertDateString = (dateString: string | null) => {
@@ -95,6 +95,8 @@ const getLocaleForTimeSince = (locale: TUserLocale) => {
return zhTW;
case "pt-PT":
return pt;
case "ro-RO":
return ro;
}
};
+1
View File
@@ -22,6 +22,7 @@ export function TolgeeBase() {
"pt-BR": () => import("@/locales/pt-BR.json"),
"pt-PT": () => import("@/locales/pt-PT.json"),
"zh-Hant-TW": () => import("@/locales/zh-Hant-TW.json"),
"ro-RO": () => import("@/locales/ro-RO.json"),
},
});
}