feat: default locale Russian, geo determines language for other countries
- localization-svc: defaultLocale ru, resolveLocale only by geo - web-svc: DEFAULT_LOCALE ru, layout lang=ru, embeddedTranslations fallback ru - countryToLocale: default ru when no country or unknown country Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
23
services/geo-device-svc/package.json
Normal file
23
services/geo-device-svc/package.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "geo-device-svc",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"description": "Сервис определения геопозиции, устройства и браузера пользователя",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"dev": "npx tsx watch src/index.ts",
|
||||
"start": "npx tsx src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"cors": "^2.8.5",
|
||||
"express": "^4.21.0",
|
||||
"geoip-lite": "^1.4.9",
|
||||
"ua-parser-js": "^1.0.41"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/ua-parser-js": "^0.7.39",
|
||||
"tsx": "^4.19.0",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user