From 175d4274de6c93d7f3d47ea8fb0162a28ab9a914 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 19 Jul 2024 20:59:13 +0800 Subject: [PATCH 1/3] chore(elements): move check to build --- packages/elements/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/elements/package.json b/packages/elements/package.json index a9bcfd3cd..ee405db27 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -28,14 +28,13 @@ }, "scripts": { "precommit": "lint-staged", - "build": "lit-localize build && tsup", + "build": "pnpm check && lit-localize build && tsup", "start": "web-dev-server", "dev": "lit-localize build && tsup --watch --no-splitting", "lint": "eslint --ext .ts src", "lint:report": "pnpm lint --format json --output-file report.json", "test": "echo \"No tests yet.\"", "test:ci": "pnpm run test --silent --coverage", - "prepublishOnly": "pnpm check", "prepack": "pnpm build", "localize": "lit-localize", "check": "lit-localize extract && git add . -N && git diff --exit-code" From 520f43ca035bd4cb2c3ebcc599337ef09c5ffb91 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sat, 20 Jul 2024 22:10:28 +0800 Subject: [PATCH 2/3] chore(elements): add locale changes --- packages/elements/xliff/de.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/es.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/fr.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/it.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/ja.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/ko.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/pl-PL.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/pt-BR.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/pt-PT.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/ru.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/tr-TR.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/zh-CN.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/zh-HK.xlf | 20 ++++++++++++++++++++ packages/elements/xliff/zh-TW.xlf | 20 ++++++++++++++++++++ 14 files changed, 280 insertions(+) diff --git a/packages/elements/xliff/de.xlf b/packages/elements/xliff/de.xlf index 29226b9e3..0e53b134a 100644 --- a/packages/elements/xliff/de.xlf +++ b/packages/elements/xliff/de.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/es.xlf b/packages/elements/xliff/es.xlf index 27081c5ff..53dd698c9 100644 --- a/packages/elements/xliff/es.xlf +++ b/packages/elements/xliff/es.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/fr.xlf b/packages/elements/xliff/fr.xlf index d15883afb..9df324b9c 100644 --- a/packages/elements/xliff/fr.xlf +++ b/packages/elements/xliff/fr.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/it.xlf b/packages/elements/xliff/it.xlf index 891dd2a0c..ce400acd4 100644 --- a/packages/elements/xliff/it.xlf +++ b/packages/elements/xliff/it.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/ja.xlf b/packages/elements/xliff/ja.xlf index cd69abf18..5e0fbaed5 100644 --- a/packages/elements/xliff/ja.xlf +++ b/packages/elements/xliff/ja.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/ko.xlf b/packages/elements/xliff/ko.xlf index 11d955e80..6cd31a4bb 100644 --- a/packages/elements/xliff/ko.xlf +++ b/packages/elements/xliff/ko.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/pl-PL.xlf b/packages/elements/xliff/pl-PL.xlf index 6773af30b..8a65abb81 100644 --- a/packages/elements/xliff/pl-PL.xlf +++ b/packages/elements/xliff/pl-PL.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/pt-BR.xlf b/packages/elements/xliff/pt-BR.xlf index d13410c2f..e1574529f 100644 --- a/packages/elements/xliff/pt-BR.xlf +++ b/packages/elements/xliff/pt-BR.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/pt-PT.xlf b/packages/elements/xliff/pt-PT.xlf index 7c4554c56..062a94784 100644 --- a/packages/elements/xliff/pt-PT.xlf +++ b/packages/elements/xliff/pt-PT.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/ru.xlf b/packages/elements/xliff/ru.xlf index 04de78375..83f8a10cc 100644 --- a/packages/elements/xliff/ru.xlf +++ b/packages/elements/xliff/ru.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/tr-TR.xlf b/packages/elements/xliff/tr-TR.xlf index 2a68b7f21..0bb34a455 100644 --- a/packages/elements/xliff/tr-TR.xlf +++ b/packages/elements/xliff/tr-TR.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/zh-CN.xlf b/packages/elements/xliff/zh-CN.xlf index ddd4d3298..38c7b3b59 100644 --- a/packages/elements/xliff/zh-CN.xlf +++ b/packages/elements/xliff/zh-CN.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/zh-HK.xlf b/packages/elements/xliff/zh-HK.xlf index 010937564..62bf69680 100644 --- a/packages/elements/xliff/zh-HK.xlf +++ b/packages/elements/xliff/zh-HK.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + diff --git a/packages/elements/xliff/zh-TW.xlf b/packages/elements/xliff/zh-TW.xlf index baff9eed8..5a8191598 100644 --- a/packages/elements/xliff/zh-TW.xlf +++ b/packages/elements/xliff/zh-TW.xlf @@ -13,6 +13,26 @@ Personal information + + Title + + + Content + + + Actions + + + Change + + + Avatar + The avatar of the user. + + + Name + The name of the user. + From 3527848b67378cb968b8c55aeae501a41dffa071 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sat, 20 Jul 2024 23:01:58 +0800 Subject: [PATCH 3/3] chore(elements): check git existence --- packages/elements/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/elements/package.json b/packages/elements/package.json index ee405db27..3599cd569 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -37,7 +37,7 @@ "test:ci": "pnpm run test --silent --coverage", "prepack": "pnpm build", "localize": "lit-localize", - "check": "lit-localize extract && git add . -N && git diff --exit-code" + "check": "if command -v git &> /dev/null; then lit-localize extract && git add . -N && git diff --exit-code; fi" }, "engines": { "node": "^20.9.0"