request.ts
基本信息
- 类型: TypeScript 模块
- 路径:
src/i18n/request.ts
功能描述
Parse Accept-Language header and find the best matching supported locale e.g., "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7" -> "ru" if supported
导出内容
- <code>getRequestConfig</code> - 默认导出
依赖导入
next-intl/servernext/headersnext-intl@/lib/i18n/config
详细说明
详见代码实现