A continuation of HomeBox the inventory and organization system built for the Home User
fix: regional languages not matching correctly
Matt Kilgore7c855cf55d39
diff --git a/frontend/plugins/i18n.ts b/frontend/plugins/i18n.tsindex 8043bfda..fb23642d 100644--- a/frontend/plugins/i18n.ts+++ b/frontend/plugins/i18n.ts@@ -7,7 +7,7 @@ export default defineNuxtPlugin(({ vueApp }) => {let matched = null;const languages = Object.getOwnPropertyNames(messages())languages.forEach(lang => {- if (lang === navigator.language) {+ if (lang === navigator.language.replace('-', '_')) {matched = lang;}});