mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
locale: remove outdated plugin
This commit is contained in:
1 parent
dd157a5e3b
commit
9f796e7024
3 files changed
-28
No files matched your search
@@ -1,10 +0,0 @@
|
|||||||
import yaml from 'js-yaml';
|
|
||||||
import i18n from 'hydrooj/src/lib/i18n';
|
|
||||||
import * as system from 'hydrooj/src/model/system';
|
|
||||||
import * as bus from 'hydrooj/src/service/bus';
|
|
||||||
|
|
||||||
bus.once('app/started', () => {
|
|
||||||
const langs = system.get('easy-locale.langs');
|
|
||||||
const entries = yaml.load(langs);
|
|
||||||
i18n(entries as any);
|
|
||||||
});
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@hydrooj/easy-locale",
|
|
||||||
"version": "1.1.0",
|
|
||||||
"main": "package.json",
|
|
||||||
"repository": "https://github.com/hydro-dev/Hydro",
|
|
||||||
"author": "undefined <i@undefined.moe>",
|
|
||||||
"license": "AGPL-3.0-or-later",
|
|
||||||
"dependencies": {
|
|
||||||
"js-yaml": "^4.1.0"
|
|
||||||
},
|
|
||||||
"preferUnplugged": true
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
langs:
|
|
||||||
type: yaml
|
|
||||||
desc: Custom Translation
|
|
||||||
default:
|
|
||||||
zh:
|
|
||||||
text: 文本
|
|
||||||
Reference in new issue
Block a user