mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-19 12:36:07 -04:00
7 lines
262 B
TypeScript
7 lines
262 B
TypeScript
import buildLocaleList from '#shared/buildLocaleList.ts';
|
|
import { getLocale } from '~~/server/data.ts';
|
|
|
|
export default defineEventHandler((event) => {
|
|
return Object.fromEntries(buildLocaleList(getLocale(event)).map((locale) => [locale.code, locale]));
|
|
});
|