summaryrefslogtreecommitdiff
path: root/src/client/app/i18n.ts
blob: 2d0d9ba5500aee9df82b340bc1ac59968b61e4a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
		}
	};
}