forked from baron/baron-sso
ci: add code check badges and coverage reports
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
DEFAULT_LOCALE,
|
||||
LOCALE_STORAGE_KEY,
|
||||
SUPPORTED_LOCALES,
|
||||
type Locale,
|
||||
SUPPORTED_LOCALES,
|
||||
type TomlObject,
|
||||
type TomlValue,
|
||||
type TranslatorInput,
|
||||
@@ -155,10 +155,16 @@ export function createTomlTranslator(
|
||||
const translations: Record<Locale, TomlObject> = {
|
||||
ko: input.ko
|
||||
.map((raw) => parseToml(raw))
|
||||
.reduce<TomlObject>((merged, current) => mergeTomlObjects(merged, current), {}),
|
||||
.reduce<TomlObject>(
|
||||
(merged, current) => mergeTomlObjects(merged, current),
|
||||
{},
|
||||
),
|
||||
en: input.en
|
||||
.map((raw) => parseToml(raw))
|
||||
.reduce<TomlObject>((merged, current) => mergeTomlObjects(merged, current), {}),
|
||||
.reduce<TomlObject>(
|
||||
(merged, current) => mergeTomlObjects(merged, current),
|
||||
{},
|
||||
),
|
||||
};
|
||||
|
||||
return function t(
|
||||
|
||||
Reference in New Issue
Block a user