14
src/client/app/i18n.ts
Normal file
14
src/client/app/i18n.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { lang, locale } from './config';
|
||||
|
||||
export default function(scope?: string) {
|
||||
const texts = scope ? locale[scope] || {} : {};
|
||||
texts['@'] = locale['common'];
|
||||
texts['@deck'] = locale['deck'];
|
||||
return {
|
||||
sync: false,
|
||||
locale: lang,
|
||||
messages: {
|
||||
[lang]: texts
|
||||
}
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user