Updating block name translation

This commit is contained in:
Antoine M 2023-11-24 10:05:43 +01:00
parent c40eb5d044
commit 63ac1dd382
4 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'abacad7c685ec920b653');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '036ee79fd5df1d4d3d84');

View File

@ -178,7 +178,7 @@ function Edit({
return c_value;
}
const currentLang = getAdminLanguageFromCookie("wp-wpml_current_language");
const localBlockName = currentLang === "fr" ? "Vocabulaire" : "Vocabulairen";
const localBlockName = currentLang === "fr" ? "Vocabulaire" : "Woordenschat";
(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
if (currentPost.content && currentBlocks) {
const newTooltipWords = buildTooltipWords();

File diff suppressed because one or more lines are too long

View File

@ -149,7 +149,7 @@ export default function Edit({ attributes, setAttributes }) {
return c_value;
}
const currentLang = getAdminLanguageFromCookie("wp-wpml_current_language");
const localBlockName = currentLang === "fr" ? "Vocabulaire" : "Vocabulairen";
const localBlockName = currentLang === "fr" ? "Vocabulaire" : "Woordenschat";
useEffect(() => {
if (currentPost.content && currentBlocks) {
const newTooltipWords = buildTooltipWords();