fixed fa direction for multi language feature

This commit is contained in:
2026-04-20 16:02:15 +03:30
parent 051a3a7d39
commit cf2093bf34
5 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
{
"Home": {
"title": "goodbye"
"title": "مرحبا"
}
}

5
messages/fa.json Normal file
View File

@@ -0,0 +1,5 @@
{
"Home": {
"title": "سلام"
}
}

View File

@@ -1,5 +1,5 @@
{
"Home": {
"title": "hello"
"title": "مرحبا"
}
}

View File

@@ -4,6 +4,7 @@ export const localeDirectionMap: Record<string, Direction> = {
en: "ltr",
ar: "rtl",
ku: "rtl",
fa: "rtl",
};
export function getDirection(locale: string): Direction {

View File

@@ -1,7 +1,7 @@
import { defineRouting } from "next-intl/routing";
export const routing = defineRouting({
locales: ["en", "ar", "ku"],
locales: ["en", "ar", "ku", "fa"],
defaultLocale: "en",
localePrefix: "never",
});