Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Nov 21, 2024
1 parent ae2cef5 commit 51ba1c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { LANGUAGES } from "@/config/config.js";
const defaultLocale = "en";

LANGUAGES.forEach(([name, code, flag]) => {
register(code, () => import(`@/langs/json/${code}.json`));
if (code) {
register(code, () => import(`@/langs/json/${code}.json`));
}
});

// handle two-part locales
Expand Down

0 comments on commit 51ba1c2

Please sign in to comment.