From 430b52c9ac568ee778f09465df2f6a7cacb2f88e Mon Sep 17 00:00:00 2001 From: Abishek Ilango Date: Fri, 14 Jun 2024 17:27:41 +0530 Subject: [PATCH 01/14] chore: Re-enable turbo flag in dev script (#6836) update next to 14.2.4 update turbo to 2.0.3 transpile shiki package as temp workaround for ModuleBuildError Signed-off-by: abizek --- next.config.mjs | 2 + package-lock.json | 144 +++++++++++++++++++++++----------------------- package.json | 6 +- 3 files changed, 77 insertions(+), 75 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 8b00d6d489e72..187e9a111c735 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -116,6 +116,8 @@ const nextConfig = { // Enables Next.js's Instrumentation Hook instrumentationHook: true, }, + // To import ESM-only packages with next dev --turbo. Source: https://github.com/vercel/next.js/issues/63318#issuecomment-2079677098 + transpilePackages: ['shiki'], }; /** @type {import('@sentry/cli').SentryCliOptions} */ diff --git a/package-lock.json b/package-lock.json index 6cd0e34e10c85..3727faae9aa63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ "gray-matter": "~4.0.3", "husky": "9.0.11", "lint-staged": "15.2.5", - "next": "~14.2.3", + "next": "~14.2.4", "next-intl": "~3.14.1", "next-themes": "~0.3.0", "postcss": "~8.4.38", @@ -95,7 +95,7 @@ "stylelint-config-standard": "36.0.0", "stylelint-order": "6.0.4", "stylelint-selector-bem-pattern": "4.0.0", - "turbo": "2.0.1", + "turbo": "2.0.3", "user-agent-data-types": "0.4.2" }, "engines": { @@ -4232,9 +4232,9 @@ } }, "node_modules/@next/env": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.3.tgz", - "integrity": "sha512-W7fd7IbkfmeeY2gXrzJYDx8D2lWKbVoTIj1o1ScPHNzvp30s1AuoEFSdr39bC5sjxJaxTtq3OTCZboNp0lNWHA==" + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.4.tgz", + "integrity": "sha512-3EtkY5VDkuV2+lNmKlbkibIJxcO4oIHEhBWne6PaAp+76J9KoSsGvNikp6ivzAT8dhhBMYrm6op2pS1ApG0Hzg==" }, "node_modules/@next/eslint-plugin-next": { "version": "14.2.3", @@ -4286,9 +4286,9 @@ } }, "node_modules/@next/swc-darwin-arm64": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.3.tgz", - "integrity": "sha512-3pEYo/RaGqPP0YzwnlmPN2puaF2WMLM3apt5jLW2fFdXD9+pqcoTzRk+iZsf8ta7+quAe4Q6Ms0nR0SFGFdS1A==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.4.tgz", + "integrity": "sha512-AH3mO4JlFUqsYcwFUHb1wAKlebHU/Hv2u2kb1pAuRanDZ7pD/A/KPD98RHZmwsJpdHQwfEc/06mgpSzwrJYnNg==", "cpu": [ "arm64" ], @@ -4301,9 +4301,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.3.tgz", - "integrity": "sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.4.tgz", + "integrity": "sha512-QVadW73sWIO6E2VroyUjuAxhWLZWEpiFqHdZdoQ/AMpN9YWGuHV8t2rChr0ahy+irKX5mlDU7OY68k3n4tAZTg==", "cpu": [ "x64" ], @@ -4316,9 +4316,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.3.tgz", - "integrity": "sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.4.tgz", + "integrity": "sha512-KT6GUrb3oyCfcfJ+WliXuJnD6pCpZiosx2X3k66HLR+DMoilRb76LpWPGb4tZprawTtcnyrv75ElD6VncVamUQ==", "cpu": [ "arm64" ], @@ -4331,9 +4331,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.3.tgz", - "integrity": "sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.4.tgz", + "integrity": "sha512-Alv8/XGSs/ytwQcbCHwze1HmiIkIVhDHYLjczSVrf0Wi2MvKn/blt7+S6FJitj3yTlMwMxII1gIJ9WepI4aZ/A==", "cpu": [ "arm64" ], @@ -4346,9 +4346,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.3.tgz", - "integrity": "sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.4.tgz", + "integrity": "sha512-ze0ShQDBPCqxLImzw4sCdfnB3lRmN3qGMB2GWDRlq5Wqy4G36pxtNOo2usu/Nm9+V2Rh/QQnrRc2l94kYFXO6Q==", "cpu": [ "x64" ], @@ -4361,9 +4361,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.3.tgz", - "integrity": "sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.4.tgz", + "integrity": "sha512-8dwC0UJoc6fC7PX70csdaznVMNr16hQrTDAMPvLPloazlcaWfdPogq+UpZX6Drqb1OBlwowz8iG7WR0Tzk/diQ==", "cpu": [ "x64" ], @@ -4376,9 +4376,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz", - "integrity": "sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.4.tgz", + "integrity": "sha512-jxyg67NbEWkDyvM+O8UDbPAyYRZqGLQDTPwvrBBeOSyVWW/jFQkQKQ70JDqDSYg1ZDdl+E3nkbFbq8xM8E9x8A==", "cpu": [ "arm64" ], @@ -4391,9 +4391,9 @@ } }, "node_modules/@next/swc-win32-ia32-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.3.tgz", - "integrity": "sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.4.tgz", + "integrity": "sha512-twrmN753hjXRdcrZmZttb/m5xaCBFa48Dt3FbeEItpJArxriYDunWxJn+QFXdJ3hPkm4u7CKxncVvnmgQMY1ag==", "cpu": [ "ia32" ], @@ -4406,9 +4406,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.3.tgz", - "integrity": "sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.4.tgz", + "integrity": "sha512-tkLrjBzqFTP8DVrAAQmZelEahfR9OxWpFR++vAI9FBhCiIxtwHwBHC23SBHCTURBtwB4kc/x44imVOnkKGNVGg==", "cpu": [ "x64" ], @@ -21554,11 +21554,11 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, "node_modules/next": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/next/-/next-14.2.3.tgz", - "integrity": "sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==", + "version": "14.2.4", + "resolved": "https://registry.npmjs.org/next/-/next-14.2.4.tgz", + "integrity": "sha512-R8/V7vugY+822rsQGQCjoLhMuC9oFj9SOi4Cl4b2wjDrseD0LRZ10W7R6Czo4w9ZznVSshKjuIomsRjvm9EKJQ==", "dependencies": { - "@next/env": "14.2.3", + "@next/env": "14.2.4", "@swc/helpers": "0.5.5", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001579", @@ -21573,15 +21573,15 @@ "node": ">=18.17.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "14.2.3", - "@next/swc-darwin-x64": "14.2.3", - "@next/swc-linux-arm64-gnu": "14.2.3", - "@next/swc-linux-arm64-musl": "14.2.3", - "@next/swc-linux-x64-gnu": "14.2.3", - "@next/swc-linux-x64-musl": "14.2.3", - "@next/swc-win32-arm64-msvc": "14.2.3", - "@next/swc-win32-ia32-msvc": "14.2.3", - "@next/swc-win32-x64-msvc": "14.2.3" + "@next/swc-darwin-arm64": "14.2.4", + "@next/swc-darwin-x64": "14.2.4", + "@next/swc-linux-arm64-gnu": "14.2.4", + "@next/swc-linux-arm64-musl": "14.2.4", + "@next/swc-linux-x64-gnu": "14.2.4", + "@next/swc-linux-x64-musl": "14.2.4", + "@next/swc-win32-arm64-msvc": "14.2.4", + "@next/swc-win32-ia32-msvc": "14.2.4", + "@next/swc-win32-x64-msvc": "14.2.4" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", @@ -28459,26 +28459,26 @@ "dev": true }, "node_modules/turbo": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/turbo/-/turbo-2.0.1.tgz", - "integrity": "sha512-sJhxfBaN14pYj//xxAG6zAyStkE2j4HI9JVXVMob35SGob6dz/HuSqV/4QlVqw0uKAkwc1lXIsnykbe8RLmOOw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/turbo/-/turbo-2.0.3.tgz", + "integrity": "sha512-jF1K0tTUyryEWmgqk1V0ALbSz3VdeZ8FXUo6B64WsPksCMCE48N5jUezGOH2MN0+epdaRMH8/WcPU0QQaVfeLA==", "dev": true, "bin": { "turbo": "bin/turbo" }, "optionalDependencies": { - "turbo-darwin-64": "2.0.1", - "turbo-darwin-arm64": "2.0.1", - "turbo-linux-64": "2.0.1", - "turbo-linux-arm64": "2.0.1", - "turbo-windows-64": "2.0.1", - "turbo-windows-arm64": "2.0.1" + "turbo-darwin-64": "2.0.3", + "turbo-darwin-arm64": "2.0.3", + "turbo-linux-64": "2.0.3", + "turbo-linux-arm64": "2.0.3", + "turbo-windows-64": "2.0.3", + "turbo-windows-arm64": "2.0.3" } }, "node_modules/turbo-darwin-64": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-2.0.1.tgz", - "integrity": "sha512-GO391pUmI6c6l/EpUIaXNzwbVDWRvYahm5oLB176dAWRYKYO+Osqs/XBdOM0G3l7ZFdR6nUtRJc8qinJp7qDUQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-2.0.3.tgz", + "integrity": "sha512-v7ztJ8sxdHw3SLfO2MhGFeeU4LQhFii1hIGs9uBiXns/0YTGOvxLeifnfGqhfSrAIIhrCoByXO7nR9wlm10n3Q==", "cpu": [ "x64" ], @@ -28489,9 +28489,9 @@ ] }, "node_modules/turbo-darwin-arm64": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-2.0.1.tgz", - "integrity": "sha512-rmjJoxeq7nmH/F2aWKapahrDE2zE2Uc15rvs4Rz6qHOzSqC8R5uyLpQyTKIPIZ95O/z9nKfLfVPyiRENuk5vpw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-2.0.3.tgz", + "integrity": "sha512-LUcqvkV9Bxtng6QHbevp8IK8zzwbIxM6HMjCE7FEW6yJBN1KwvTtRtsGBwwmTxaaLO0wD1Jgl3vgkXAmQ4fqUw==", "cpu": [ "arm64" ], @@ -28502,9 +28502,9 @@ ] }, "node_modules/turbo-linux-64": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-2.0.1.tgz", - "integrity": "sha512-vwTOc4v4jm6tM+9WlsiDlN+zwHP8A2wlsAYiNqz2u0DZL55aCWaVdivh2VpVLN36Mr9HgREGH0Fw+jx6ObcNRg==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-2.0.3.tgz", + "integrity": "sha512-xpdY1suXoEbsQsu0kPep2zrB8ijv/S5aKKrntGuQ62hCiwDFoDcA/Z7FZ8IHQ2u+dpJARa7yfiByHmizFE0r5Q==", "cpu": [ "x64" ], @@ -28515,9 +28515,9 @@ ] }, "node_modules/turbo-linux-arm64": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-2.0.1.tgz", - "integrity": "sha512-DkVt76fjwY940DfmqznWhpYIlKYduvKAoTtylkERrDlcWUpDYWwqNbcf9PRRIbnjnv9lIxvuom1KZmMY+cw/Ig==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-2.0.3.tgz", + "integrity": "sha512-MBACTcSR874L1FtLL7gkgbI4yYJWBUCqeBN/iE29D+8EFe0d3fAyviFlbQP4K/HaDYet1i26xkkOiWr0z7/V9A==", "cpu": [ "arm64" ], @@ -28528,9 +28528,9 @@ ] }, "node_modules/turbo-windows-64": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-2.0.1.tgz", - "integrity": "sha512-XskV34kYuXVIHbRbgH8jr35Y8uA6kJOQ0LJStU4jFk7piiyk0a4n2GNDymMtvIwAxYdbuTe+pKuPCThFdirHBQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-2.0.3.tgz", + "integrity": "sha512-zi3YuKPkM9JxMTshZo3excPk37hUrj5WfnCqh4FjI26ux6j/LJK+Dh3SebMHd9mR7wP9CMam4GhmLCT+gDfM+w==", "cpu": [ "x64" ], @@ -28541,9 +28541,9 @@ ] }, "node_modules/turbo-windows-arm64": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-2.0.1.tgz", - "integrity": "sha512-R2/RmKr2uQxkOCtXK5LNxdD3Iv7lUm56iy2FrDwTDgPI7X7K6WRjrxdirmFIu/fABYE5n6EampU3ejbG5mmGtg==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-2.0.3.tgz", + "integrity": "sha512-wmed4kkenLvRbidi7gISB4PU77ujBuZfgVGDZ4DXTFslE/kYpINulwzkVwJIvNXsJtHqyOq0n6jL8Zwl3BrwDg==", "cpu": [ "arm64" ], diff --git a/package.json b/package.json index f29f78f53ebd4..a50e3411f43b8 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "packageManager": "npm@10.7.0", "scripts": { "scripts:release-post": "cross-env NODE_NO_WARNINGS=1 node scripts/release-post/index.mjs", - "dev": "cross-env NODE_NO_WARNINGS=1 next dev", + "dev": "cross-env NODE_NO_WARNINGS=1 next dev --turbo", "serve": "npm run dev", "build": "cross-env NODE_NO_WARNINGS=1 next build", "start": "cross-env NODE_NO_WARNINGS=1 next start", @@ -72,7 +72,7 @@ "gray-matter": "~4.0.3", "husky": "9.0.11", "lint-staged": "15.2.5", - "next": "~14.2.3", + "next": "~14.2.4", "next-intl": "~3.14.1", "next-themes": "~0.3.0", "postcss": "~8.4.38", @@ -128,7 +128,7 @@ "stylelint-config-standard": "36.0.0", "stylelint-order": "6.0.4", "stylelint-selector-bem-pattern": "4.0.0", - "turbo": "2.0.1", + "turbo": "2.0.3", "user-agent-data-types": "0.4.2" } } From ed02b56aa7d65d69daf20247b4a45acaa378852e Mon Sep 17 00:00:00 2001 From: mAmineChniti Date: Fri, 14 Jun 2024 14:38:05 +0100 Subject: [PATCH 02/14] Enhancement: added navItem hover (#6775) * added navItem hover * navItem hover color green-400 * navItem nav.label hover color green-400 * move up the hover logic up by one from nav.label to nav hover .label * prevent text color change when active * changed hover color to text-green-700 * reverted to the original propoal * fixed css formatting mistake --- components/Containers/NavBar/NavItem/index.module.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/Containers/NavBar/NavItem/index.module.css b/components/Containers/NavBar/NavItem/index.module.css index a47c9e9fac9a5..f8c6f6d5a60d4 100644 --- a/components/Containers/NavBar/NavItem/index.module.css +++ b/components/Containers/NavBar/NavItem/index.module.css @@ -18,6 +18,11 @@ dark:text-neutral-200; } + &:hover { + @apply bg-neutral-100 + dark:bg-neutral-900; + } + &.nav { .label { @apply text-neutral-900 @@ -45,7 +50,8 @@ } &:hover { - @apply bg-neutral-100 dark:bg-neutral-900; + @apply bg-neutral-100 + dark:bg-neutral-900; } } } From 3202897b894689768e232907e14d33e02e7154da Mon Sep 17 00:00:00 2001 From: Caner Akdas Date: Fri, 14 Jun 2024 17:37:40 +0300 Subject: [PATCH 03/14] CI: Orama cloud sync based on environment (#6824) --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 681348845926f..e86d2915c0d59 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -125,9 +125,15 @@ jobs: NODE_OPTIONS: '--max_old_space_size=4096' - name: Sync Orama Cloud + # We only want to sync the Orama Cloud production indexes on `push` events. + # We also want to sync the Orama Cloud preview (deployment) indexes on `pull_request_target` events. + # We also want to ensure that the sync only happens on the `ubuntu-latest` runner to avoid duplicate syncs + # or Windows-based path issues. env: - ORAMA_INDEX_ID: ${{ secrets.ORAMA_INDEX_ID }} - ORAMA_SECRET_KEY: ${{ secrets.ORAMA_SECRET_KEY }} - if: github.ref == 'refs/heads/main' + ORAMA_INDEX_ID: ${{ github.event_name == 'push' && secrets.ORAMA_PRODUCTION_INDEX_ID || secrets.ORAMA_INDEX_ID }} + ORAMA_SECRET_KEY: ${{ github.event_name == 'push' && secrets.ORAMA_PRODUCTION_SECRET_KEY || secrets.ORAMA_SECRET_KEY }} + if: | + (matrix.os == 'ubuntu-latest') && + ((github.event_name == 'push') || (github.event_name == 'pull_request_target')) run: | npm run sync-orama From a8d7aa0191115a02632bc261895915937a60f0e3 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Fri, 14 Jun 2024 17:42:14 -0500 Subject: [PATCH 04/14] enables french locale (#6837) * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: automated format of translated files Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: automated format of translated files Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: automated format of translated files Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: automated format of translated files Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * adds french locale --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Node.js Crowdin Bot <148437438+nodejs-crowdin@users.noreply.github.com> Co-authored-by: nodejs-crowdin --- i18n/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/config.json b/i18n/config.json index 1e18243ff53ea..885432fe674ee 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -56,7 +56,7 @@ "langDir": "ltr", "dateFormat": "DD.MM.YYYY", "hrefLang": "fr", - "enabled": false, + "enabled": true, "default": false }, { From 9bbb396db42c7c7f6508423ffa30e5b743bcf49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nazar=C3=A9=20da=20Piedade?= <31008635+nazarepiedady@users.noreply.github.com> Date: Sat, 15 Jun 2024 02:10:17 +0100 Subject: [PATCH 05/14] chore: add general portuguese to locale (#6503) chore: add general portuguese locale --- i18n/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i18n/config.json b/i18n/config.json index 885432fe674ee..29e302a352f37 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -119,6 +119,16 @@ "enabled": false, "default": false }, + { + "code": "pt", + "localName": "Português", + "name": "Português", + "langDir": "ltr", + "dateFormat": "MM.DD.YYYY", + "hrefLang": "pt", + "enabled": false, + "default": false + }, { "code": "ro", "localName": "Română", From 7db2c1911f9f38fdc0e00cb56f4ed0732267f8f4 Mon Sep 17 00:00:00 2001 From: Willem Dinkelspiel <60363370+dinkelspiel@users.noreply.github.com> Date: Sat, 15 Jun 2024 06:01:28 +0200 Subject: [PATCH 06/14] chore: Add Swedish locale in i18n config (#6530) chore(i18n): Add Swedish localization --- i18n/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i18n/config.json b/i18n/config.json index 29e302a352f37..40c1fcd8a5c6c 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -198,5 +198,15 @@ "hrefLang": "pl", "enabled": false, "default": false + }, + { + "code": "sv", + "localName": "Svenska", + "name": "Swedish", + "langDir": "ltr", + "dateFormat": "YYYY-MM-DD", + "hrefLang": "sv", + "enabled": false, + "default": false } ] From 390639093821f161f75e1154fe3d447594cdac8a Mon Sep 17 00:00:00 2001 From: Zolboobayar Date: Sat, 15 Jun 2024 19:57:33 +0800 Subject: [PATCH 07/14] chore(i18n): add Mongolian locale in config (#6541) * chore(i18n): add Mongolian locale in config * chore: clean up whitespace Signed-off-by: Brian Muenzenmeyer --------- Signed-off-by: Brian Muenzenmeyer Co-authored-by: Brian Muenzenmeyer --- i18n/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i18n/config.json b/i18n/config.json index 40c1fcd8a5c6c..cd7dbc0a858a8 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -109,6 +109,16 @@ "enabled": false, "default": false }, + { + "code": "mn", + "localName": "Монгол", + "name": "Mongolian", + "langDir": "ltr", + "dateFormat": "YYYY.MM.DD", + "hrefLang": "mn", + "enabled": false, + "default": false + }, { "code": "pt-br", "localName": "Português do Brasil", From 8179e52d8bad5518a84b54ca7d976fce56e7c967 Mon Sep 17 00:00:00 2001 From: Ismoil Shokirov Date: Sat, 15 Jun 2024 17:04:43 +0500 Subject: [PATCH 08/14] chore: add Uzbek lang to locales (#6563) * chore: add Uzbek lang to locales * fix order of lang * fixed date format --- i18n/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i18n/config.json b/i18n/config.json index cd7dbc0a858a8..11290abe2e806 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -179,6 +179,16 @@ "enabled": false, "default": false }, + { + "code": "uz", + "localName": "O'zbek", + "name": "Uzbek", + "langDir": "ltr", + "dateFormat": "DD.MM.YYYY", + "hrefLang": "uz", + "enabled": false, + "default": false + }, { "code": "zh-cn", "localName": "简体中文", From e1bd2e697c1a6f5ea6a7faaf0c9aa62ef9489e98 Mon Sep 17 00:00:00 2001 From: Noman Dhoni <92979541+nomandhoni-cs@users.noreply.github.com> Date: Sat, 15 Jun 2024 06:32:41 -0600 Subject: [PATCH 09/14] chore: Setup i18n for general for Bengali language (#6512) * Setup for Bengali language * Delete i18n/locales/bn.json Signed-off-by: Brian Muenzenmeyer --------- Signed-off-by: Brian Muenzenmeyer Co-authored-by: Brian Muenzenmeyer --- i18n/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i18n/config.json b/i18n/config.json index 11290abe2e806..8ba066aa1da2f 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -9,6 +9,16 @@ "enabled": false, "default": false }, + { + "code": "bn", + "localName": "বাংলা", + "name": "Bengali", + "langDir": "ltr", + "dateFormat": "DD.MM.YYYY", + "hrefLang": "bn", + "enabled": false, + "default": false + }, { "code": "de", "localName": "Deutsch", From e84240e894abc9f0a3e4cb76c9806ad10afc1d18 Mon Sep 17 00:00:00 2001 From: Savvas Mantzouranidis Date: Sat, 15 Jun 2024 13:49:14 +0100 Subject: [PATCH 10/14] added greek language config (#6544) * added greek language config Signed-off-by: Savvas Mantzouranidis * Update i18n/config.json Signed-off-by: Brian Muenzenmeyer * chore: fix whitespace Signed-off-by: Brian Muenzenmeyer --------- Signed-off-by: Savvas Mantzouranidis Signed-off-by: Brian Muenzenmeyer Co-authored-by: Brian Muenzenmeyer --- i18n/config.json | 50 +++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/i18n/config.json b/i18n/config.json index 8ba066aa1da2f..b6c371fc15014 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -29,6 +29,16 @@ "enabled": false, "default": false }, + { + "code": "el", + "localName": "Ελληνικά", + "name": "Greek", + "langDir": "ltr", + "dateFormat": "DD/MM/YYYY", + "hrefLang": "el-GR", + "enabled": false, + "default": false + }, { "code": "en", "localName": "English", @@ -129,6 +139,16 @@ "enabled": false, "default": false }, + { + "code": "pl", + "localName": "Polski", + "name": "Polish", + "langDir": "ltr", + "dateFormat": "DD/MM/YYYY", + "hrefLang": "pl", + "enabled": false, + "default": false + }, { "code": "pt-br", "localName": "Português do Brasil", @@ -169,6 +189,16 @@ "enabled": false, "default": false }, + { + "code": "sv", + "localName": "Svenska", + "name": "Swedish", + "langDir": "ltr", + "dateFormat": "YYYY-MM-DD", + "hrefLang": "sv", + "enabled": false, + "default": false + }, { "code": "tr", "localName": "Türkçe", @@ -218,25 +248,5 @@ "hrefLang": "zh-Hant", "enabled": false, "default": false - }, - { - "code": "pl", - "localName": "Polski", - "name": "Polish", - "langDir": "ltr", - "dateFormat": "DD/MM/YYYY", - "hrefLang": "pl", - "enabled": false, - "default": false - }, - { - "code": "sv", - "localName": "Svenska", - "name": "Swedish", - "langDir": "ltr", - "dateFormat": "YYYY-MM-DD", - "hrefLang": "sv", - "enabled": false, - "default": false } ] From 8de7609dec80cdd5be4941927b17f12dafd8ed4c Mon Sep 17 00:00:00 2001 From: Gabriel Quaresma Date: Sat, 15 Jun 2024 09:58:13 -0300 Subject: [PATCH 11/14] Add Hebrew language config (#6580) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit locale: add hebrew support Signed-off-by: Brian Muenzenmeyer Co-authored-by: João Gabriel Quaresma de Almeida Co-authored-by: Brian Muenzenmeyer --- i18n/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i18n/config.json b/i18n/config.json index b6c371fc15014..521394c8163b2 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -79,6 +79,16 @@ "enabled": true, "default": false }, + { + "code": "he", + "localName": "עִברִית", + "name": "Hebrew", + "langDir": "rtl", + "dateFormat": "DD-MM-YYYY", + "hrefLang": "he", + "enabled": false, + "default": false + }, { "code": "id", "localName": "Bahasa Indonesia", From 158d1dc693ef53228465171ad4fb6d563aa54f15 Mon Sep 17 00:00:00 2001 From: Nizam <109983860+G-nizam-A@users.noreply.github.com> Date: Sat, 15 Jun 2024 18:33:10 +0530 Subject: [PATCH 12/14] Added Hindi language (#6572) Fixes #6508 --- i18n/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i18n/config.json b/i18n/config.json index 521394c8163b2..d3f9d3f95c28a 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -89,6 +89,16 @@ "enabled": false, "default": false }, + { + "code": "hi", + "localName": "हिन्दी", + "name": "Hindi", + "langDir": "ltr", + "dateFormat": "DD/MM/YYYY", + "hrefLang": "hi", + "enabled": false, + "default": false + }, { "code": "id", "localName": "Bahasa Indonesia", From b6c553d6609cd07152c71d7a8b6fb46a5a4e76af Mon Sep 17 00:00:00 2001 From: Mateusz Stolarczyk <92862370+MateuszS0@users.noreply.github.com> Date: Sat, 15 Jun 2024 17:19:28 +0200 Subject: [PATCH 13/14] chore: Translation setup for: Swedish, Finnish, Dutch and Hindi (#6531) * chore: Translation setup for: Swedish, Finnish, Dutch and Hindi * fix whitespace Signed-off-by: Brian Muenzenmeyer --------- Signed-off-by: Mateusz Stolarczyk <92862370+MateuszS0@users.noreply.github.com> Signed-off-by: Brian Muenzenmeyer Co-authored-by: Brian Muenzenmeyer --- i18n/config.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/i18n/config.json b/i18n/config.json index d3f9d3f95c28a..2833b633fd924 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -69,6 +69,16 @@ "enabled": false, "default": false }, + { + "code": "fi", + "localName": "Suomi", + "name": "Finnish", + "langDir": "ltr", + "dateFormat": "DD.MM.YYYY", + "hrefLang": "fi", + "enabled": false, + "default": false + }, { "code": "fr", "localName": "Français", @@ -159,6 +169,16 @@ "enabled": false, "default": false }, + { + "code": "nl", + "localName": "Nederlands", + "name": "Dutch", + "langDir": "ltr", + "dateFormat": "DD-MM-YYYY", + "hrefLang": "nl", + "enabled": false, + "default": false + }, { "code": "pl", "localName": "Polski", From db3be7adc3f5207346709feff02265f331aad886 Mon Sep 17 00:00:00 2001 From: "Node.js Crowdin Bot" <148437438+nodejs-crowdin@users.noreply.github.com> Date: Mon, 17 Jun 2024 13:14:33 +0200 Subject: [PATCH 14/14] [automated]: crowdin sync - enables Portuguese (#6839) * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: synced translations from crowdin [skip ci] * chore: automated format of translated files Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * enables portuguese --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: nodejs-crowdin Co-authored-by: Brian Muenzenmeyer --- i18n/config.json | 2 +- i18n/locales/pt.json | 300 +++++++++++++++++++++++++++++++++++++++++++ pages/uk/index.mdx | 137 ++++++++++++++++++++ 3 files changed, 438 insertions(+), 1 deletion(-) create mode 100644 i18n/locales/pt.json create mode 100644 pages/uk/index.mdx diff --git a/i18n/config.json b/i18n/config.json index 2833b633fd924..05083760063b8 100644 --- a/i18n/config.json +++ b/i18n/config.json @@ -206,7 +206,7 @@ "langDir": "ltr", "dateFormat": "MM.DD.YYYY", "hrefLang": "pt", - "enabled": false, + "enabled": true, "default": false }, { diff --git a/i18n/locales/pt.json b/i18n/locales/pt.json new file mode 100644 index 0000000000000..270dc3d320d60 --- /dev/null +++ b/i18n/locales/pt.json @@ -0,0 +1,300 @@ +{ + "components": { + "containers": { + "footer": { + "links": { + "trademarkPolicy": "Política da Marca Comercial", + "privacyPolicy": "Política de Privacidade", + "codeOfConduct": "Código de Conduta", + "security": "Política de Segurança", + "openJS": "Fundação OpenJS" + } + }, + "navBar": { + "links": { + "about": "Sobre", + "download": "Descarregar", + "docs": "Documentação", + "guides": "Guias", + "learn": "Aprender", + "security": "Segurança", + "certification": "Certificação", + "blog": "Blogue" + } + } + }, + "navigation": { + "learn": { + "gettingStarted": { + "links": { + "gettingStarted": "Começar", + "introductionToNodejs": "Introdução ao Node.js", + "howToInstallNodejs": "Como instalar o Node.js", + "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "Quanto JavaScript precisas de saber para usar o Node.js?", + "differencesBetweenNodejsAndTheBrowser": "Diferenças entre o Node.js e o Navegador", + "theV8JavascriptEngine": "O Motor de JavaScript V8", + "anIntroductionToTheNpmPackageManager": "Introdução ao gestor de pacotes npm", + "ecmascript2015Es6AndBeyond": "ECMAScript 2015 (ES6) e além", + "nodejsTheDifferenceBetweenDevelopmentAndProduction": "Node.js, a diferença entre o desenvolvimento e a produção", + "nodejsWithTypescript": "Node.js com TypeScript", + "nodejsWithWebassembly": "Node.js com WebAssembly", + "debugging": "Depuração da Node.js", + "profiling": "Definição de Perfis de Aplicações de Node.js", + "securityBestPractices": "Boas Práticas de Segurança" + } + }, + "asynchronousWork": { + "links": { + "asynchronousWork": "Trabalho Assíncrono", + "asynchronousFlowControl": "Controlo do Fluxo Assíncrono", + "overviewOfBlockingVsNonBlocking": "Visão Geral de Bloqueante vs Não Bloqueante", + "javascriptAsynchronousProgrammingAndCallbacks": "Programação Assíncrona de JavaScript e Funções de Resposta", + "discoverJavascriptTimers": "Descobrir os Temporizadores da JavaScript", + "eventLoopTimersAndNexttick": "O Ciclo de Evento da Node.js", + "theNodejsEventEmitter": "O Emissor de Evento da Node.js", + "understandingProcessnexttick": "Entendendo o process.nextTick()", + "understandingSetimmediate": "Entendendo o setImmediate()", + "dontBlockTheEventLoop": "Não Bloqueie o Ciclo de Eventos" + } + }, + "manipulatingFiles": { + "links": { + "manipulatingFiles": "Manipulando Ficheiros", + "nodejsFileStats": "Estatísticas de Ficheiro da Node.js", + "nodejsFilePaths": "Caminhos de Ficheiros no Node.js", + "workingWithFileDescriptorsInNodejs": "Trabalhar com os Descritores de Ficheiro na Node.js", + "readingFilesWithNodejs": "Ler Ficheiros com a Node.js", + "writingFilesWithNodejs": "Escrever Ficheiros com a Node.js", + "workingWithFoldersInNodejs": "Trabalhando com pastas no Node.js", + "workingWithDifferentFilesystems": "Como trabalhar com diferentes Sistemas de Ficheiros" + } + }, + "commandLine": { + "links": { + "commandLine": "Linha de Comando", + "runNodejsScriptsFromTheCommandLine": "Execute scripts de Node.js através da linha de comandos", + "howToReadEnvironmentVariablesFromNodejs": "Como Ler Variáveis de Ambiente no Node.js", + "howToUseTheNodejsRepl": "Como Usar o REPL do Node.js", + "outputToTheCommandLineUsingNodejs": "Saída para a linha de comando usando o Node.js", + "acceptInputFromTheCommandLineInNodejs": "Aceitar entrada na linha de comando no Node.js" + } + }, + "modules": { + "links": { + "modules": "Módulos", + "publishingNodeApiModules": "Como publicar um pacote da Node-API", + "anatomyOfAnHttpTransaction": "Anatomia de uma Transação do Protocolo de Hipertexto", + "abiStability": "Estabilidade da Interface Binária da Aplicação", + "backpressuringInStreams": "Contrapressão nas Correntes de Dados" + } + }, + "diagnostics": { + "links": { + "diagnostics": "Diagnósticos", + "userJourney": "Jornada do Utilizador", + "memory": "Memória", + "liveDebugging": "Depuração em Direto", + "poorPerformance": "Desempenho Deficiente", + "flameGraphs": "Gráficos de Chamas" + } + }, + "testRunner": { + "links": { + "testRunner": "Executor de Teste", + "introduction": "Descobrir o executor de teste da Node.js", + "usingTestRunner": "Usar o executor de teste da Node.js" + } + } + }, + "about": { + "links": { + "about": "Sobre a Node.js", + "aboutSide": "Sobre a Node.js®", + "branding": "Marca da Node.js", + "governance": "Gestão do Projeto", + "releases": "Lançamentos da Node.js", + "security": "Relatórios de Segurança" + } + }, + "getInvolved": { + "links": { + "getInvolved": "Participar", + "collabSummit": "Cimeira de Colaboração", + "upcomingEvents": "Próximos Eventos", + "contribute": "Colaborar com a Node.js", + "codeOfConduct": "Código de Conduta" + } + } + }, + "downloadList": { + "links": { + "previousReleases": "Lançamentos da Node.js", + "packageManager": "Instalar a Node.js através do gestor de pacote", + "shaSums": { + "title": "SHASUMS assinados para ficheiros de lançamento", + "howToVerify": " (Como verificar)" + }, + "allDownloads": "Todas as opções de descarga", + "nightlyReleases": "Compilações noturnas", + "unofficialBuilds": "Compilações não oficiais", + "buildingFromSource": "Compilar a Node.js a partir do código fonte nas plataformas suportadas", + "installingOnLinux": "Instalar a Node.js através do arquivo binário", + "installingOnWsl": "Instalar no Subsistema de Windows para Linux (WSL)" + } + }, + "downloadReleasesTable": { + "changelog": "Registo de Alterações", + "releases": "Lançamentos", + "docs": "Documentação" + }, + "pagination": { + "next": "Próxima", + "previous": "Anterior" + }, + "common": { + "breadcrumbs": { + "navigateToHome": "Navegar para a Página Inicial" + }, + "crossLink": { + "previous": "Anterior", + "next": "Próximo" + }, + "codebox": { + "copy": "Copiar para a área de transferência", + "copied": "Copiado para a área de transferência!" + }, + "pagination": { + "prev": "Anterior", + "prevAriaLabel": "Página anterior", + "next": "Próximo", + "nextAriaLabel": "Próxima página", + "defaultLabel": "Paginação", + "pageLabel": "Ir para a página {pageNumber}" + }, + "sidebar": { + "title": "Mudar de página" + }, + "languageDropdown": { + "label": "Selecionar o idioma" + }, + "themeToggle": { + "label": "Alternar Modo Escuro" + } + }, + "mdx": { + "upcomingEvents": { + "defaultTitle": "Nenhum Evento Próximo" + } + }, + "metabar": { + "lastUpdated": "Última Atualização", + "readingTime": "Duração da Leitura", + "addedIn": "Adicionado Em", + "author": "Autor(a)", + "authors": "Autores", + "contribute": "Colaborar", + "contributeText": "Editar esta página", + "viewAs": "Ver como", + "tableOfContents": "Índice" + }, + "downloads": { + "changelogModal": { + "startContributing": "Começar a Colaborar" + } + }, + "search": { + "searchBox": { + "placeholder": "Começar a digitar..." + }, + "seeAll": { + "text": "Ver todos os {count} resultados" + }, + "searchError": { + "text": "Ocorreu um erro durante a pesquisa. Por favor, tente novamente mais tarde." + }, + "poweredBy": { + "text": "Com o apoio de" + }, + "noResults": { + "text": "Não foram encontrados resultados para \"{query}\"." + }, + "emptyState": { + "text": "Procure algo..." + }, + "searchPage": { + "title": "Estás a pesquisar: {query}" + } + }, + "blog": { + "blogHeader": { + "subtitle": "As últimas notícias, estudos de caso, tutoriais e recursos da Node.js.", + "rssLink": "RSS feed" + } + } + }, + "layouts": { + "blogPost": { + "author": { + "byLine": "{author, select, null {} other {Por {author}, }}" + } + }, + "blogIndex": { + "categoryName": "{category, select, all {Blog} other {Publicações do Blogue {category}}}" + }, + "blog": { + "title": "Blogue", + "selectCategory": "Categorias", + "categories": { + "all": "Tudo", + "announcements": "Anúncios", + "release": "Lançamentos", + "vulnerability": "Vulnerabilidades", + "advisory-board": "Conselho Consultivo", + "community": "Comunidade", + "feature": "Funcionalidade", + "module": "Módulo", + "npm": "npm", + "uncategorized": "Sem categoria", + "video": "Vídeo", + "weekly": "Atualizações Semanais", + "wg": "Grupos de Trabalho", + "events": "Eventos" + } + }, + "error": { + "notFound": { + "title": "Não foi possível encontrar a página", + "description": "Lamentamos, mas não conseguimos encontrar a página que procuravas! Tente começar de novo a partir da página inicial." + }, + "internalServerError": { + "title": "Erro Interno do Servidor", + "description": "Esta página registou um erro irrecuperável." + }, + "backToHome": "Voltar à Página Inicial" + }, + "download": { + "selectCategory": "Categorias", + "categories": { + "prebuilt-installer": "Instalador do Pré-compilado", + "prebuilt-binaries": "Binários Pré-compilados", + "package-manager": "Gestor de Pacote", + "source-code": "Código Fonte" + }, + "buttons": { + "prebuilt": "Descarregue o Node.js {version}", + "source": "Descarregue o código fonte do Node.js {version}" + }, + "dropdown": { + "bitness": "Quantidade dos Bits", + "os": "Sistema Operativo", + "version": "Versão", + "platform": "Plataforma" + }, + "codeBox": { + "systemManagerWarning": "não é um gestor de pacote da Node.js. Devemos certificar-nos de que já temos {packageManager} instalado.", + "communityWarning": "Os gestores de pacotes e os seus programas de instalação não são mantidos pelo projeto Node.js.", + "communityWarningReport": "Se encontrarmos problemas, devemos dirigir-nos aos responsáveis do gestor de pacote." + } + } + } +} diff --git a/pages/uk/index.mdx b/pages/uk/index.mdx new file mode 100644 index 0000000000000..54ed7fa6bfc26 --- /dev/null +++ b/pages/uk/index.mdx @@ -0,0 +1,137 @@ +--- +title: Запускайте JavaScript будь-де +layout: home +--- + +
+ + +
+

Запускайте JavaScript будь-де

+ +Node.js® — це безплатне, кросплатформне середовище виконання JavaScript із відкритим кодом, яке дозволяє розробникам створювати сервери, вебзастосунки, інструменти командного рядка та скрипти. + +
+ +
+ + {({ release }) => ( + <> + Завантажити Node.js (LTS) + + Завантажує Node.js {release.versionWithPrefix} + 1 із довгостроковою підтримкою. + Також, Node.js можна встановити за допомогоюменеджерів пакетів. + + + )} + + + + {({ release }) => ( + + Хочете отримати нові функції швидше? + Завантажте Node.js {release.versionWithPrefix} + 1. + + )} + +
+
+ +
+
+ ```js displayName="Create an HTTP Server" + // server.mjs + import { createServer } from 'node:http'; + +const server = createServer((req, res) => { +res.writeHead(200, { 'Content-Type': 'text/plain' }); +res.end('Hello World!\n'); +}); + +// starts a simple http server locally on port 3000 +server.listen(3000, '127.0.0.1', () => { +console.log('Listening on 127.0.0.1:3000'); +}); + +// run with `node server.mjs` + +```` + +```js displayName="Write Tests" +// tests.mjs +import assert from 'node:assert'; +import test from 'node:test'; + +test('that 1 is equal 1', () => { + assert.strictEqual(1, 1); +}); + +test('that throws as 1 is not equal 2', () => { + // throws an exception because 1 != 2 + assert.strictEqual(1, 2); +}); + +// run with `node tests.mjs` +```` + +```js displayName="Read and Hash a File" +// crypto.mjs +import { createHash } from 'node:crypto'; +import { readFile } from 'node:fs/promises'; + +const hasher = createHash('sha1'); + +hasher.setEncoding('hex'); +// ensure you have a `package.json` file for this test! +hasher.write(await readFile('package.json')); +hasher.end(); + +const fileHash = hasher.read(); + +// run with `node crypto.mjs` +``` + +```js displayName="Streams Pipeline" +// streams.mjs +import { pipeline } from 'node:stream/promises'; +import { createReadStream, createWriteStream } from 'node:fs'; +import { createGzip } from 'node:zlib'; + +// ensure you have a `package.json` file for this test! +await pipeline( + createReadStream('package.json'), + createGzip(), + createWriteStream('package.json.gz') +); + +// run with `node streams.mjs` +``` + +```js displayName="Work with Threads" +// threads.mjs +import { + Worker, + isMainThread, + workerData, + parentPort, +} from 'node:worker_threads'; + +if (isMainThread) { + const data = 'some data'; + const worker = new Worker(import.meta.filename, { workerData: data }); + worker.on('message', msg => console.log('Reply from Thread:', msg)); +} else { + const source = workerData; + parentPort.postMessage(btoa(source.toUpperCase())); +} + +// run with `node threads.mjs` +``` + +
+ +Дізнайтеся більше про можливості Node.js [із нашими навчальними матеріалами](/learn). + +