mirror of
https://github.com/mue/mue.git
synced 2026-07-17 22:14:13 +02:00
chore: run prettier, lint, make it so i can run mue
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
import { I18nLite } from '@eartharoid/i18n';
|
||||
import { importJSON } from '@eartharoid/vite-plugin-i18n/client';
|
||||
|
||||
export const languages = Object
|
||||
.keys(import.meta.glob('i18n/**/main.yml'))
|
||||
.map(path => {
|
||||
const parts = path.split('/');
|
||||
const id = parts[parts.length - 2];
|
||||
return id;
|
||||
});
|
||||
export const languages = Object.keys(import.meta.glob('i18n/**/main.yml')).map((path) => {
|
||||
const parts = path.split('/');
|
||||
const id = parts[parts.length - 2];
|
||||
return id;
|
||||
});
|
||||
|
||||
/**
|
||||
* Initialise the i18n object.
|
||||
|
||||
Reference in New Issue
Block a user