mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-17 23:47:38 -07:00
15 lines
281 B
TypeScript
15 lines
281 B
TypeScript
|
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
|
||
|
}
|
||
|
};
|
||
|
}
|