1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-17 08:09:14 +09:00
cherrypick/src/client/app/i18n.ts

15 lines
281 B
TypeScript
Raw Normal View History

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
}
};
}