|
@@ -4,7 +4,6 @@ import type { IncomingHttpHeaders } from 'http';
|
|
|
|
|
|
|
|
import * as i18nextConfig from '^/config/i18next.config';
|
|
import * as i18nextConfig from '^/config/i18next.config';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const ACCEPT_LANG_MAP = {
|
|
const ACCEPT_LANG_MAP = {
|
|
|
en: Lang.en_US,
|
|
en: Lang.en_US,
|
|
|
ja: Lang.ja_JP,
|
|
ja: Lang.ja_JP,
|
|
@@ -51,7 +50,6 @@ export const getLocale = (langCode: string): Locale => {
|
|
|
return locale ?? enUS;
|
|
return locale ?? enUS;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* It return the first language that matches ACCEPT_LANG_MAP keys from sorted accept languages array
|
|
* It return the first language that matches ACCEPT_LANG_MAP keys from sorted accept languages array
|
|
|
* @param sortedAcceptLanguagesArray
|
|
* @param sortedAcceptLanguagesArray
|