Merged in feat/syncDefaultMessage (pull request #3022)

Sync defaultMessage from lokalise

* Enhance translation sync functionality and tests

- Added logging for found component files during sync.
- Introduced tests for handling complex components with replacements.
- Updated regex in syncIntlFormatMessage to support optional second arguments.
- Removed unused test files.

* feat(syncDefaultMessage): add script for syncing default message with lokalise

* feat(syncDefaultMessage): add script for syncing default message with lokalise


Approved-by: Matilda Landström
This commit is contained in:
Joakim Jäderberg
2025-10-30 08:38:50 +00:00
parent 3962ecd858
commit bf6ed7778e
48 changed files with 316 additions and 197 deletions

View File

@@ -11,6 +11,7 @@
"dev:ds": "turbo run dev --filter=@scandic-hotels/design-system --output-logs new-only",
"dev:sas": "turbo run dev --filter=@scandic-hotels/partner-sas --output-logs new-only",
"test": "turbo run test",
"format": "turbo run format",
"postinstall": "husky",
"icons:update": "jiti scripts/material-symbols-update.mts",
"check-types": "turbo run check-types",
@@ -25,7 +26,8 @@
"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"
"i18n:sync": "yarn i18n:push && yarn i18n:pull",
"i18n:syncDefaultMessage": "yarn i18n:download && bun scripts/i18n/syncDefaultMessage/index.ts scripts/i18n/translations/en.json '{apps,packages}/**/*.{tsx,ts}' && yarn format --force"
},
"workspaces": [
"apps/*",
@@ -41,6 +43,7 @@
"husky": "^9.1.7",
"jiti": "^1.21.0",
"lint-staged": "^15.2.2",
"prettier": "^3.6.2",
"ts-node": "^10.9.2",
"turbo": "^2.5.2"
},