Skip to content

Commit

Permalink
Remove locales (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
typeofweb authored Oct 20, 2023
1 parent 0b244ca commit cfb7c67
Show file tree
Hide file tree
Showing 85 changed files with 588 additions and 3,275 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NEXT_PUBLIC_SALEOR_API_URL=
NEXT_PUBLIC_SALEOR_API_URL=https://storefront1.saleor.cloud/graphql/
# make sure to add it on production for correct canonical URLs
NEXT_PUBLIC_STOREFRONT_URL=http://localhost:3000
14 changes: 1 addition & 13 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"plugins": ["@typescript-eslint", "import", "formatjs"],
"plugins": ["@typescript-eslint", "import"],
"parserOptions": {
"project": "tsconfig.json"
},
Expand Down Expand Up @@ -87,18 +87,6 @@
"import/no-default-export": "off"
}
},
{
"files": ["src/checkout/**/*.*"],
"rules": {
"@next/next/no-img-element": "off",
"formatjs/enforce-id": [
"error",
{
"idInterpolationPattern": "[folder]/[name]/[sha512:contenthash:base64:6]"
}
]
}
},
{
"files": ["__tests__/**/*.{ts,tsx}"],
"extends": ["plugin:playwright/recommended"]
Expand Down
23 changes: 0 additions & 23 deletions .husky/pre-push

This file was deleted.

10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,21 @@
"type": "module",
"scripts": {
"dev": "next dev",
"build": "pnpm run i18n && next build",
"build": "next build",
"start": "next start",
"predev": "pnpm run generate",
"prebuild": "pnpm run generate",
"lint": "next lint --dir src --fix",
"generate": "graphql-codegen --config .graphqlrc.ts",
"prepare": "husky install",
"i18n:extract": "formatjs extract 'src/checkout/src/**/*.{js,jsx,ts,tsx}' --format transifex --id-interpolation-pattern '[folder]/[name]/[sha512:contenthash:base64:6]' --out-file src/checkout/content/locales/en-US.json",
"i18n:compile": "formatjs compile-folder --ast --format transifex src/checkout/content/locales src/checkout/content/compiled-locales",
"i18n": "pnpm run i18n:extract && pnpm run i18n:compile",
"test": "playwright test"
},
"dependencies": {
"@adyen/adyen-web": "5.52.0",
"@adyen/api-library": "14.3.0",
"@apollo/client": "3.8.5",
"@headlessui/react": "1.7.17",
"@saleor/auth-sdk": "0.12.0",
"@saleor/auth-sdk": "0.13.1",
"clsx": "2.0.0",
"editorjs-html": "3.4.3",
"formik": "2.4.5",
Expand All @@ -34,7 +31,6 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "4.0.11",
"react-intl": "6.5.0",
"react-spinners": "0.13.8",
"react-test-renderer": "18.2.0",
"react-toastify": "9.1.3",
Expand All @@ -46,7 +42,6 @@
"zustand": "4.4.3"
},
"devDependencies": {
"@formatjs/cli": "6.2.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@graphql-typed-document-node/core": "3.2.0",
Expand All @@ -66,7 +61,6 @@
"eslint": "8.51.0",
"eslint-config-next": "13.5.5",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-formatjs": "4.11.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-playwright": "0.17.0",
"graphql-tag": "2.12.6",
Expand Down
Loading

0 comments on commit cfb7c67

Please sign in to comment.