Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/i18n/i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var langFiles = map[string]string{
"ko": "lang/ko.yaml",
"tr": "lang/tr.yaml",
"es-ES": "lang/es-ES.yaml",
"fa": "lang/fa.yaml",
}

func GetMsgWithMap(key string, maps map[string]interface{}) string {
Expand Down
353 changes: 353 additions & 0 deletions core/i18n/lang/fa.yaml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions frontend/src/lang/fu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,20 @@ const fuLocales: Record<string, FuLocaleMessage> = {
},
},
},
fa: {
fu: {
table: {
more: 'بیشتر',
custom_table_rows: 'ستون‌های سفارشی',
},
steps: {
cancel: 'لغو',
prev: 'قبلی',
next: 'بعدی',
finish: 'پایان',
},
},
},
};

export const getFuLocaleMessage = (locale: string) => {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lang/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const LOCALE_LOADERS: Record<string, LocaleLoader> = {
ms: () => import('./modules/ms'),
ko: () => import('./modules/ko'),
tr: () => import('./modules/tr'),
fa: () => import('./modules/fa'),
'es-ES': () => import('./modules/es-es'),
};

Expand Down
5,573 changes: 5,573 additions & 0 deletions frontend/src/lang/modules/fa.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/src/views/login/components/login-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<el-dropdown-item command="ru">Русский</el-dropdown-item>
<el-dropdown-item command="ms">Bahasa Melayu</el-dropdown-item>
<el-dropdown-item command="tr">Turkish</el-dropdown-item>
<el-dropdown-item command="fa">فارسی</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/views/setting/panel/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ const languageOptions = ref([
{ value: 'ms', label: 'Bahasa Melayu' },
{ value: 'tr', label: 'Turkish' },
{ value: 'es-ES', label: 'España - Español' },
{ value: 'fa', label: 'فارسی' },
]);

if (isIntl.value) {
Expand Down