-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71906c6
commit 114b8da
Showing
25 changed files
with
137 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const de: LocaleDefinition = {} | ||
const de: LocaleDefinition = { | ||
name: 'Deutsche' | ||
} | ||
|
||
export default de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const es: LocaleDefinition = {} | ||
const es: LocaleDefinition = { | ||
name: 'Español' | ||
} | ||
|
||
export default es |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const fr: LocaleDefinition = {} | ||
const fr: LocaleDefinition = { | ||
name: 'français' | ||
} | ||
|
||
export default fr |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const hr: LocaleDefinition = { | ||
name: 'Hrvatski' | ||
} | ||
|
||
export default hr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const it: LocaleDefinition = {} | ||
const it: LocaleDefinition = { | ||
name: 'italiano' | ||
} | ||
|
||
export default it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const ja: LocaleDefinition = {} | ||
const ja: LocaleDefinition = { | ||
name: '日本人' | ||
} | ||
|
||
export default ja |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const pt: LocaleDefinition = {} | ||
const pt: LocaleDefinition = { | ||
name: 'Português' | ||
} | ||
|
||
export default pt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const ru: LocaleDefinition = {} | ||
const ru: LocaleDefinition = { | ||
name: 'русский' | ||
} | ||
|
||
export default ru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const sl: LocaleDefinition = { | ||
name: 'Slovenščina' | ||
} | ||
|
||
export default sl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const sv: LocaleDefinition = { | ||
name: 'svenska' | ||
} | ||
|
||
export default sv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const tr: LocaleDefinition = { | ||
name: 'Türk' | ||
} | ||
|
||
export default tr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const vi: LocaleDefinition = { | ||
name: 'Tiếng Việt' | ||
} | ||
|
||
export default vi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { LocaleDefinition } from '@/locale/locale' | ||
|
||
// @ts-ignore | ||
const zh: LocaleDefinition = {} | ||
const zh: LocaleDefinition = { | ||
name: '简体中文' | ||
} | ||
|
||
export default zh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
const files = require.context('@/assets/locales/', false, /\.ts$/) | ||
const locales = {} | ||
const locales: any = {} | ||
export const localeNames: any = {} | ||
|
||
files.keys().forEach(key => { | ||
if (key === './index.ts') return | ||
// @ts-ignore | ||
locales[key.replace(/(\.\/|\.ts)/g, '')] = files(key).default | ||
|
||
const langCode = key.replace(/(\.\/|\.ts)/g, '') | ||
|
||
locales[langCode] = files(key).default | ||
localeNames[langCode] = files(key).default.name || langCode | ||
}) | ||
|
||
export default locales |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
import constants from '@/utils/constants' | ||
|
||
export default [ | ||
constants.defaultCurrencyCode, | ||
'EUR' | ||
] | ||
export default { | ||
AUD: 'Australian Dollar', | ||
BRL: 'Brazilian Real', | ||
CAD: 'Canadian Dollar', | ||
CHF: 'Swiss Franc', | ||
CNY: 'Chinese Yuan', | ||
DKK: 'Danish krone', | ||
EUR: 'Euro', | ||
GBP: 'British Pound', | ||
HKD: 'Hong Kong Dollar', | ||
IDR: 'Indonesian Rupiah', | ||
NZD: 'New Zealand Dollar', | ||
RUB: 'Russian Ruble', | ||
SGD: 'Singapore dollar', | ||
THB: 'Thai Baht', | ||
USD: 'United States Dollar' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters