import { hr } from "./translations/hr";
import { th } from "./translations/th";
import { bg } from "./translations/bg";
+import { ar } from "./translations/ar";
+import { ko } from "./translations/ko";
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
const resources = {
hr,
th,
bg,
+ ar,
+ ko
};
function format(value: any, format: any): any {
#!/bin/bash
-pushd ../lemmy-translations
+pushd ../lemmy-translations || exit
git fetch weblate
git merge weblate/main
git push
-popd
+popd || exit
+
+# look for unused translations
+for langfile in lemmy-translations/translations/*.json; do
+ lang=$(basename $langfile .json)
+ if ! grep -q "\"./translations/$lang\"" src/shared/i18next.ts; then
+ echo "Unused language $lang"
+ fi
+done
+
git submodule update --remote
git add lemmy-translations
git commit -m"Updating translations."