summaryrefslogtreecommitdiffstats
path: root/ui/src/i18next.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/i18next.ts')
-rw-r--r--ui/src/i18next.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts
index 2da3dfbe..a1fda907 100644
--- a/ui/src/i18next.ts
+++ b/ui/src/i18next.ts
@@ -27,10 +27,7 @@ const resources = {
fi,
};
-function format(value: any, format: any, lng: any) {
- if (format === 'uppercase') return value.toUpperCase();
- return value;
-}
+const format = (value, format, lng) => format === 'uppercase' ? value.toUpperCase() : value;
i18next.init({
debug: false,
@@ -40,9 +37,7 @@ i18next.init({
lng: getLanguage(),
fallbackLng: 'en',
resources,
- interpolation: {
- format: format,
- },
+ interpolation: { format },
});
export { i18next as i18n, resources };