fixed fa direction for multi language feature
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Home": {
|
||||
"title": "goodbye"
|
||||
"title": "مرحبا"
|
||||
}
|
||||
}
|
||||
|
||||
5
messages/fa.json
Normal file
5
messages/fa.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"Home": {
|
||||
"title": "سلام"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Home": {
|
||||
"title": "hello"
|
||||
"title": "مرحبا"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ export const localeDirectionMap: Record<string, Direction> = {
|
||||
en: "ltr",
|
||||
ar: "rtl",
|
||||
ku: "rtl",
|
||||
fa: "rtl",
|
||||
};
|
||||
|
||||
export function getDirection(locale: string): Direction {
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user