Adding hindi template.
This commit is contained in:
parent
9b93d4c098
commit
43592c32d9
3 changed files with 16 additions and 5 deletions
4
ui/src/i18next.ts
vendored
4
ui/src/i18next.ts
vendored
|
@ -13,14 +13,18 @@ import { it } from './translations/it';
|
|||
import { fi } from './translations/fi';
|
||||
import { ca } from './translations/ca';
|
||||
import { fa } from './translations/fa';
|
||||
import { hi } from './translations/hi';
|
||||
import { pt_BR } from './translations/pt_BR';
|
||||
import { ja } from './translations/ja';
|
||||
import { ka } from './translations/ka';
|
||||
|
||||
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
|
||||
const resources = {
|
||||
en,
|
||||
eo,
|
||||
es,
|
||||
ka,
|
||||
hi,
|
||||
de,
|
||||
zh,
|
||||
fr,
|
||||
|
|
4
ui/src/utils.ts
vendored
4
ui/src/utils.ts
vendored
|
@ -13,6 +13,7 @@ import 'moment/locale/fa';
|
|||
import 'moment/locale/pt-br';
|
||||
import 'moment/locale/ja';
|
||||
import 'moment/locale/ka';
|
||||
import 'moment/locale/hi';
|
||||
|
||||
import {
|
||||
UserOperation,
|
||||
|
@ -62,6 +63,7 @@ export const languages = [
|
|||
{ code: 'es', name: 'Español' },
|
||||
{ code: 'de', name: 'Deutsch' },
|
||||
{ code: 'ka', name: 'ქართული ენა' },
|
||||
{ code: 'hi', name: 'मानक हिन्दी' },
|
||||
{ code: 'fa', name: 'فارسی' },
|
||||
{ code: 'ja', name: '日本語' },
|
||||
{ code: 'pt_BR', name: 'Português Brasileiro' },
|
||||
|
@ -366,6 +368,8 @@ export function getMomentLanguage(): string {
|
|||
lang = 'ja';
|
||||
} else if (lang.startsWith('ka')) {
|
||||
lang = 'ka';
|
||||
} else if (lang.startsWith('hi')) {
|
||||
lang = 'hi';
|
||||
} else {
|
||||
lang = 'en';
|
||||
}
|
||||
|
|
3
ui/translations/hi.json
vendored
Normal file
3
ui/translations/hi.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
|
||||
}
|
Reference in a new issue