Skip to content

Commit

Permalink
feat(design): add localization
Browse files Browse the repository at this point in the history
  • Loading branch information
Aykut Saraç committed Jan 29, 2024
1 parent 0e5db8d commit 355d0f3
Show file tree
Hide file tree
Showing 15 changed files with 429 additions and 46 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ storybook-static/
.octane-ci/
.bin/
.docksal/
src/generated/
15 changes: 15 additions & 0 deletions lit-localize.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/config.schema.json",
"sourceLocale": "en",
"targetLocales": ["tr-TR"],
"tsConfig": "./tsconfig.json",
"output": {
"mode": "runtime",
"outputDir": "./src/generated/locales",
"localeCodesModule": "./src/generated/locale-codes.ts"
},
"interchange": {
"format": "xliff",
"xliffDir": "./translations/"
}
}
190 changes: 190 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
"test:debug": "web-test-runner --coverage --watch --debug",
"test:headless": "web-test-runner --coverage --watch --debug --headless",
"generate-react-exports": "node scripts/generate-react-exports.js",
"generate-vue-types": "node scripts/generate-vue-types.js"
"generate-vue-types": "node scripts/generate-vue-types.js",
"localize:extract": "lit-localize extract",
"localize:build": "lit-localize build"
},
"keywords": [
"web-components",
Expand All @@ -66,6 +68,7 @@
"@floating-ui/dom": "^1.2.3",
"@fontsource-variable/rubik": "^5.0.2",
"@lit-labs/react": "^2.0.3",
"@lit/localize": "^0.12.1",
"@open-wc/form-control": "^0.7.0",
"@open-wc/form-helpers": "^0.2.2",
"element-internals-polyfill": "^1.2.3",
Expand All @@ -79,6 +82,7 @@
"@commitlint/config-conventional": "^16.2.4",
"@commitlint/prompt-cli": "^16.2.4",
"@custom-elements-manifest/analyzer": "^0.6.3",
"@lit/localize-tools": "^0.7.1",
"@open-wc/testing": "^3.1.6",
"@rollup/plugin-replace": "^4.0.0",
"@storybook/addon-a11y": "7.4.3",
Expand Down
Loading

0 comments on commit 355d0f3

Please sign in to comment.