Sort languages alphabetically
This commit is contained in:
parent
cd050a59f9
commit
4e93212cf9
@ -6,7 +6,12 @@ import { zh, chinese } from "./locales/zh";
|
|||||||
import { es, spanish } from "./locales/es";
|
import { es, spanish } from "./locales/es";
|
||||||
import { da, danish } from "./locales/da";
|
import { da, danish } from "./locales/da";
|
||||||
|
|
||||||
export const languages = [english, chinese, danish, spanish];
|
export const languages = [
|
||||||
|
english,
|
||||||
|
chinese,
|
||||||
|
danish,
|
||||||
|
spanish,
|
||||||
|
].sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
.use(LanguageDetector)
|
.use(LanguageDetector)
|
||||||
|
Loading…
Reference in New Issue
Block a user