mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-30 14:30:08 +08:00
wtf
Signed-off-by: MiniDigger <admin@benndorf.dev>
This commit is contained in:
parent
71be03e79c
commit
2a0e7f3c16
@ -267,12 +267,15 @@ function setupLocales() {
|
||||
.map((f) => require('./locales/' + f).default as typeof en);
|
||||
|
||||
const english = locales.find((l) => l.meta.code === 'en');
|
||||
if (!english) {
|
||||
console.error("didn't find english?!");
|
||||
}
|
||||
|
||||
locales.forEach((l) => {
|
||||
if (process.env.TRANSLATION_MODE !== 'true') {
|
||||
if (process.env.TRANSLATION_MODE !== 'true' && english) {
|
||||
strip(l, english);
|
||||
}
|
||||
console.log('Found locale ' + l.meta.name + ' with example string ' + l.general.close);
|
||||
console.log('Found locale ' + l.meta?.name + ' with example string ' + l.general?.close);
|
||||
});
|
||||
return locales;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user