mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-02 18:57:26 +00:00
25a69ec1b6
Refactoring of i18n
14 lines
281 B
TypeScript
14 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
|
|
}
|
|
};
|
|
}
|