🐛(i18n) fix export translations

Last upgrade of js-yaml has a compatibility issue
with i18next-parser library, which causes the
export / import translations to fail.
This commit is contained in:
Anthony LC
2026-08-24 14:05:51 +02:00
parent 75d332f111
commit bfada16063
3 changed files with 33 additions and 9 deletions
@@ -45,7 +45,7 @@ export const useOnboardingSteps = () => {
content: (
<video
src={t('src_img_onboarding_step_1', {
desc: 'URL of onboarding step 1 preview image',
description: 'URL of onboarding step 1 preview image',
defaultValue: '/assets/on-boarding/step_1_EN.webm',
})}
aria-label={t('Compose your doc easily')}
@@ -76,7 +76,7 @@ export const useOnboardingSteps = () => {
content: (
<video
src={t('src_img_onboarding_step_2', {
desc: 'URL of onboarding step 2 preview image',
description: 'URL of onboarding step 2 preview image',
defaultValue: '/assets/on-boarding/step_2_EN.webm',
})}
aria-label={t('Format your content with the toolbar')}
@@ -107,7 +107,7 @@ export const useOnboardingSteps = () => {
content: (
<Image
src={t('src_img_onboarding_step_3', {
desc: 'URL of onboarding step 3 preview image',
description: 'URL of onboarding step 3 preview image',
defaultValue: '/assets/on-boarding/step_3_EN.webp',
})}
alt={t('Share and collaborate with ease')}
@@ -149,7 +149,7 @@ export const useOnboardingSteps = () => {
content: (
<Image
src={t('src_img_onboarding_step_4', {
desc: 'URL of onboarding step 4 preview image',
description: 'URL of onboarding step 4 preview image',
defaultValue: '/assets/on-boarding/step_4_EN.webp',
})}
alt={t('Draw inspiration from the content library')}
-1
View File
@@ -39,7 +39,6 @@
"@types/react-dom": "19.2.3",
"dompurify": "3.4.13",
"eslint": "10.8.0",
"js-yaml": "5.2.2",
"postcss": "8.5.25",
"react": "19.2.8",
"react-dom": "19.2.8",
+29 -4
View File
@@ -7431,6 +7431,13 @@ arg@^4.1.0:
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
argparse@^1.0.7:
version "1.0.10"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==
dependencies:
sprintf-js "~1.0.2"
argparse@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
@@ -9411,6 +9418,11 @@ espree@^11.2.0:
acorn-jsx "^5.3.2"
eslint-visitor-keys "^5.0.1"
esprima@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
esquery@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.7.0.tgz#08d048f261f0ddedb5bae95f46809463d9c9496d"
@@ -11411,10 +11423,18 @@ jest@30.4.2:
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
js-yaml@5.2.2, js-yaml@^3.13.1, js-yaml@^4.1.0:
version "5.2.2"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-5.2.2.tgz#497bfe63f0b0db11c7bbc5ce8bc568e836c8b08c"
integrity sha512-dayzUzKkJ1MkuUtZglSebU43utNXH0OWQByK9rKOOuYIO8M5TV1y+n8ALMdG0rdzBnfNkOmZEqrURepb0ejqBw==
js-yaml@^3.13.1:
version "3.15.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.15.1.tgz#24bc95028f361cdaaa84745b06a109c4486773c0"
integrity sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag==
dependencies:
argparse "^1.0.7"
esprima "^4.0.0"
js-yaml@^4.1.0:
version "4.3.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.3.1.tgz#01216c001d67f48e2cd560d708c7af21090a3848"
integrity sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==
dependencies:
argparse "^2.0.1"
@@ -14317,6 +14337,11 @@ sprintf-js@^1.1.1:
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.3.tgz#4914b903a2f8b685d17fdf78a70e917e872e444a"
integrity sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==
sprintf-js@~1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==
stable-hash-x@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/stable-hash-x/-/stable-hash-x-0.2.0.tgz#dfd76bfa5d839a7470125c6a6b3c8b22061793e9"