Merged in feat/sw-2333-package-and-sas-i18n (pull request #2538)

feat(SW-2333): I18n for multiple apps and packages

* Set upp i18n in partner-sas

* Adapt lokalise workflow to monorepo

* Fix layout props


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-07-10 07:00:03 +00:00
parent 2c0e8965e2
commit 233c685e52
31 changed files with 48133 additions and 210 deletions

View File

@@ -15,7 +15,17 @@
"icons:update": "node scripts/material-symbols-update.mjs",
"check-types": "turbo run check-types",
"env:web": "node scripts/show-env.mjs scandic-web --missing",
"env:sas": "node scripts/show-env.mjs partner-sas --missing"
"env:sas": "node scripts/show-env.mjs partner-sas --missing",
"i18n:extract": "formatjs extract \"{apps/scandic-web,apps/partner-sas,packages/booking-flow}/{actions,app,components,constants,contexts,env,hooks,i18n,lib,middlewares,netlify,providers,server,services,stores,utils}/**/*.{ts,tsx}\" --format scripts/i18n/formatter.mjs --out-file scripts/i18n/extracted.json",
"i18n:upload": "jiti scripts/i18n/upload.ts",
"i18n:download": "jiti scripts/i18n/download.ts",
"i18n:compile": "formatjs compile-folder --ast --format scripts/i18n/formatter.mjs scripts/i18n/translations-all scripts/i18n/dictionaries",
"i18n:diff": "node scripts/i18n/diff.mjs",
"i18n:clean": "jiti scripts/i18n/clean.ts",
"i18n:distribute": "jiti scripts/i18n/distribute.ts scandic-web partner-sas",
"i18n:push": "yarn i18n:extract && yarn i18n:upload",
"i18n:pull": "yarn i18n:download && yarn i18n:compile && yarn i18n:distribute",
"i18n:sync": "yarn i18n:push && yarn i18n:pull"
},
"workspaces": [
"apps/*",
@@ -23,10 +33,12 @@
],
"devDependencies": {
"@eslint/compat": "^1.2.9",
"@formatjs/cli": "^6.7.1",
"@types/react": "19.1.0",
"@types/react-dom": "19.1.0",
"@yarnpkg/types": "^4.0.1",
"husky": "^9.1.7",
"jiti": "^1.21.0",
"lint-staged": "^15.2.2",
"ts-node": "^10.9.2",
"turbo": "^2.5.2"