From 6f4780075cd9a0b6ae55543d0fd476afa2f8229d Mon Sep 17 00:00:00 2001 From: Alexis Sanehisa Date: Fri, 20 Feb 2026 16:31:05 -0500 Subject: [PATCH 1/2] squash --- .../i18next-cli.components.config.ts | 2 +- .../locales/components/cs/visual-editor.json | 51 ++- .../locales/components/da/visual-editor.json | 51 ++- .../locales/components/de/visual-editor.json | 51 ++- .../components/en-GB/visual-editor.json | 51 ++- .../locales/components/en/visual-editor.json | 51 ++- .../locales/components/es/visual-editor.json | 51 ++- .../locales/components/et/visual-editor.json | 51 ++- .../locales/components/fi/visual-editor.json | 51 ++- .../locales/components/fr/visual-editor.json | 51 ++- .../locales/components/hr/visual-editor.json | 51 ++- .../locales/components/hu/visual-editor.json | 51 ++- .../locales/components/it/visual-editor.json | 51 ++- .../locales/components/ja/visual-editor.json | 51 ++- .../locales/components/lt/visual-editor.json | 51 ++- .../locales/components/lv/visual-editor.json | 51 ++- .../locales/components/nb/visual-editor.json | 51 ++- .../locales/components/nl/visual-editor.json | 51 ++- .../locales/components/pl/visual-editor.json | 51 ++- .../locales/components/pt/visual-editor.json | 51 ++- .../locales/components/ro/visual-editor.json | 51 ++- .../locales/components/sk/visual-editor.json | 51 ++- .../locales/components/sv/visual-editor.json | 51 ++- .../locales/components/tr/visual-editor.json | 51 ++- .../components/zh-TW/visual-editor.json | 51 ++- .../locales/components/zh/visual-editor.json | 51 ++- .../locales/platform/cs/visual-editor.json | 2 - .../locales/platform/da/visual-editor.json | 2 - .../locales/platform/de/visual-editor.json | 2 - .../locales/platform/en-GB/visual-editor.json | 2 - .../locales/platform/en/visual-editor.json | 2 - .../locales/platform/es/visual-editor.json | 2 - .../locales/platform/et/visual-editor.json | 2 - .../locales/platform/fi/visual-editor.json | 2 - .../locales/platform/fr/visual-editor.json | 2 - .../locales/platform/hr/visual-editor.json | 2 - .../locales/platform/hu/visual-editor.json | 2 - .../locales/platform/it/visual-editor.json | 2 - .../locales/platform/ja/visual-editor.json | 2 - .../locales/platform/lt/visual-editor.json | 2 - .../locales/platform/lv/visual-editor.json | 2 - .../locales/platform/nb/visual-editor.json | 2 - .../locales/platform/nl/visual-editor.json | 2 - .../locales/platform/pl/visual-editor.json | 2 - .../locales/platform/pt/visual-editor.json | 2 - .../locales/platform/ro/visual-editor.json | 2 - .../locales/platform/sk/visual-editor.json | 2 - .../locales/platform/sv/visual-editor.json | 2 - .../locales/platform/tr/visual-editor.json | 2 - .../locales/platform/zh-TW/visual-editor.json | 2 - .../locales/platform/zh/visual-editor.json | 2 - packages/visual-editor/package.json | 3 +- .../scripts/generateTranslations.ts | 140 +++++-- .../visual-editor/src/components/Locator.tsx | 40 +- .../src/components/contentBlocks/BodyText.tsx | 6 +- .../components/contentBlocks/CtaWrapper.tsx | 11 +- .../components/contentBlocks/HeadingText.tsx | 6 +- .../src/components/contentBlocks/Phone.tsx | 6 +- .../src/components/contentBlocks/Text.tsx | 6 +- .../components/contentBlocks/image/Image.tsx | 4 +- .../src/components/directory/Directory.tsx | 19 +- .../footer/CopyrightMessageSlot.tsx | 5 +- .../src/components/footer/ExpandedFooter.tsx | 28 +- .../footer/FooterExpandedLinkSectionSlot.tsx | 6 +- .../footer/FooterExpandedLinksWrapper.tsx | 3 +- .../src/components/footer/FooterLogoSlot.tsx | 3 +- .../components/footer/SecondaryFooterSlot.tsx | 6 +- .../src/components/header/HeaderLinks.tsx | 3 +- .../components/header/PrimaryHeaderSlot.tsx | 19 +- .../AboutSection/AboutSection.tsx | 40 +- .../AboutSectionDetailsColumn.tsx | 8 +- .../src/components/pageSections/Banner.tsx | 10 +- .../components/pageSections/Breadcrumbs.tsx | 9 +- .../pageSections/CoreInfoSection.tsx | 30 +- .../pageSections/EventSection/EventCard.tsx | 23 +- .../EventSection/EventSection.tsx | 9 +- .../pageSections/FAQsSection/FAQCard.tsx | 14 +- .../pageSections/FAQsSection/FAQsSection.tsx | 9 +- .../components/pageSections/HeroSection.tsx | 47 ++- .../InsightSection/InsightCard.tsx | 21 +- .../InsightSection/InsightSection.tsx | 9 +- .../NearbyLocations/NearbyLocations.tsx | 9 +- .../PhotoGallerySection.tsx | 9 +- .../ProductSection/ProductCard.tsx | 26 +- .../ProductSection/ProductSection.tsx | 9 +- .../pageSections/ProfessionalHeroSection.tsx | 76 ++-- .../PromoSection/PromoSection.tsx | 25 +- .../pageSections/TeamSection/TeamCard.tsx | 14 +- .../pageSections/TeamSection/TeamSection.tsx | 9 +- .../TestimonialSection/TestimonialCard.tsx | 14 +- .../TestimonialSection/TestimonialSection.tsx | 9 +- .../components/pageSections/VideoSection.tsx | 5 +- .../[desktop] default props with data.png | Bin 194328 -> 194373 bytes .../[desktop] default props with no data.png | Bin 185618 -> 185682 bytes .../[mobile] default props with data.png | Bin 155481 -> 155476 bytes .../[mobile] default props with no data.png | Bin 146101 -> 146102 bytes .../[tablet] default props with data.png | Bin 63679 -> 63643 bytes .../[tablet] default props with no data.png | Bin 57726 -> 57712 bytes packages/visual-editor/src/editor/Editor.tsx | 9 +- .../EnhancedCallToAction.tsx | 20 +- .../src/utils/defaultContent.test.ts | 78 ++++ .../visual-editor/src/utils/defaultContent.ts | 102 +++++ .../utils/defaultLayoutTranslations.test.ts | 194 ++++++++++ .../src/utils/defaultLayoutTranslations.ts | 348 ++++++++++++++++++ .../utils/i18n/componentDefaultRegistry.ts | 90 +++++ .../src/utils/i18n/getTranslations.ts | 10 +- .../i18n/resolveTranslationLocale.test.ts | 23 ++ .../utils/i18n/resolveTranslationLocale.ts | 27 ++ packages/visual-editor/src/utils/index.ts | 2 + .../src/utils/resolveComponentData.test.tsx | 16 +- .../src/vite-plugin/defaultLayoutData.ts | 274 +++++--------- .../src/vite-plugin/templates/directory.tsx | 25 +- .../src/vite-plugin/templates/locator.tsx | 25 +- .../src/vite-plugin/templates/main.tsx | 25 +- 114 files changed, 2645 insertions(+), 698 deletions(-) create mode 100644 packages/visual-editor/src/utils/defaultContent.test.ts create mode 100644 packages/visual-editor/src/utils/defaultContent.ts create mode 100644 packages/visual-editor/src/utils/defaultLayoutTranslations.test.ts create mode 100644 packages/visual-editor/src/utils/defaultLayoutTranslations.ts create mode 100644 packages/visual-editor/src/utils/i18n/componentDefaultRegistry.ts create mode 100644 packages/visual-editor/src/utils/i18n/resolveTranslationLocale.test.ts create mode 100644 packages/visual-editor/src/utils/i18n/resolveTranslationLocale.ts diff --git a/packages/visual-editor/i18next-cli.components.config.ts b/packages/visual-editor/i18next-cli.components.config.ts index 2b7ac756e7..d901388c91 100644 --- a/packages/visual-editor/i18next-cli.components.config.ts +++ b/packages/visual-editor/i18next-cli.components.config.ts @@ -17,7 +17,7 @@ export default defineConfig({ pluralSeparator: "_", interpolationPrefix: "{{", interpolationSuffix: "}}", - functions: ["t", "*.t", "i18next.t"], + functions: ["t", "*.t", "i18next.t", "defaultText", "defaultRichText"], primaryLanguage: "en", defaultValue: "", sort: true, diff --git a/packages/visual-editor/locales/components/cs/visual-editor.json b/packages/visual-editor/locales/components/cs/visual-editor.json index a95ddd4953..1f1d7eca49 100644 --- a/packages/visual-editor/locales/components/cs/visual-editor.json +++ b/packages/visual-editor/locales/components/cs/visual-editor.json @@ -17,6 +17,55 @@ "closed": "ZAVŘENO", "closesAtTime": "Zavírá v {{time}}", "closesAtTimeWeek": "Zavírá v {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "O [[name]]", + "articleName": "Název článku", + "associateAgent": "Přidružený agent", + "bannerText": "Text banneru", + "businessName": "Obchodní název", + "button": "Tlačítko", + "callToAction": "Výzva k akci", + "category": "Kategorie", + "contactMe": "Kontaktujte mě", + "credentials": "Pověření", + "directoryRoot": "Kořen adresáře", + "eventImage": "Obrázek události", + "eventTitle": "Název události", + "featuredProducts": "Vybrané produkty", + "featuredPromotion": "Doporučená propagace", + "featuredTestimonials": "Doporučené posudky", + "findALocation": "Najděte místo", + "firstLast": "První Poslední", + "followUs": "Sledujte nás", + "footerLabel": "Štítek zápatí", + "footerLink": "Odkaz v zápatí", + "frequentlyAskedQuestions": "Často kladené otázky", + "gallery": "Galerie", + "geomodifier": "Geomodifikátor", + "getDirections": "Získejte trasu", + "header": "Záhlaví", + "headerLink": "Odkaz na záhlaví", + "hours": "hodiny", + "information": "Informace", + "insights": "Postřehy", + "learnMore": "Další informace", + "logo": "Logo", + "meetOurTeam": "Seznamte se s naším týmem", + "name": "Jméno", + "nearbyLocations": "Místa v okolí", + "phone": "Telefon", + "price": "123,00 $", + "productName": "Název produktu", + "professionalName": "Profesní jméno", + "professionalTitle": "Profesionální titul", + "readMore": "Přečtěte si více", + "services": "Služby", + "servicesOffered": "Nabízené služby", + "subtitle": "Titulky", + "text": "Text", + "upcomingEvents": "Nadcházející události", + "visitProfile": "Navštivte Profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Obslužný obrázek {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Sekce hlavních informací", "customSearchArea": "Vlastní vyhledávací oblast", "distance": "Vzdálenost", - "enableCookies": "Povolit soubory cookie", "expandedMenu": "Rozšířené menu", "filter": "Filtr", "findALocation": "Najděte polohu", @@ -57,7 +105,6 @@ "locationsWithinDistanceOf_other": "{{count}} míst ve vzdálenosti {{distance}} {{unit}} od „{{name}}“", "logo": "Logo", "map": "Mapa", - "mapRequiresOptIn": "Tuto mapu lze zobrazit pouze v případě, že jsou povoleny soubory cookie", "mile_few": "míle", "mile_many": "mil", "mile_one": "míle", diff --git a/packages/visual-editor/locales/components/da/visual-editor.json b/packages/visual-editor/locales/components/da/visual-editor.json index 0f67eb1c75..185a8051e0 100644 --- a/packages/visual-editor/locales/components/da/visual-editor.json +++ b/packages/visual-editor/locales/components/da/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Lukket", "closesAtTime": "Lukker kl. {{time}}", "closesAtTimeWeek": "Lukker kl. {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Om [[name]]", + "articleName": "Artikelnavn", + "associateAgent": "Associeret agent", + "bannerText": "Bannertekst", + "businessName": "Virksomhedens navn", + "button": "Knap", + "callToAction": "Opfordring til handling", + "category": "Kategori", + "contactMe": "Kontakt mig", + "credentials": "Akkreditiver", + "directoryRoot": "Directory Root", + "eventImage": "Begivenhedsbillede", + "eventTitle": "Begivenhedens titel", + "featuredProducts": "Udvalgte produkter", + "featuredPromotion": "Fremhævet kampagne", + "featuredTestimonials": "Udvalgte testimonials", + "findALocation": "Find en placering", + "firstLast": "Første Sidste", + "followUs": "Følg os", + "footerLabel": "Footer label", + "footerLink": "Sidefodslink", + "frequentlyAskedQuestions": "Ofte stillede spørgsmål", + "gallery": "Galleri", + "geomodifier": "Geomodifikator", + "getDirections": "Få rutevejledning", + "header": "Overskrift", + "headerLink": "Overskriftslink", + "hours": "Timer", + "information": "Information", + "insights": "Indsigt", + "learnMore": "Lær mere", + "logo": "Logo", + "meetOurTeam": "Mød vores team", + "name": "Navn", + "nearbyLocations": "Steder i nærheden", + "phone": "Telefon", + "price": "123,00 USD", + "productName": "Produktnavn", + "professionalName": "Professionelt navn", + "professionalTitle": "Professionel titel", + "readMore": "Læs mere", + "services": "Tjenester", + "servicesOffered": "Udbudte tjenester", + "subtitle": "Undertekst", + "text": "Tekst", + "upcomingEvents": "Kommende begivenheder", + "visitProfile": "Besøg profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Hjælpebillede {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Kerneinfo -sektion", "customSearchArea": "Brugerdefineret søgeområde", "distance": "Afstand", - "enableCookies": "Aktiver cookies", "expandedMenu": "Udvidet menu", "filter": "Filter", "findALocation": "Find en placering", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} steder inden for {{distance}} {{unit}} fra \"{{name}}\"", "logo": "Logo", "map": "Kort", - "mapRequiresOptIn": "Dette kort kan kun vises, hvis cookies er aktiveret", "mile_one": "mil", "mile_other": "mil", "monday": "mandag", diff --git a/packages/visual-editor/locales/components/de/visual-editor.json b/packages/visual-editor/locales/components/de/visual-editor.json index 2c78ba6595..27479c82ac 100644 --- a/packages/visual-editor/locales/components/de/visual-editor.json +++ b/packages/visual-editor/locales/components/de/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Geschlossen", "closesAtTime": "Schließt um {{time}} Uhr", "closesAtTimeWeek": "Schließt um {{time}} Uhr am {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Über [[name]]", + "articleName": "Artikelname", + "associateAgent": "Assoziierter Agent", + "bannerText": "Bannertext", + "businessName": "Firmenname", + "button": "Taste", + "callToAction": "Aufruf zum Handeln", + "category": "Kategorie", + "contactMe": "Kontaktieren Sie mich", + "credentials": "Anmeldeinformationen", + "directoryRoot": "Verzeichnisstamm", + "eventImage": "Ereignisbild", + "eventTitle": "Veranstaltungstitel", + "featuredProducts": "Ausgewählte Produkte", + "featuredPromotion": "Empfohlene Werbeaktion", + "featuredTestimonials": "Ausgewählte Erfahrungsberichte", + "findALocation": "Finden Sie einen Standort", + "firstLast": "Erster Letzter", + "followUs": "Folgen Sie uns", + "footerLabel": "Fußzeilenbeschriftung", + "footerLink": "Fußzeilen-Link", + "frequentlyAskedQuestions": "Häufig gestellte Fragen", + "gallery": "Galerie", + "geomodifier": "Geomodifikator", + "getDirections": "Wegbeschreibung abrufen", + "header": "Kopfzeile", + "headerLink": "Header-Link", + "hours": "Std", + "information": "Information", + "insights": "Einblicke", + "learnMore": "Erfahren Sie mehr", + "logo": "Logo", + "meetOurTeam": "Lernen Sie unser Team kennen", + "name": "Name", + "nearbyLocations": "Standorte in der Nähe", + "phone": "Telefon", + "price": "123,00 $", + "productName": "Produktname", + "professionalName": "Berufsname", + "professionalTitle": "Berufsbezeichnung", + "readMore": "Mehr lesen", + "services": "Dienstleistungen", + "servicesOffered": "Angebotene Dienstleistungen", + "subtitle": "Untertitel", + "text": "Text", + "upcomingEvents": "Kommende Veranstaltungen", + "visitProfile": "Besuchen Sie Profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Utility-Bilder {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Basisinfo-Modul", "customSearchArea": "Benutzerdefinierter Suchbereich", "distance": "Distanz", - "enableCookies": "Cookies aktivieren", "expandedMenu": "Erweitertes Menü", "filter": "Filter", "findALocation": "Finde einen Standort", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} Standorte im Umkreis von {{distance}} {{unit}} von „{{name}}“", "logo": "Logo", "map": "Karte", - "mapRequiresOptIn": "Diese Karte kann nur angezeigt werden, wenn Cookies aktiviert sind", "mile_one": "Meile", "mile_other": "Meilen", "monday": "Montag", diff --git a/packages/visual-editor/locales/components/en-GB/visual-editor.json b/packages/visual-editor/locales/components/en-GB/visual-editor.json index 59a46bf167..4cf8705265 100644 --- a/packages/visual-editor/locales/components/en-GB/visual-editor.json +++ b/packages/visual-editor/locales/components/en-GB/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Closed", "closesAtTime": "Closes at {{time}}", "closesAtTimeWeek": "Closes at {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "About [[name]]", + "articleName": "Article Name", + "associateAgent": "Associate Agent", + "bannerText": "Banner Text", + "businessName": "Business Name", + "button": "Button", + "callToAction": "Call to Action", + "category": "Category", + "contactMe": "Contact Me", + "credentials": "Credentials", + "directoryRoot": "Directory Root", + "eventImage": "Event Image", + "eventTitle": "Event Title", + "featuredProducts": "Featured Products", + "featuredPromotion": "Featured Promotion", + "featuredTestimonials": "Featured Testimonials", + "findALocation": "Find a Location", + "firstLast": "First Last", + "followUs": "Follow Us", + "footerLabel": "Footer Label", + "footerLink": "Footer Link", + "frequentlyAskedQuestions": "Frequently Asked Questions", + "gallery": "Gallery", + "geomodifier": "Geomodifier", + "getDirections": "Get Directions", + "header": "Header", + "headerLink": "Header Link", + "hours": "Hours", + "information": "Information", + "insights": "Insights", + "learnMore": "Learn More", + "logo": "Logo", + "meetOurTeam": "Meet Our Team", + "name": "Name", + "nearbyLocations": "Nearby Locations", + "phone": "Phone", + "price": "$123.00", + "productName": "Product Name", + "professionalName": "Professional Name", + "professionalTitle": "Professional Title", + "readMore": "Read More", + "services": "Services", + "servicesOffered": "Services Offered", + "subtitle": "Subtitle", + "text": "Text", + "upcomingEvents": "Upcoming Events", + "visitProfile": "Visit Profile" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Utility Image {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Core Info Section", "customSearchArea": "Custom Search Area", "distance": "Distance", - "enableCookies": "Enable Cookies", "expandedMenu": "Expanded menu", "filter": "Filter", "findALocation": "Find a Location", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} locations within {{distance}} {{unit}} of \"{{name}}\"", "logo": "Logo", "map": "Map", - "mapRequiresOptIn": "This map can only be displayed if cookies are enabled", "mile_one": "mile", "mile_other": "miles", "monday": "Monday", diff --git a/packages/visual-editor/locales/components/en/visual-editor.json b/packages/visual-editor/locales/components/en/visual-editor.json index a721714c4f..37f84b9d79 100644 --- a/packages/visual-editor/locales/components/en/visual-editor.json +++ b/packages/visual-editor/locales/components/en/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Closed", "closesAtTime": "Closes at {{time}}", "closesAtTimeWeek": "Closes at {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "About [[name]]", + "articleName": "Article Name", + "associateAgent": "Associate Agent", + "bannerText": "Banner Text", + "businessName": "Business Name", + "button": "Button", + "callToAction": "Call to Action", + "category": "Category", + "contactMe": "Contact Me", + "credentials": "Credentials", + "directoryRoot": "Directory Root", + "eventImage": "Event Image", + "eventTitle": "Event Title", + "featuredProducts": "Featured Products", + "featuredPromotion": "Featured Promotion", + "featuredTestimonials": "Featured Testimonials", + "findALocation": "Find a Location", + "firstLast": "First Last", + "followUs": "Follow Us", + "footerLabel": "Footer Label", + "footerLink": "Footer Link", + "frequentlyAskedQuestions": "Frequently Asked Questions", + "gallery": "Gallery", + "geomodifier": "Geomodifier", + "getDirections": "Get Directions", + "header": "Header", + "headerLink": "Header Link", + "hours": "Hours", + "information": "Information", + "insights": "Insights", + "learnMore": "Learn More", + "logo": "Logo", + "meetOurTeam": "Meet Our Team", + "name": "Name", + "nearbyLocations": "Nearby Locations", + "phone": "Phone", + "price": "$123.00", + "productName": "Product Name", + "professionalName": "Professional Name", + "professionalTitle": "Professional Title", + "readMore": "Read More", + "services": "Services", + "servicesOffered": "Services Offered", + "subtitle": "Subtitle", + "text": "Text", + "upcomingEvents": "Upcoming Events", + "visitProfile": "Visit Profile" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Utility Image {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Core Info Section", "customSearchArea": "Custom Search Area", "distance": "Distance", - "enableCookies": "Enable Cookies", "expandedMenu": "Expanded menu", "filter": "Filter", "findALocation": "Find a Location", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} locations within {{distance}} {{unit}} of \"{{name}}\"", "logo": "Logo", "map": "Map", - "mapRequiresOptIn": "This map can only be displayed if cookies are enabled", "mile_one": "mile", "mile_other": "miles", "monday": "Monday", diff --git a/packages/visual-editor/locales/components/es/visual-editor.json b/packages/visual-editor/locales/components/es/visual-editor.json index 813582ff10..8755bdfec8 100644 --- a/packages/visual-editor/locales/components/es/visual-editor.json +++ b/packages/visual-editor/locales/components/es/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Cerrado", "closesAtTime": "Cierra a las {{time}}", "closesAtTimeWeek": "Cierra a las {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Acerca de [[name]]", + "articleName": "Nombre del artículo", + "associateAgent": "Agente asociado", + "bannerText": "Texto del cartel", + "businessName": "Nombre comercial", + "button": "Botón", + "callToAction": "Llamado a la acción", + "category": "Categoría", + "contactMe": "Contáctame", + "credentials": "Cartas credenciales", + "directoryRoot": "Raíz del directorio", + "eventImage": "Imagen del evento", + "eventTitle": "Título del evento", + "featuredProducts": "Productos destacados", + "featuredPromotion": "Promoción destacada", + "featuredTestimonials": "Testimonios destacados", + "findALocation": "encontrar una ubicación", + "firstLast": "Primero último", + "followUs": "Síganos", + "footerLabel": "Etiqueta de pie de página", + "footerLink": "Enlace de pie de página", + "frequentlyAskedQuestions": "Preguntas frecuentes", + "gallery": "Galería", + "geomodifier": "Geomodificador", + "getDirections": "Obtener direcciones", + "header": "Encabezamiento", + "headerLink": "Enlace de encabezado", + "hours": "Horas", + "information": "Información", + "insights": "Perspectivas", + "learnMore": "Más información", + "logo": "Logo", + "meetOurTeam": "Conozca a nuestro equipo", + "name": "Nombre", + "nearbyLocations": "Ubicaciones cercanas", + "phone": "Teléfono", + "price": "$123.00", + "productName": "Nombre del producto", + "professionalName": "Nombre profesional", + "professionalTitle": "Título profesional", + "readMore": "Leer más", + "services": "Servicios", + "servicesOffered": "Servicios ofrecidos", + "subtitle": "Subtitular", + "text": "Texto", + "upcomingEvents": "Próximos eventos", + "visitProfile": "Visitar perfil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Imagen de utilidad {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Sección de información central", "customSearchArea": "Área de búsqueda personalizada", "distance": "Distancia", - "enableCookies": "Habilitar cookies", "expandedMenu": "Menú ampliado", "filter": "Filtrar", "findALocation": "Encuentra una ubicación", @@ -53,7 +101,6 @@ "locationsWithinDistanceOf_other": "{{count}} ubicaciones dentro de {{distance}} {{unit}} de \"{{name}}\"", "logo": "Logo", "map": "Mapa", - "mapRequiresOptIn": "Este mapa sólo se puede mostrar si las cookies están habilitadas", "mile_many": "millas", "mile_one": "milla", "mile_other": "millas", diff --git a/packages/visual-editor/locales/components/et/visual-editor.json b/packages/visual-editor/locales/components/et/visual-editor.json index 5e41d305a8..084feacef5 100644 --- a/packages/visual-editor/locales/components/et/visual-editor.json +++ b/packages/visual-editor/locales/components/et/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Suletud", "closesAtTime": "Suletakse {{time}}", "closesAtTimeWeek": "Suletakse kell {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Umbes [[name]]", + "articleName": "Artikli nimi", + "associateAgent": "Abiagent", + "bannerText": "Bänneri tekst", + "businessName": "Ettevõtte nimi", + "button": "Nupp", + "callToAction": "Üleskutse tegevusele", + "category": "Kategooria", + "contactMe": "Võtke minuga ühendust", + "credentials": "Mandaat", + "directoryRoot": "Kataloogi juur", + "eventImage": "Sündmuse pilt", + "eventTitle": "Sündmuse pealkiri", + "featuredProducts": "Esiletõstetud tooted", + "featuredPromotion": "Esiletõstetud reklaam", + "featuredTestimonials": "Esiletõstetud iseloomustused", + "findALocation": "Leidke asukoht", + "firstLast": "Esimene Viimane", + "followUs": "Jälgi meid", + "footerLabel": "Jaluse silt", + "footerLink": "Jaluse link", + "frequentlyAskedQuestions": "Korduma kippuvad küsimused", + "gallery": "Galerii", + "geomodifier": "Geomodifier", + "getDirections": "Hankige juhised", + "header": "Päis", + "headerLink": "Päise link", + "hours": "Tundi", + "information": "Teave", + "insights": "Insightsi", + "learnMore": "Lisateave", + "logo": "Logo", + "meetOurTeam": "Tutvuge meie meeskonnaga", + "name": "Nimi", + "nearbyLocations": "Lähedal asuvad asukohad", + "phone": "Telefon", + "price": "123,00 dollarit", + "productName": "Toote nimi", + "professionalName": "Professionaalne nimi", + "professionalTitle": "Ametinimetus", + "readMore": "Loe edasi", + "services": "Teenused", + "servicesOffered": "Pakutavad teenused", + "subtitle": "Alapealkiri", + "text": "Tekst", + "upcomingEvents": "Eelseisvad sündmused", + "visitProfile": "Külastage profiili" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Kasulik pilt {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Põhiteabe jaotis", "customSearchArea": "Kohandatud otsinguala", "distance": "Kaugus", - "enableCookies": "Luba küpsised", "expandedMenu": "Laiendatud menüü", "filter": "Filter", "findALocation": "Leidke asukoht", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} asukohta asukohast \"{{name}}\" {{distance}} {{unit}} raadiuses", "logo": "Logo", "map": "Kaart", - "mapRequiresOptIn": "Seda kaarti saab kuvada ainult siis, kui küpsised on lubatud", "mile_one": "miil", "mile_other": "miili", "monday": "Esmaspäev", diff --git a/packages/visual-editor/locales/components/fi/visual-editor.json b/packages/visual-editor/locales/components/fi/visual-editor.json index 66bc8bd6ab..8dc748cd43 100644 --- a/packages/visual-editor/locales/components/fi/visual-editor.json +++ b/packages/visual-editor/locales/components/fi/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Suljettu", "closesAtTime": "Suljetaan {{time}}", "closesAtTimeWeek": "Suljetaan klo {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Tietoja paikasta [[name]]", + "articleName": "Artikkelin nimi", + "associateAgent": "Apulaisagentti", + "bannerText": "Bannerin teksti", + "businessName": "Yrityksen nimi", + "button": "Painike", + "callToAction": "Toimintakehotus", + "category": "Luokka", + "contactMe": "Ota minuun yhteyttä", + "credentials": "Valtuustiedot", + "directoryRoot": "Hakemiston juuri", + "eventImage": "Tapahtuman kuva", + "eventTitle": "Tapahtuman otsikko", + "featuredProducts": "Suositellut tuotteet", + "featuredPromotion": "Suositeltu kampanja", + "featuredTestimonials": "Suositellut suosittelut", + "findALocation": "Etsi sijainti", + "firstLast": "Ensimmäinen Viimeinen", + "followUs": "Seuraa meitä", + "footerLabel": "Alatunnisteen etiketti", + "footerLink": "Alatunnisteen linkki", + "frequentlyAskedQuestions": "Usein kysytyt kysymykset", + "gallery": "Galleria", + "geomodifier": "Geomodifier", + "getDirections": "Hanki reittiohjeet", + "header": "Otsikko", + "headerLink": "Otsikkolinkki", + "hours": "Tuntia", + "information": "Tiedot", + "insights": "Näkemyksiä", + "learnMore": "Lisätietoja", + "logo": "Logo", + "meetOurTeam": "Tutustu tiimiimme", + "name": "Nimi", + "nearbyLocations": "Läheiset paikat", + "phone": "Puhelin", + "price": "123,00 dollaria", + "productName": "Tuotteen nimi", + "professionalName": "Ammattilainen nimi", + "professionalTitle": "Ammattinimike", + "readMore": "Lue lisää", + "services": "Palvelut", + "servicesOffered": "Tarjotut palvelut", + "subtitle": "Tekstitys", + "text": "Teksti", + "upcomingEvents": "Tulevat tapahtumat", + "visitProfile": "Vieraile profiilissa" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Hyötykuva {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Ydintiedot -osio", "customSearchArea": "Mukautettu hakualue", "distance": "Etäisyys", - "enableCookies": "Ota evästeet käyttöön", "expandedMenu": "Laajennettu valikko", "filter": "Suodata", "findALocation": "Etsi sijainti", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} sijaintia {{distance}} {{unit}} säteellä kohteesta \"{{name}}\"", "logo": "Logo", "map": "Kartta", - "mapRequiresOptIn": "Tämä kartta voidaan näyttää vain, jos evästeet ovat käytössä", "mile_one": "maili", "mile_other": "mailia", "monday": "maanantai", diff --git a/packages/visual-editor/locales/components/fr/visual-editor.json b/packages/visual-editor/locales/components/fr/visual-editor.json index 7317188588..55def8fa9e 100644 --- a/packages/visual-editor/locales/components/fr/visual-editor.json +++ b/packages/visual-editor/locales/components/fr/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Fermé", "closesAtTime": "Ferme à {{time}}", "closesAtTimeWeek": "Ferme à {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "À propos de [[name]]", + "articleName": "Nom de l'article", + "associateAgent": "Agent associé", + "bannerText": "Texte de la bannière", + "businessName": "Nom de l'entreprise", + "button": "Bouton", + "callToAction": "Appel à l'action", + "category": "Catégorie", + "contactMe": "Contactez-moi", + "credentials": "Informations d'identification", + "directoryRoot": "Racine du répertoire", + "eventImage": "Image de l'événement", + "eventTitle": "Titre de l'événement", + "featuredProducts": "Produits en vedette", + "featuredPromotion": "Promotion en vedette", + "featuredTestimonials": "Témoignages en vedette", + "findALocation": "Trouver un emplacement", + "firstLast": "Premier Dernier", + "followUs": "Suivez-nous", + "footerLabel": "Étiquette de pied de page", + "footerLink": "Lien de pied de page", + "frequentlyAskedQuestions": "Foire aux questions", + "gallery": "Galerie", + "geomodifier": "Géomodificateur", + "getDirections": "Obtenir un itinéraire", + "header": "En-tête", + "headerLink": "Lien d'en-tête", + "hours": "Heures", + "information": "Information", + "insights": "Connaissances", + "learnMore": "Apprendre encore plus", + "logo": "Logo", + "meetOurTeam": "Rencontrez notre équipe", + "name": "Nom", + "nearbyLocations": "Emplacements à proximité", + "phone": "Téléphone", + "price": "123,00 $", + "productName": "Nom du produit", + "professionalName": "Nom professionnel", + "professionalTitle": "Titre professionnel", + "readMore": "En savoir plus", + "services": "Services", + "servicesOffered": "Services offerts", + "subtitle": "Sous-titre", + "text": "Texte", + "upcomingEvents": "Événements à venir", + "visitProfile": "Visiter le profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Image utilitaire {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Section d'informations de base", "customSearchArea": "Zone de recherche personnalisée", "distance": "Distance", - "enableCookies": "Activer les cookies", "expandedMenu": "Menu développé", "filter": "Filtre", "findALocation": "Trouver un emplacement", @@ -53,7 +101,6 @@ "locationsWithinDistanceOf_other": "{{count}} emplacements dans un rayon de {{distance}} {{unit}} de \"{{name}}\"", "logo": "Logo", "map": "Carte", - "mapRequiresOptIn": "Cette carte ne peut être affichée que si les cookies sont activés", "mile_many": "miles", "mile_one": "mile", "mile_other": "miles", diff --git a/packages/visual-editor/locales/components/hr/visual-editor.json b/packages/visual-editor/locales/components/hr/visual-editor.json index a6b10e8013..ecaf912f40 100644 --- a/packages/visual-editor/locales/components/hr/visual-editor.json +++ b/packages/visual-editor/locales/components/hr/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Zatvoreno", "closesAtTime": "Zatvara se u {{time}}", "closesAtTimeWeek": "Zatvara se u {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "O [[name]]", + "articleName": "Naziv artikla", + "associateAgent": "Pridruženi agent", + "bannerText": "Tekst natpisa", + "businessName": "Naziv tvrtke", + "button": "Gumb", + "callToAction": "Poziv na akciju", + "category": "Kategorija", + "contactMe": "Kontaktirajte me", + "credentials": "vjerodajnice", + "directoryRoot": "Korijen imenika", + "eventImage": "Slika događaja", + "eventTitle": "Naslov događaja", + "featuredProducts": "Istaknuti proizvodi", + "featuredPromotion": "Istaknuta promocija", + "featuredTestimonials": "Istaknuta svjedočanstva", + "findALocation": "Pronađite mjesto", + "firstLast": "Prvi Zadnji", + "followUs": "Pratite nas", + "footerLabel": "Oznaka podnožja", + "footerLink": "Veza podnožja", + "frequentlyAskedQuestions": "Često postavljana pitanja", + "gallery": "Galerija", + "geomodifier": "Geomodifier", + "getDirections": "Preuzmite upute", + "header": "Zaglavlje", + "headerLink": "Veza zaglavlja", + "hours": "sati", + "information": "Informacija", + "insights": "Uvidi", + "learnMore": "Saznajte više", + "logo": "Logo", + "meetOurTeam": "Upoznajte naš tim", + "name": "Ime", + "nearbyLocations": "Lokacije u blizini", + "phone": "Telefon", + "price": "123,00 dolara", + "productName": "Naziv proizvoda", + "professionalName": "Profesionalni naziv", + "professionalTitle": "Stručno zvanje", + "readMore": "Pročitajte više", + "services": "Usluge", + "servicesOffered": "Ponuđene usluge", + "subtitle": "Titl", + "text": "Tekst", + "upcomingEvents": "Nadolazeći događaji", + "visitProfile": "Posjetite profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Uslužna slika {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Odjeljak jezgrenih informacija", "customSearchArea": "Područje prilagođenog pretraživanja", "distance": "Udaljenost", - "enableCookies": "Omogući kolačiće", "expandedMenu": "Prošireni izbornik", "filter": "Filter", "findALocation": "Pronađite lokaciju", @@ -53,7 +101,6 @@ "locationsWithinDistanceOf_other": "{{count}} lokacija unutar {{distance}} {{unit}} od \"{{name}}\"", "logo": "Logo", "map": "Karta", - "mapRequiresOptIn": "Ova se karta može prikazati samo ako su omogućeni kolačići", "mile_few": "milje", "mile_one": "milja", "mile_other": "milja", diff --git a/packages/visual-editor/locales/components/hu/visual-editor.json b/packages/visual-editor/locales/components/hu/visual-editor.json index 205c317d93..2f44a2e7b1 100644 --- a/packages/visual-editor/locales/components/hu/visual-editor.json +++ b/packages/visual-editor/locales/components/hu/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Zárt", "closesAtTime": "Zárás: {{time}}", "closesAtTimeWeek": "Zárás: {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Körülbelül [[name]]", + "articleName": "Cikk neve", + "associateAgent": "társult ügynök", + "bannerText": "Banner szöveg", + "businessName": "Vállalkozás neve", + "button": "Gomb", + "callToAction": "Felhívás cselekvésre", + "category": "Kategória", + "contactMe": "Lépjen kapcsolatba velem", + "credentials": "Hitelesítő adatok", + "directoryRoot": "Címtárgyökér", + "eventImage": "Esemény képe", + "eventTitle": "Esemény címe", + "featuredProducts": "Kiemelt termékek", + "featuredPromotion": "Kiemelt promóció", + "featuredTestimonials": "Kiemelt ajánlások", + "findALocation": "Hely keresése", + "firstLast": "Első Utolsó", + "followUs": "Kövess minket", + "footerLabel": "Lábléc címke", + "footerLink": "Lábléc hivatkozás", + "frequentlyAskedQuestions": "Gyakran Ismételt Kérdések", + "gallery": "Galéria", + "geomodifier": "Geomodifikátor", + "getDirections": "Útvonalterv", + "header": "Fejléc", + "headerLink": "Fejléc hivatkozás", + "hours": "Órák", + "information": "Információ", + "insights": "Betekintés", + "learnMore": "További információ", + "logo": "Logó", + "meetOurTeam": "Ismerje meg csapatunkat", + "name": "Név", + "nearbyLocations": "Közeli helyek", + "phone": "Telefon", + "price": "123,00 USD", + "productName": "Termék neve", + "professionalName": "Szakmai név", + "professionalTitle": "Szakmai cím", + "readMore": "Olvasson tovább", + "services": "Szolgáltatások", + "servicesOffered": "Ajánlott szolgáltatások", + "subtitle": "Felirat", + "text": "Szöveg", + "upcomingEvents": "Közelgő események", + "visitProfile": "Látogassa meg a Profilt" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Segédkép {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Alapvető információ szakasz", "customSearchArea": "Egyedi keresési terület", "distance": "Távolság", - "enableCookies": "Cookie-k engedélyezése", "expandedMenu": "Kibővített menü", "filter": "Szűrő", "findALocation": "Keressen egy helyet", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} hely {{distance}} {{unit}}-on belül a következőtől: \"{{name}}\"", "logo": "Logó", "map": "Térkép", - "mapRequiresOptIn": "Ez a térkép csak akkor jeleníthető meg, ha a cookie-k engedélyezve vannak", "mile_one": "mérföld", "mile_other": "mérföld", "monday": "hétfő", diff --git a/packages/visual-editor/locales/components/it/visual-editor.json b/packages/visual-editor/locales/components/it/visual-editor.json index 9483df31ae..2f73b7298b 100644 --- a/packages/visual-editor/locales/components/it/visual-editor.json +++ b/packages/visual-editor/locales/components/it/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Chiuso", "closesAtTime": "Chiude alle {{time}}", "closesAtTimeWeek": "Chiude alle {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Informazioni su [[name]]", + "articleName": "Nome dell'articolo", + "associateAgent": "Agente associato", + "bannerText": "Testo della bandiera", + "businessName": "Nome dell'azienda", + "button": "Pulsante", + "callToAction": "Invito all'azione", + "category": "Categoria", + "contactMe": "Contattami", + "credentials": "Credenziali", + "directoryRoot": "Radice della directory", + "eventImage": "Immagine dell'evento", + "eventTitle": "Titolo dell'evento", + "featuredProducts": "Prodotti in evidenza", + "featuredPromotion": "Promozione in primo piano", + "featuredTestimonials": "Testimonianze in primo piano", + "findALocation": "Trova una posizione", + "firstLast": "Primo Ultimo", + "followUs": "Seguici", + "footerLabel": "Etichetta piè di pagina", + "footerLink": "Collegamento a piè di pagina", + "frequentlyAskedQuestions": "Domande frequenti", + "gallery": "Galleria", + "geomodifier": "Geomodificatore", + "getDirections": "Ottieni indicazioni stradali", + "header": "Intestazione", + "headerLink": "Collegamento dell'intestazione", + "hours": "Ore", + "information": "Informazioni", + "insights": "Approfondimenti", + "learnMore": "Saperne di più", + "logo": "Logo", + "meetOurTeam": "Incontra il nostro team", + "name": "Nome", + "nearbyLocations": "Località vicine", + "phone": "Telefono", + "price": "$ 123,00", + "productName": "Nome del prodotto", + "professionalName": "Nome professionale", + "professionalTitle": "Titolo professionale", + "readMore": "Per saperne di più", + "services": "Servizi", + "servicesOffered": "Servizi offerti", + "subtitle": "Sottotitolo", + "text": "Testo", + "upcomingEvents": "Prossimi eventi", + "visitProfile": "Visita il profilo" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Immagine utilità {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Sezione Informazioni fondamentali", "customSearchArea": "Area di ricerca personalizzata", "distance": "Distanza", - "enableCookies": "Abilita i cookie", "expandedMenu": "Menù ampliato", "filter": "Filtro", "findALocation": "Trova una posizione", @@ -53,7 +101,6 @@ "locationsWithinDistanceOf_other": "{{count}} località entro {{distance}} {{unit}} di \"{{name}}\"", "logo": "Logo", "map": "Mappa", - "mapRequiresOptIn": "Questa mappa può essere visualizzata solo se i cookie sono abilitati", "mile_many": "miglia", "mile_one": "miglio", "mile_other": "miglia", diff --git a/packages/visual-editor/locales/components/ja/visual-editor.json b/packages/visual-editor/locales/components/ja/visual-editor.json index e6e36244e7..f492c871be 100644 --- a/packages/visual-editor/locales/components/ja/visual-editor.json +++ b/packages/visual-editor/locales/components/ja/visual-editor.json @@ -17,6 +17,55 @@ "closed": "閉店", "closesAtTime": "{{time}}に閉まります", "closesAtTimeWeek": "{{time}} {{dayOfWeek}} に閉店", + "componentDefaults": { + "aboutName": "[[name]] について", + "articleName": "記事名", + "associateAgent": "アソシエイトエージェント", + "bannerText": "バナーテキスト", + "businessName": "商号", + "button": "ボタン", + "callToAction": "行動喚起", + "category": "カテゴリ", + "contactMe": "連絡してください", + "credentials": "資格", + "directoryRoot": "ディレクトリルート", + "eventImage": "イベント画像", + "eventTitle": "イベントタイトル", + "featuredProducts": "注目の製品", + "featuredPromotion": "注目のプロモーション", + "featuredTestimonials": "注目のお客様の声", + "findALocation": "場所を探す", + "firstLast": "姓名", + "followUs": "フォローしてください", + "footerLabel": "フッターラベル", + "footerLink": "フッターリンク", + "frequentlyAskedQuestions": "よくある質問", + "gallery": "ギャラリー", + "geomodifier": "ジオモディファイアー", + "getDirections": "道順を調べる", + "header": "ヘッダ", + "headerLink": "ヘッダーリンク", + "hours": "営業時間", + "information": "情報", + "insights": "洞察", + "learnMore": "もっと詳しく知る", + "logo": "ロゴ", + "meetOurTeam": "私たちのチームのご紹介", + "name": "名前", + "nearbyLocations": "近くの場所", + "phone": "電話", + "price": "$123.00", + "productName": "製品名", + "professionalName": "専門職名", + "professionalTitle": "専門職の称号", + "readMore": "続きを読む", + "services": "サービス", + "servicesOffered": "提供されるサービス", + "subtitle": "字幕", + "text": "文章", + "upcomingEvents": "今後のイベント", + "visitProfile": "プロフィールにアクセス" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "ユーティリティ イメージ {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "コア情報セクション", "customSearchArea": "カスタム検索領域", "distance": "距離", - "enableCookies": "Cookieを有効にする", "expandedMenu": "拡張メニュー", "filter": "フィルター", "findALocation": "場所を見つけます", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "「{{name}}」から {{distance}} {{unit}} 以内にある {{count}} 件の場所", "logo": "ロゴ", "map": "地図", - "mapRequiresOptIn": "この地図は Cookie が有効になっている場合にのみ表示できます", "mile_one": "マイル", "mile_other": "マイル", "monday": "月曜日", diff --git a/packages/visual-editor/locales/components/lt/visual-editor.json b/packages/visual-editor/locales/components/lt/visual-editor.json index 87934731ee..8c91d5c437 100644 --- a/packages/visual-editor/locales/components/lt/visual-editor.json +++ b/packages/visual-editor/locales/components/lt/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Uždarytas", "closesAtTime": "Uždaroma {{time}}", "closesAtTimeWeek": "Uždaroma {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Apie [[name]]", + "articleName": "Straipsnio pavadinimas", + "associateAgent": "Asocijuotasis agentas", + "bannerText": "Reklaminio skydelio tekstas", + "businessName": "Įmonės pavadinimas", + "button": "Mygtukas", + "callToAction": "Raginimas veikti", + "category": "Kategorija", + "contactMe": "Susisiekite su manimi", + "credentials": "Įgaliojimai", + "directoryRoot": "Katalogo šaknis", + "eventImage": "Įvykio vaizdas", + "eventTitle": "Renginio pavadinimas", + "featuredProducts": "Teminiai produktai", + "featuredPromotion": "Teminė reklama", + "featuredTestimonials": "Teminiai atsiliepimai", + "findALocation": "Raskite vietą", + "firstLast": "Pirmas Paskutinis", + "followUs": "Sekite mus", + "footerLabel": "Poraštės etiketė", + "footerLink": "Poraštės nuoroda", + "frequentlyAskedQuestions": "Dažnai užduodami klausimai", + "gallery": "Galerija", + "geomodifier": "Geomodifikatorius", + "getDirections": "Gaukite nuorodas", + "header": "Antraštė", + "headerLink": "Antraštės nuoroda", + "hours": "Valandos", + "information": "Informacija", + "insights": "Įžvalgos", + "learnMore": "Sužinokite daugiau", + "logo": "Logotipas", + "meetOurTeam": "Susipažinkite su mūsų komanda", + "name": "Vardas", + "nearbyLocations": "Netoliese esančios vietos", + "phone": "Telefonas", + "price": "123,00 USD", + "productName": "Produkto pavadinimas", + "professionalName": "Profesionalus vardas", + "professionalTitle": "Profesinis titulas", + "readMore": "Skaityti Daugiau", + "services": "Paslaugos", + "servicesOffered": "Siūlomos paslaugos", + "subtitle": "Subtitrai", + "text": "Tekstas", + "upcomingEvents": "Būsimi įvykiai", + "visitProfile": "Apsilankykite profilyje" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Naudingumo vaizdas {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Pagrindinės informacijos skyrius", "customSearchArea": "Pasirinktinė paieškos sritis", "distance": "Atstumas", - "enableCookies": "Įgalinti slapukus", "expandedMenu": "Išplėstas meniu", "filter": "Filtruoti", "findALocation": "Raskite vietą", @@ -57,7 +105,6 @@ "locationsWithinDistanceOf_other": "{{count}} vietovių per {{distance}} {{unit}} nuo „{{name}}“", "logo": "Logotipas", "map": "Žemėlapis", - "mapRequiresOptIn": "Šis žemėlapis gali būti rodomas tik įjungus slapukus", "mile_few": "mylios", "mile_many": "mylios", "mile_one": "mylia", diff --git a/packages/visual-editor/locales/components/lv/visual-editor.json b/packages/visual-editor/locales/components/lv/visual-editor.json index e398df4955..e2975b5749 100644 --- a/packages/visual-editor/locales/components/lv/visual-editor.json +++ b/packages/visual-editor/locales/components/lv/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Slēgts", "closesAtTime": "Tiek slēgts plkst. {{time}}", "closesAtTimeWeek": "Tiek slēgts plkst. {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Aptuveni [[name]]", + "articleName": "Raksta nosaukums", + "associateAgent": "Asociētais aģents", + "bannerText": "Reklāmkaroga teksts", + "businessName": "Uzņēmuma nosaukums", + "button": "Poga", + "callToAction": "Aicinājums uz darbību", + "category": "Kategorija", + "contactMe": "Sazinieties ar mani", + "credentials": "Akreditācijas dati", + "directoryRoot": "Direktorija sakne", + "eventImage": "Pasākuma attēls", + "eventTitle": "Pasākuma nosaukums", + "featuredProducts": "Piedāvātie produkti", + "featuredPromotion": "Piedāvātā akcija", + "featuredTestimonials": "Piedāvātās atsauksmes", + "findALocation": "Atrodiet atrašanās vietu", + "firstLast": "Pirmais Pēdējais", + "followUs": "Sekojiet mums", + "footerLabel": "Kājenes etiķete", + "footerLink": "Kājenes saite", + "frequentlyAskedQuestions": "Bieži uzdotie jautājumi", + "gallery": "Galerija", + "geomodifier": "Ģeomodifikators", + "getDirections": "Saņemiet norādes", + "header": "Virsraksts", + "headerLink": "Galvenes saite", + "hours": "Stundas", + "information": "Informācija", + "insights": "Ieskats", + "learnMore": "Uzziniet vairāk", + "logo": "Logotips", + "meetOurTeam": "Iepazīstieties ar mūsu komandu", + "name": "Vārds", + "nearbyLocations": "Atrašanās vietas tuvumā", + "phone": "Tālrunis", + "price": "123,00 USD", + "productName": "Produkta nosaukums", + "professionalName": "Profesionālais vārds", + "professionalTitle": "Profesionālais tituls", + "readMore": "Lasīt vairāk", + "services": "Pakalpojumi", + "servicesOffered": "Piedāvātie pakalpojumi", + "subtitle": "Apakšvirsraksts", + "text": "Teksts", + "upcomingEvents": "Gaidāmie notikumi", + "visitProfile": "Apmeklējiet profilu" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Lietderības attēls {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Pamatinformācija", "customSearchArea": "Pielāgota meklēšanas zona", "distance": "Attālums", - "enableCookies": "Iespējot sīkfailus", "expandedMenu": "Paplašināta izvēlne", "filter": "Filtrs", "findALocation": "Atrodiet atrašanās vietu", @@ -53,7 +101,6 @@ "locationsWithinDistanceOf_zero": "{{count}} atrašanās vietas {{distance}} {{unit}} rādiusā no \"{{name}}\"", "logo": "Logotips", "map": "Karte", - "mapRequiresOptIn": "Šo karti var parādīt tikai tad, ja ir iespējoti sīkfaili", "mile_one": "jūdze", "mile_other": "jūdzes", "mile_zero": "jūdzes", diff --git a/packages/visual-editor/locales/components/nb/visual-editor.json b/packages/visual-editor/locales/components/nb/visual-editor.json index 06c19927df..4c13f0e494 100644 --- a/packages/visual-editor/locales/components/nb/visual-editor.json +++ b/packages/visual-editor/locales/components/nb/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Lukket", "closesAtTime": "Stenger kl. {{time}}", "closesAtTimeWeek": "Stenger kl. {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Om [[name]]", + "articleName": "Artikkelnavn", + "associateAgent": "Tilknyttet agent", + "bannerText": "Bannertekst", + "businessName": "Bedriftsnavn", + "button": "Knapp", + "callToAction": "Call to Action", + "category": "Kategori", + "contactMe": "Kontakt meg", + "credentials": "Legitimasjon", + "directoryRoot": "Katalogrot", + "eventImage": "Hendelsesbilde", + "eventTitle": "Begivenhetstittel", + "featuredProducts": "Utvalgte produkter", + "featuredPromotion": "Utvalgt kampanje", + "featuredTestimonials": "Utvalgte attester", + "findALocation": "Finn en plassering", + "firstLast": "Første Siste", + "followUs": "Følg oss", + "footerLabel": "Bunntekstetikett", + "footerLink": "Bunntekstlenke", + "frequentlyAskedQuestions": "Ofte stilte spørsmål", + "gallery": "Galleri", + "geomodifier": "Geomodifikator", + "getDirections": "Få veibeskrivelse", + "header": "Overskrift", + "headerLink": "Header Link", + "hours": "Timer", + "information": "Informasjon", + "insights": "Innsikt", + "learnMore": "Lær mer", + "logo": "Logo", + "meetOurTeam": "Møt teamet vårt", + "name": "Navn", + "nearbyLocations": "Steder i nærheten", + "phone": "Telefon", + "price": "$123,00", + "productName": "Produktnavn", + "professionalName": "Profesjonelt navn", + "professionalTitle": "Yrkestittel", + "readMore": "Les mer", + "services": "Tjenester", + "servicesOffered": "Tjenester som tilbys", + "subtitle": "Undertekst", + "text": "Tekst", + "upcomingEvents": "Kommende arrangementer", + "visitProfile": "Besøk profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Verktøybilde {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Kjerneinfo -seksjon", "customSearchArea": "Tilpasset søkeområde", "distance": "Avstand", - "enableCookies": "Aktiver informasjonskapsler", "expandedMenu": "Utvidet meny", "filter": "Filter", "findALocation": "Finn et sted", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} steder innenfor {{distance}} {{unit}} fra \"{{name}}\"", "logo": "Logo", "map": "Kart", - "mapRequiresOptIn": "Dette kartet kan bare vises hvis informasjonskapsler er aktivert", "mile_one": "mil", "mile_other": "mil", "monday": "mandag", diff --git a/packages/visual-editor/locales/components/nl/visual-editor.json b/packages/visual-editor/locales/components/nl/visual-editor.json index 620810d79c..a6f1bb2d00 100644 --- a/packages/visual-editor/locales/components/nl/visual-editor.json +++ b/packages/visual-editor/locales/components/nl/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Gesloten", "closesAtTime": "Sluit om {{time}}", "closesAtTimeWeek": "Sluit om {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Over [[name]]", + "articleName": "Artikelnaam", + "associateAgent": "Associate-agent", + "bannerText": "Bannertekst", + "businessName": "Bedrijfsnaam", + "button": "Knop", + "callToAction": "Oproep tot actie", + "category": "Categorie", + "contactMe": "Neem contact met mij op", + "credentials": "Referenties", + "directoryRoot": "Directorywortel", + "eventImage": "Evenement afbeelding", + "eventTitle": "Titel van evenement", + "featuredProducts": "Uitgelichte producten", + "featuredPromotion": "Uitgelichte promotie", + "featuredTestimonials": "Uitgelichte getuigenissen", + "findALocation": "Zoek een locatie", + "firstLast": "Eerste Laatste", + "followUs": "Volg ons", + "footerLabel": "Voettekstlabel", + "footerLink": "Voettekstlink", + "frequentlyAskedQuestions": "Veelgestelde vragen", + "gallery": "Galerij", + "geomodifier": "Geomodificator", + "getDirections": "Routebeschrijving opvragen", + "header": "Koptekst", + "headerLink": "Koplink", + "hours": "Uur", + "information": "Informatie", + "insights": "Inzichten", + "learnMore": "Meer informatie", + "logo": "Logo", + "meetOurTeam": "Maak kennis met ons team", + "name": "Naam", + "nearbyLocations": "Locaties in de buurt", + "phone": "Telefoon", + "price": "$ 123,00", + "productName": "Productnaam", + "professionalName": "Professionele naam", + "professionalTitle": "Professionele titel", + "readMore": "Lees meer", + "services": "Diensten", + "servicesOffered": "Aangeboden diensten", + "subtitle": "Ondertitel", + "text": "Tekst", + "upcomingEvents": "Aankomende evenementen", + "visitProfile": "Bezoek Profiel" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Hulpprogramma-afbeelding {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Core Info -sectie", "customSearchArea": "Aangepast zoekgebied", "distance": "Afstand", - "enableCookies": "Cookies inschakelen", "expandedMenu": "Uitgebreid menu", "filter": "Filter", "findALocation": "Vind een locatie", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} locaties binnen {{distance}} {{unit}} van \"{{name}}\"", "logo": "Logo", "map": "Kaart", - "mapRequiresOptIn": "Deze kaart kan alleen worden weergegeven als cookies zijn ingeschakeld", "mile_one": "mijl", "mile_other": "mijlen", "monday": "Maandag", diff --git a/packages/visual-editor/locales/components/pl/visual-editor.json b/packages/visual-editor/locales/components/pl/visual-editor.json index 5b393f0aab..e087e885db 100644 --- a/packages/visual-editor/locales/components/pl/visual-editor.json +++ b/packages/visual-editor/locales/components/pl/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Zamknięte", "closesAtTime": "Zamyka się o {{time}}", "closesAtTimeWeek": "Zamyka się o {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Informacje o [[name]]", + "articleName": "Nazwa artykułu", + "associateAgent": "Agent stowarzyszony", + "bannerText": "Tekst banera", + "businessName": "Nazwa firmy", + "button": "Przycisk", + "callToAction": "Wezwanie do działania", + "category": "Kategoria", + "contactMe": "Skontaktuj się ze mną", + "credentials": "Referencje", + "directoryRoot": "Katalog główny", + "eventImage": "Obraz wydarzenia", + "eventTitle": "Tytuł wydarzenia", + "featuredProducts": "Polecane produkty", + "featuredPromotion": "Wyróżniona promocja", + "featuredTestimonials": "Wyróżnione referencje", + "findALocation": "Znajdź lokalizację", + "firstLast": "Pierwszy Ostatni", + "followUs": "Śledź nas", + "footerLabel": "Etykieta stopki", + "footerLink": "Link do stopki", + "frequentlyAskedQuestions": "Często zadawane pytania", + "gallery": "Galeria", + "geomodifier": "Geomodyfikator", + "getDirections": "Uzyskaj wskazówki", + "header": "Chodnikowiec", + "headerLink": "Link do nagłówka", + "hours": "Godziny", + "information": "Informacja", + "insights": "Spostrzeżenia", + "learnMore": "Dowiedz się więcej", + "logo": "Logo", + "meetOurTeam": "Poznaj nasz zespół", + "name": "Nazwa", + "nearbyLocations": "Pobliskie lokalizacje", + "phone": "Telefon", + "price": "123,00 dolarów", + "productName": "Nazwa produktu", + "professionalName": "Nazwa zawodowa", + "professionalTitle": "Tytuł zawodowy", + "readMore": "Przeczytaj więcej", + "services": "Usługi", + "servicesOffered": "Oferowane usługi", + "subtitle": "Podtytuł", + "text": "Tekst", + "upcomingEvents": "Nadchodzące wydarzenia", + "visitProfile": "Odwiedź profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Obraz użytkowy {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Sekcja informacji podstawowych", "customSearchArea": "Niestandardowy obszar wyszukiwania", "distance": "Dystans", - "enableCookies": "Włącz pliki cookie", "expandedMenu": "Rozbudowane menu", "filter": "Filtr", "findALocation": "Znajdź lokalizację", @@ -57,7 +105,6 @@ "locationsWithinDistanceOf_other": "{{count}} lokalizacji w promieniu {{distance}} {{unit}} od „{{name}}”", "logo": "Logo", "map": "Mapa", - "mapRequiresOptIn": "Ta mapa może być wyświetlana tylko wtedy, gdy włączona jest obsługa plików cookie", "mile_few": "mile", "mile_many": "mil", "mile_one": "mila", diff --git a/packages/visual-editor/locales/components/pt/visual-editor.json b/packages/visual-editor/locales/components/pt/visual-editor.json index 64a4026c80..a33ba6b38c 100644 --- a/packages/visual-editor/locales/components/pt/visual-editor.json +++ b/packages/visual-editor/locales/components/pt/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Fechado", "closesAtTime": "Fecha às {{time}}", "closesAtTimeWeek": "Fecha às {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Sobre [[name]]", + "articleName": "Nome do artigo", + "associateAgent": "Agente Associado", + "bannerText": "Texto do banner", + "businessName": "Nome comercial", + "button": "Botão", + "callToAction": "Chamada para ação", + "category": "Categoria", + "contactMe": "Entre em contato comigo", + "credentials": "Credenciais", + "directoryRoot": "Raiz do diretório", + "eventImage": "Imagem do Evento", + "eventTitle": "Título do Evento", + "featuredProducts": "Produtos em destaque", + "featuredPromotion": "Promoção em destaque", + "featuredTestimonials": "Depoimentos em destaque", + "findALocation": "Encontre um local", + "firstLast": "Primeiro Último", + "followUs": "Siga-nos", + "footerLabel": "Etiqueta de rodapé", + "footerLink": "Link do rodapé", + "frequentlyAskedQuestions": "Perguntas frequentes", + "gallery": "Galeria", + "geomodifier": "Geomodificador", + "getDirections": "Obter direções", + "header": "Cabeçalho", + "headerLink": "Link do cabeçalho", + "hours": "Horas", + "information": "Informação", + "insights": "Percepções", + "learnMore": "Saber mais", + "logo": "Logotipo", + "meetOurTeam": "Conheça nossa equipe", + "name": "Nome", + "nearbyLocations": "Locais próximos", + "phone": "Telefone", + "price": "US$ 123,00", + "productName": "Nome do produto", + "professionalName": "Nome Profissional", + "professionalTitle": "Título Profissional", + "readMore": "Leia mais", + "services": "Serviços", + "servicesOffered": "Serviços oferecidos", + "subtitle": "Legenda", + "text": "Texto", + "upcomingEvents": "Próximos eventos", + "visitProfile": "Visitar perfil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Imagem utilitária {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Seção de informações principais", "customSearchArea": "Área de pesquisa personalizada", "distance": "Distância", - "enableCookies": "Habilitar Cookies", "expandedMenu": "Menu expandido", "filter": "Filtro", "findALocation": "Encontre um local", @@ -53,7 +101,6 @@ "locationsWithinDistanceOf_other": "{{count}} locais dentro de {{distance}} {{unit}} de \"{{name}}\"", "logo": "Logotipo", "map": "Mapa", - "mapRequiresOptIn": "Este mapa só pode ser exibido se os cookies estiverem ativados", "mile_many": "milhas", "mile_one": "milha", "mile_other": "milhas", diff --git a/packages/visual-editor/locales/components/ro/visual-editor.json b/packages/visual-editor/locales/components/ro/visual-editor.json index faa3bad5b7..55ac3cc20c 100644 --- a/packages/visual-editor/locales/components/ro/visual-editor.json +++ b/packages/visual-editor/locales/components/ro/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Închis", "closesAtTime": "Se închide la {{time}}", "closesAtTimeWeek": "Se închide la {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Despre [[name]]", + "articleName": "Nume articol", + "associateAgent": "Agent asociat", + "bannerText": "Text banner", + "businessName": "Numele companiei", + "button": "Buton", + "callToAction": "Apel la acțiune", + "category": "Categorie", + "contactMe": "Contactați-mă", + "credentials": "Acreditări", + "directoryRoot": "Rădăcină director", + "eventImage": "Imaginea evenimentului", + "eventTitle": "Titlul evenimentului", + "featuredProducts": "Produse recomandate", + "featuredPromotion": "Promoție recomandată", + "featuredTestimonials": "Mărturii recomandate", + "findALocation": "Găsiți o locație", + "firstLast": "Primul Ultimul", + "followUs": "Urmați-ne", + "footerLabel": "Etichetă de subsol", + "footerLink": "Link de subsol", + "frequentlyAskedQuestions": "Întrebări frecvente", + "gallery": "Galerie", + "geomodifier": "Geomodificator", + "getDirections": "Obțineți indicații", + "header": "Antet", + "headerLink": "Link antet", + "hours": "Ore", + "information": "Informaţii", + "insights": "Perspective", + "learnMore": "Află mai multe", + "logo": "Logo", + "meetOurTeam": "Faceți cunoștință cu echipa noastră", + "name": "Nume", + "nearbyLocations": "Locații din apropiere", + "phone": "Telefon", + "price": "123,00 USD", + "productName": "Numele produsului", + "professionalName": "Nume profesional", + "professionalTitle": "Titlul profesional", + "readMore": "Citeşte mai mult", + "services": "Servicii", + "servicesOffered": "Servicii oferite", + "subtitle": "Subtitlu", + "text": "Text", + "upcomingEvents": "Evenimente viitoare", + "visitProfile": "Vizitați Profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Imagine utilitar {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Secțiunea de informații de bază", "customSearchArea": "Zona de căutare personalizată", "distance": "Distanţă", - "enableCookies": "Activați cookie-urile", "expandedMenu": "Meniu extins", "filter": "Filtra", "findALocation": "Găsiți o locație", @@ -53,7 +101,6 @@ "locationsWithinDistanceOf_other": "{{count}} locații pe o rază de {{distance}} {{unit}} de „{{name}}”", "logo": "Logo", "map": "Hartă", - "mapRequiresOptIn": "Această hartă poate fi afișată numai dacă cookie-urile sunt activate", "mile_few": "mile", "mile_one": "milă", "mile_other": "mile", diff --git a/packages/visual-editor/locales/components/sk/visual-editor.json b/packages/visual-editor/locales/components/sk/visual-editor.json index 5403778b96..c3dd9c8a1f 100644 --- a/packages/visual-editor/locales/components/sk/visual-editor.json +++ b/packages/visual-editor/locales/components/sk/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Zatvorené", "closesAtTime": "Zatvára sa o {{time}}", "closesAtTimeWeek": "Zatvára sa o {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "O [[name]]", + "articleName": "Názov článku", + "associateAgent": "Pridružený agent", + "bannerText": "Text bannera", + "businessName": "Obchodné meno", + "button": "Tlačidlo", + "callToAction": "Výzva na akciu", + "category": "Kategória", + "contactMe": "Kontaktujte ma", + "credentials": "poverenia", + "directoryRoot": "Koreň adresára", + "eventImage": "Obrázok udalosti", + "eventTitle": "Názov udalosti", + "featuredProducts": "Odporúčané produkty", + "featuredPromotion": "Odporúčaná propagácia", + "featuredTestimonials": "Odporúčané referencie", + "findALocation": "Nájdite miesto", + "firstLast": "Prvý posledný", + "followUs": "Sledujte nás", + "footerLabel": "Štítok päty", + "footerLink": "Odkaz v päte", + "frequentlyAskedQuestions": "Často kladené otázky", + "gallery": "Galéria", + "geomodifier": "Geomodifikátor", + "getDirections": "Získajte trasu", + "header": "Hlavička", + "headerLink": "Odkaz na hlavičku", + "hours": "hodiny", + "information": "Informácie", + "insights": "Insights", + "learnMore": "Zistite viac", + "logo": "Logo", + "meetOurTeam": "Spoznajte náš tím", + "name": "Meno", + "nearbyLocations": "Polohy v okolí", + "phone": "Telefón", + "price": "123,00 dolárov", + "productName": "Názov produktu", + "professionalName": "Profesionálne meno", + "professionalTitle": "Profesionálny titul", + "readMore": "Prečítajte si viac", + "services": "Služby", + "servicesOffered": "Ponúkané služby", + "subtitle": "Podnadpis", + "text": "Text", + "upcomingEvents": "Nadchádzajúce udalosti", + "visitProfile": "Navštívte profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Pomocný obrázok {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Sekcia", "customSearchArea": "Oblasť vyhľadávania", "distance": "Vzdialenosť", - "enableCookies": "Povoliť súbory cookie", "expandedMenu": "Rozšírené menu", "filter": "Filter", "findALocation": "Nájdite miesto", @@ -57,7 +105,6 @@ "locationsWithinDistanceOf_other": "{{count}} miest v rámci {{distance}} {{unit}} od „{{name}}“", "logo": "Logo", "map": "Mapa", - "mapRequiresOptIn": "Túto mapu je možné zobraziť iba vtedy, ak sú povolené súbory cookie", "mile_few": "míle", "mile_many": "míľ", "mile_one": "míľa", diff --git a/packages/visual-editor/locales/components/sv/visual-editor.json b/packages/visual-editor/locales/components/sv/visual-editor.json index 54e327b499..3986219e44 100644 --- a/packages/visual-editor/locales/components/sv/visual-editor.json +++ b/packages/visual-editor/locales/components/sv/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Stängd", "closesAtTime": "Stänger kl. {{time}}", "closesAtTimeWeek": "Stänger kl. {{time}} {{dayOfWeek}}", + "componentDefaults": { + "aboutName": "Om [[name]]", + "articleName": "Artikelnamn", + "associateAgent": "Associerad agent", + "bannerText": "Bannertext", + "businessName": "Företagsnamn", + "button": "Knapp", + "callToAction": "Uppmaning till handling", + "category": "Kategori", + "contactMe": "Kontakta mig", + "credentials": "Referenser", + "directoryRoot": "Katalogrot", + "eventImage": "Händelsebild", + "eventTitle": "Händelsens titel", + "featuredProducts": "Utvalda produkter", + "featuredPromotion": "Utvald kampanj", + "featuredTestimonials": "Utvalda vittnesmål", + "findALocation": "Hitta en plats", + "firstLast": "Första Sista", + "followUs": "Följ oss", + "footerLabel": "Sidfotsetikett", + "footerLink": "Sidfotslänk", + "frequentlyAskedQuestions": "Vanliga frågor", + "gallery": "Galleri", + "geomodifier": "Geomodifierare", + "getDirections": "Få vägbeskrivningar", + "header": "Rubrik", + "headerLink": "Rubriklänk", + "hours": "Timmar", + "information": "Information", + "insights": "Insikter", + "learnMore": "Läs mer", + "logo": "Logotyp", + "meetOurTeam": "Möt vårt team", + "name": "Namn", + "nearbyLocations": "Närliggande platser", + "phone": "Telefon", + "price": "123,00 USD", + "productName": "Produktnamn", + "professionalName": "Professionellt namn", + "professionalTitle": "Yrkestitel", + "readMore": "Läs mer", + "services": "Tjänster", + "servicesOffered": "Tjänster som erbjuds", + "subtitle": "Texta", + "text": "Text", + "upcomingEvents": "Kommande evenemang", + "visitProfile": "Besök profil" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Verktygsbild {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Kärninfo -sektionen", "customSearchArea": "Anpassad sökområde", "distance": "Avstånd", - "enableCookies": "Aktivera cookies", "expandedMenu": "Utökad meny", "filter": "Filtrera", "findALocation": "Hitta en plats", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "{{count}} platser inom {{distance}} {{unit}} från \"{{name}}\"", "logo": "Logotyp", "map": "Karta", - "mapRequiresOptIn": "Denna karta kan endast visas om cookies är aktiverade", "mile_one": "mil", "mile_other": "mil", "monday": "Måndag", diff --git a/packages/visual-editor/locales/components/tr/visual-editor.json b/packages/visual-editor/locales/components/tr/visual-editor.json index 7b4702e0a5..6484a2703d 100644 --- a/packages/visual-editor/locales/components/tr/visual-editor.json +++ b/packages/visual-editor/locales/components/tr/visual-editor.json @@ -17,6 +17,55 @@ "closed": "Kapalı", "closesAtTime": "{{time}} itibarıyla kapanıyor", "closesAtTimeWeek": "{{time}} {{dayOfWeek}} itibarıyla kapanıyor", + "componentDefaults": { + "aboutName": "[[name]] Hakkında", + "articleName": "Makale Adı", + "associateAgent": "Yardımcı Temsilci", + "bannerText": "Banner Metni", + "businessName": "İşletme Adı", + "button": "Düğme", + "callToAction": "Eylem Çağrısı", + "category": "Kategori", + "contactMe": "Bana Ulaşın", + "credentials": "Kimlik bilgileri", + "directoryRoot": "Dizin Kökü", + "eventImage": "Etkinlik Resmi", + "eventTitle": "Etkinlik Başlığı", + "featuredProducts": "Öne Çıkan Ürünler", + "featuredPromotion": "Öne Çıkan Promosyon", + "featuredTestimonials": "Öne Çıkan Görüşler", + "findALocation": "Konum Bul", + "firstLast": "İlk Son", + "followUs": "Bizi takip edin", + "footerLabel": "Alt Bilgi Etiketi", + "footerLink": "Alt Bilgi Bağlantısı", + "frequentlyAskedQuestions": "Sıkça Sorulan Sorular", + "gallery": "Galeri", + "geomodifier": "Geomodifier", + "getDirections": "Yol Tarifi Al", + "header": "Başlık", + "headerLink": "Başlık Bağlantısı", + "hours": "Saat", + "information": "Bilgi", + "insights": "Analizler", + "learnMore": "Daha fazla bilgi edin", + "logo": "Logo", + "meetOurTeam": "Ekibimizle Tanışın", + "name": "İsim", + "nearbyLocations": "Yakın Yerler", + "phone": "Telefon", + "price": "123,00$", + "productName": "Ürün Adı", + "professionalName": "Meslek Adı", + "professionalTitle": "Mesleki Ünvan", + "readMore": "Devamını oku", + "services": "Hizmetler", + "servicesOffered": "Sunulan Hizmetler", + "subtitle": "Altyazı", + "text": "Metin", + "upcomingEvents": "Yaklaşan Etkinlikler", + "visitProfile": "Profili Ziyaret Et" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "Yardımcı Resim {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "Çekirdek Bilgi Bölümü", "customSearchArea": "Özel arama alanı", "distance": "Mesafe", - "enableCookies": "Çerezleri Etkinleştir", "expandedMenu": "Genişletilmiş menü", "filter": "Filtre", "findALocation": "Bir Konum Bul", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "\"{{name}}\" 'den {{distance}} {{unit}} uzaklıktaki {{count}} konum", "logo": "Logo", "map": "Harita", - "mapRequiresOptIn": "Bu harita yalnızca çerezler etkinse görüntülenebilir", "mile_one": "mil", "mile_other": "mil", "monday": "Pazartesi", diff --git a/packages/visual-editor/locales/components/zh-TW/visual-editor.json b/packages/visual-editor/locales/components/zh-TW/visual-editor.json index 0acc63fcb5..b8e5a4dcc3 100644 --- a/packages/visual-editor/locales/components/zh-TW/visual-editor.json +++ b/packages/visual-editor/locales/components/zh-TW/visual-editor.json @@ -17,6 +17,55 @@ "closed": "關閉", "closesAtTime": "於 {{time}} 關閉", "closesAtTimeWeek": "於 {{time}} {{dayOfWeek}} 關閉", + "componentDefaults": { + "aboutName": "關於 [[name]]", + "articleName": "文章名稱", + "associateAgent": "助理代理", + "bannerText": "橫幅文字", + "businessName": "公司名稱", + "button": "按鈕", + "callToAction": "號召性用語", + "category": "類別", + "contactMe": "聯絡我", + "credentials": "證書", + "directoryRoot": "目錄根", + "eventImage": "活動圖片", + "eventTitle": "活動標題", + "featuredProducts": "特色產品", + "featuredPromotion": "特色促銷", + "featuredTestimonials": "特色推薦", + "findALocation": "尋找地點", + "firstLast": "第一個 最後一個", + "followUs": "跟著我們", + "footerLabel": "頁尾標籤", + "footerLink": "頁尾連結", + "frequentlyAskedQuestions": "常見問題解答", + "gallery": "畫廊", + "geomodifier": "地理修改器", + "getDirections": "獲取路線", + "header": "標頭", + "headerLink": "標題連結", + "hours": "時間", + "information": "資訊", + "insights": "見解", + "learnMore": "了解更多", + "logo": "標識", + "meetOurTeam": "認識我們的團隊", + "name": "姓名", + "nearbyLocations": "附近地點", + "phone": "電話", + "price": "$123.00", + "productName": "產品名稱", + "professionalName": "專業名稱", + "professionalTitle": "職稱", + "readMore": "閱讀更多", + "services": "服務", + "servicesOffered": "提供的服務", + "subtitle": "字幕", + "text": "文字", + "upcomingEvents": "即將舉行的活動", + "visitProfile": "訪問簡介" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "實用程序圖像 {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "核心信息部分", "customSearchArea": "自定義搜索區域", "distance": "距離", - "enableCookies": "啟用 Cookie", "expandedMenu": "擴展菜單", "filter": "篩選", "findALocation": "找到一個位置", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "“{{name}}”的 {{distance}} {{unit}} 內有 {{count}} 個位置", "logo": "標識", "map": "地圖", - "mapRequiresOptIn": "該地圖僅在啟用cookies的情況下才能顯示", "mile_one": "英里", "mile_other": "英里", "monday": "週一", diff --git a/packages/visual-editor/locales/components/zh/visual-editor.json b/packages/visual-editor/locales/components/zh/visual-editor.json index a868152709..9805f9e765 100644 --- a/packages/visual-editor/locales/components/zh/visual-editor.json +++ b/packages/visual-editor/locales/components/zh/visual-editor.json @@ -17,6 +17,55 @@ "closed": "关闭", "closesAtTime": "于 {{time}} 关闭", "closesAtTimeWeek": "于 {{time}} {{dayOfWeek}} 关闭", + "componentDefaults": { + "aboutName": "关于 [[name]]", + "articleName": "文章名称", + "associateAgent": "助理代理", + "bannerText": "横幅文字", + "businessName": "公司名称", + "button": "按钮", + "callToAction": "号召性用语", + "category": "类别", + "contactMe": "联系我", + "credentials": "证书", + "directoryRoot": "目录根", + "eventImage": "活动图片", + "eventTitle": "活动标题", + "featuredProducts": "特色产品", + "featuredPromotion": "特色促销", + "featuredTestimonials": "特色推荐", + "findALocation": "寻找地点", + "firstLast": "第一个 最后一个", + "followUs": "跟着我们", + "footerLabel": "页脚标签", + "footerLink": "页脚链接", + "frequentlyAskedQuestions": "常见问题解答", + "gallery": "画廊", + "geomodifier": "地理修改器", + "getDirections": "获取路线", + "header": "标头", + "headerLink": "标题链接", + "hours": "时间", + "information": "信息", + "insights": "见解", + "learnMore": "了解更多", + "logo": "标识", + "meetOurTeam": "认识我们的团队", + "name": "姓名", + "nearbyLocations": "附近地点", + "phone": "电话", + "price": "$123.00", + "productName": "产品名称", + "professionalName": "专业名称", + "professionalTitle": "职称", + "readMore": "阅读更多", + "services": "服务", + "servicesOffered": "提供的服务", + "subtitle": "字幕", + "text": "文本", + "upcomingEvents": "即将举行的活动", + "visitProfile": "访问简介" + }, "components": { "footerUtilityImagesSlot": { "defaultAlt": "实用程序图像 {{number}}" @@ -25,7 +74,6 @@ "coreInfoSection": "核心信息部分", "customSearchArea": "自定义搜索区域", "distance": "距离", - "enableCookies": "启用 Cookie", "expandedMenu": "扩展菜单", "filter": "筛选", "findALocation": "找到一个位置", @@ -49,7 +97,6 @@ "locationsWithinDistanceOf_other": "“{{name}}”的 {{distance}} {{unit}} 内有 {{count}} 个位置", "logo": "标识", "map": "地图", - "mapRequiresOptIn": "该地图仅在启用cookies的情况下才能显示", "mile_one": "英里", "mile_other": "英里", "monday": "周一", diff --git a/packages/visual-editor/locales/platform/cs/visual-editor.json b/packages/visual-editor/locales/platform/cs/visual-editor.json index 19fdcc0ee4..eb09659beb 100644 --- a/packages/visual-editor/locales/platform/cs/visual-editor.json +++ b/packages/visual-editor/locales/platform/cs/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Vzdálenost", "emptyStateFieldEmpty": "Mapované pole {{entityType}} je prázdné", "emptyStateSectionHidden": "Sekce skrytá pro tuto {{entityType}}", - "enableCookies": "Povolit soubory cookie", "entityTypeField": "{{entityType}} pole", "event": "Událost", "expandedMenu": "Rozšířené menu", @@ -524,7 +523,6 @@ "locationWithCount_other": "{{count}} umístění", "logo": "Logo", "map": "Mapa", - "mapRequiresOptIn": "Tuto mapu lze zobrazit pouze v případě, že jsou povoleny soubory cookie", "maxWidthTip": "Pro optimální zarovnání obsahu doporučujeme nastavit šířku záhlaví a zápatí tak, aby odpovídala nebo překročila mřížku obsahu stránky.", "metaTitleMissingLocales": "Metanázev chybí pro národní prostředí: {{locales}}", "mile_one": "míle", diff --git a/packages/visual-editor/locales/platform/da/visual-editor.json b/packages/visual-editor/locales/platform/da/visual-editor.json index 1ae49df703..3a55f5d36a 100644 --- a/packages/visual-editor/locales/platform/da/visual-editor.json +++ b/packages/visual-editor/locales/platform/da/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Afstand", "emptyStateFieldEmpty": "Det tilknyttede felt for {{entityType}} er tomt", "emptyStateSectionHidden": "Sektion skjult for denne {{entityType}}", - "enableCookies": "Aktiver cookies", "entityTypeField": "{{entityType}} felt", "event": "Tilfælde", "expandedMenu": "Udvidet menu", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} placeringer", "logo": "Logo", "map": "Kort", - "mapRequiresOptIn": "Dette kort kan kun vises, hvis cookies er aktiveret", "maxWidthTip": "For optimal indholdsjustering anbefaler vi at indstille overskriften og sidefodbredden for at matche eller overskride sideindholdsnettet.", "metaTitleMissingLocales": "Metatitel mangler for lokalitet(er): {{locales}}", "mile_one": "mil", diff --git a/packages/visual-editor/locales/platform/de/visual-editor.json b/packages/visual-editor/locales/platform/de/visual-editor.json index 4c7edcaeee..8b1bd5dc1d 100644 --- a/packages/visual-editor/locales/platform/de/visual-editor.json +++ b/packages/visual-editor/locales/platform/de/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Distanz", "emptyStateFieldEmpty": "Das zugeordnete Feld von {{entityType}} ist leer", "emptyStateSectionHidden": "Modul für diesen {{entityType}} ausgeblendet", - "enableCookies": "Cookies aktivieren", "entityTypeField": "{{entityType}}-Feld", "event": "Event", "expandedMenu": "Erweitertes Menü", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} Standorte", "logo": "Logo", "map": "Karte", - "mapRequiresOptIn": "Diese Karte kann nur angezeigt werden, wenn Cookies aktiviert sind", "maxWidthTip": "Für eine optimale Ausrichtung des Inhalts empfehlen wir, die Breite von Header und Footer so einzustellen, dass sie dem Content Grid der Seite entspricht oder dieses überschreitet.", "metaTitleMissingLocales": "Für Gebietsschema(s) fehlt der Metatitel: {{locales}}", "mile_one": "Meile", diff --git a/packages/visual-editor/locales/platform/en-GB/visual-editor.json b/packages/visual-editor/locales/platform/en-GB/visual-editor.json index 7df5f7fe79..8b82810eb5 100644 --- a/packages/visual-editor/locales/platform/en-GB/visual-editor.json +++ b/packages/visual-editor/locales/platform/en-GB/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Distance", "emptyStateFieldEmpty": "{{entityType}}'s mapped field is empty", "emptyStateSectionHidden": "Section hidden for this {{entityType}}", - "enableCookies": "Enable Cookies", "entityTypeField": "{{entityType}} Field", "event": "Event", "expandedMenu": "Expanded menu", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} locations", "logo": "Logo", "map": "Map", - "mapRequiresOptIn": "This map can only be displayed if cookies are enabled", "maxWidthTip": "For optimal content alignment, we recommend setting the header and footer width to match or exceed the page content grid.", "metaTitleMissingLocales": "Meta title is missing for locale(s): {{locales}}", "mile_one": "mile", diff --git a/packages/visual-editor/locales/platform/en/visual-editor.json b/packages/visual-editor/locales/platform/en/visual-editor.json index 31298b2ee2..43bd415660 100644 --- a/packages/visual-editor/locales/platform/en/visual-editor.json +++ b/packages/visual-editor/locales/platform/en/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Distance", "emptyStateFieldEmpty": "{{entityType}}'s mapped field is empty", "emptyStateSectionHidden": "Section hidden for this {{entityType}}", - "enableCookies": "Enable Cookies", "entityTypeField": "{{entityType}} Field", "event": "Event", "expandedMenu": "Expanded menu", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} locations", "logo": "Logo", "map": "Map", - "mapRequiresOptIn": "This map can only be displayed if cookies are enabled", "maxWidthTip": "For optimal content alignment, we recommend setting the header and footer width to match or exceed the page content grid.", "metaTitleMissingLocales": "Meta title is missing for locale(s): {{locales}}", "mile_one": "mile", diff --git a/packages/visual-editor/locales/platform/es/visual-editor.json b/packages/visual-editor/locales/platform/es/visual-editor.json index e3f2d4b078..579f831d97 100644 --- a/packages/visual-editor/locales/platform/es/visual-editor.json +++ b/packages/visual-editor/locales/platform/es/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Distancia", "emptyStateFieldEmpty": "El campo asignado de {{entityType}} está vacío", "emptyStateSectionHidden": "Sección oculta para este {{entityType}}", - "enableCookies": "Habilitar cookies", "entityTypeField": "Campo de {{entityType}}", "event": "Evento", "expandedMenu": "Menú ampliado", @@ -520,7 +519,6 @@ "locationWithCount_other": "{{count}} ubicaciones", "logo": "Logo", "map": "Mapa", - "mapRequiresOptIn": "Este mapa sólo se puede mostrar si las cookies están habilitadas", "maxWidthTip": "Para una alineación de contenido óptimo, recomendamos establecer el ancho del encabezado y el pie de página para que coincidan o excedan la cuadrícula de contenido de la página.", "metaTitleMissingLocales": "Falta el metatítulo para las configuraciones regionales: {{locales}}", "mile_one": "milla", diff --git a/packages/visual-editor/locales/platform/et/visual-editor.json b/packages/visual-editor/locales/platform/et/visual-editor.json index a0144ff23e..6a9229acdd 100644 --- a/packages/visual-editor/locales/platform/et/visual-editor.json +++ b/packages/visual-editor/locales/platform/et/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Kaugus", "emptyStateFieldEmpty": "{{entityType}} kaardistatud väli on tühi", "emptyStateSectionHidden": "Selle {{entityType}} jaoks peidetud jaotis", - "enableCookies": "Luba küpsised", "entityTypeField": "{{entityType}} väli", "event": "Sündmus", "expandedMenu": "Laiendatud menüü", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} asukohad", "logo": "Logo", "map": "Kaart", - "mapRequiresOptIn": "Seda kaarti saab kuvada ainult siis, kui küpsised on lubatud", "maxWidthTip": "Sisu optimaalse joondamise tagamiseks soovitame seada päise ja jaluse laiuse, et see vastaks lehe sisuvõrgule või ületada.", "metaTitleMissingLocales": "Metapealkiri puudub järgmiste lokaatide jaoks: {{locales}}", "mile_one": "miil", diff --git a/packages/visual-editor/locales/platform/fi/visual-editor.json b/packages/visual-editor/locales/platform/fi/visual-editor.json index e4720b3912..e7b50362fd 100644 --- a/packages/visual-editor/locales/platform/fi/visual-editor.json +++ b/packages/visual-editor/locales/platform/fi/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Etäisyys", "emptyStateFieldEmpty": "Kohteen {{entityType}} kartoitettu kenttä on tyhjä", "emptyStateSectionHidden": "Osio piilotettu tälle {{entityType}}", - "enableCookies": "Ota evästeet käyttöön", "entityTypeField": "{{entityType}}kenttä", "event": "Tapahtuma", "expandedMenu": "Laajennettu valikko", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} sijaintia", "logo": "Logo", "map": "Kartta", - "mapRequiresOptIn": "Tämä kartta voidaan näyttää vain, jos evästeet ovat käytössä", "maxWidthTip": "Sisällön optimaalisen kohdistamisen saavuttamiseksi suosittelemme otsikon ja alatunnisteen leveyden asettamista vastaamaan tai ylittämään sivun sisältöverkon.", "metaTitleMissingLocales": "Metaotsikko puuttuu lokaaleilta: {{locales}}", "mile_one": "maili", diff --git a/packages/visual-editor/locales/platform/fr/visual-editor.json b/packages/visual-editor/locales/platform/fr/visual-editor.json index 748426c062..e587d6f50b 100644 --- a/packages/visual-editor/locales/platform/fr/visual-editor.json +++ b/packages/visual-editor/locales/platform/fr/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Distance", "emptyStateFieldEmpty": "Le champ mappé de {{entityType}} est vide", "emptyStateSectionHidden": "Section masquée pour ce {{entityType}}", - "enableCookies": "Activer les cookies", "entityTypeField": "Champ de {{entityType}}", "event": "Événement", "expandedMenu": "Menu développé", @@ -520,7 +519,6 @@ "locationWithCount_other": "{{count}} emplacements", "logo": "Logo", "map": "Carte", - "mapRequiresOptIn": "Cette carte ne peut être affichée que si les cookies sont activés", "maxWidthTip": "Pour l'alignement optimal du contenu, nous vous recommandons de définir la largeur de l'en-tête et du pied de page pour correspondre ou dépasser la grille de contenu de la page.", "metaTitleMissingLocales": "Le méta-titre est manquant pour les paramètres régionaux : {{locales}}", "mile_one": "mile", diff --git a/packages/visual-editor/locales/platform/hr/visual-editor.json b/packages/visual-editor/locales/platform/hr/visual-editor.json index fbe18d81cb..afcd2df183 100644 --- a/packages/visual-editor/locales/platform/hr/visual-editor.json +++ b/packages/visual-editor/locales/platform/hr/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Udaljenost", "emptyStateFieldEmpty": "Mapirano polje {{entityType}} je prazno", "emptyStateSectionHidden": "Odjeljak skriven za ovaj {{entityType}}", - "enableCookies": "Omogući kolačiće", "entityTypeField": "Polje {{entityType}}", "event": "Događaj", "expandedMenu": "Prošireni izbornik", @@ -520,7 +519,6 @@ "locationWithCount_other": "{{count}} lokacija", "logo": "Logo", "map": "Karta", - "mapRequiresOptIn": "Ova se karta može prikazati samo ako su omogućeni kolačići", "maxWidthTip": "Za optimalno poravnavanje sadržaja, preporučujemo postavljanje širine zaglavlja i podnožja kako bi se podudarala ili premašila rešetku sadržaja stranice.", "metaTitleMissingLocales": "Nedostaje meta naslov za lokalitet(e): {{locales}}", "mile_one": "milja", diff --git a/packages/visual-editor/locales/platform/hu/visual-editor.json b/packages/visual-editor/locales/platform/hu/visual-editor.json index 5f757be15f..fc51fd30f5 100644 --- a/packages/visual-editor/locales/platform/hu/visual-editor.json +++ b/packages/visual-editor/locales/platform/hu/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Távolság", "emptyStateFieldEmpty": "A(z) {{entityType}} leképezett mezője üres", "emptyStateSectionHidden": "A szakasz elrejtve ehhez a(z) {{entityType}}", - "enableCookies": "Cookie-k engedélyezése", "entityTypeField": "{{entityType}} mező", "event": "Esemény", "expandedMenu": "Kibővített menü", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} helyek", "logo": "Logó", "map": "Térkép", - "mapRequiresOptIn": "Ez a térkép csak akkor jeleníthető meg, ha a cookie-k engedélyezve vannak", "maxWidthTip": "Az optimális tartalom igazításához azt javasoljuk, hogy a fejléc és a lábléc szélességét beállítsuk az oldal tartalomrácsának megegyezésére vagy túllépésére.", "metaTitleMissingLocales": "Hiányzik a metacím a nyelvi beállításokhoz: {{locales}}", "mile_one": "mérföld", diff --git a/packages/visual-editor/locales/platform/it/visual-editor.json b/packages/visual-editor/locales/platform/it/visual-editor.json index 0fe8150cf0..91081c91e1 100644 --- a/packages/visual-editor/locales/platform/it/visual-editor.json +++ b/packages/visual-editor/locales/platform/it/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Distanza", "emptyStateFieldEmpty": "Il campo mappato di {{entityType}} è vuoto", "emptyStateSectionHidden": "Sezione nascosta per questo {{entityType}}", - "enableCookies": "Abilita i cookie", "entityTypeField": "{{entityType}} campo", "event": "Evento", "expandedMenu": "Menù ampliato", @@ -520,7 +519,6 @@ "locationWithCount_other": "{{count}} località", "logo": "Logo", "map": "Mappa", - "mapRequiresOptIn": "Questa mappa può essere visualizzata solo se i cookie sono abilitati", "maxWidthTip": "Per un allineamento ottimale dei contenuti, si consiglia di impostare la larghezza di intestazione e piè di pagina per abbinare o superare la griglia di contenuto della pagina.", "metaTitleMissingLocales": "Manca il meta titolo per le impostazioni locali: {{locales}}", "mile_one": "miglio", diff --git a/packages/visual-editor/locales/platform/ja/visual-editor.json b/packages/visual-editor/locales/platform/ja/visual-editor.json index a70f3647d1..45bf4f24a1 100644 --- a/packages/visual-editor/locales/platform/ja/visual-editor.json +++ b/packages/visual-editor/locales/platform/ja/visual-editor.json @@ -148,7 +148,6 @@ "distance": "距離", "emptyStateFieldEmpty": "{{entityType}} のマップされたフィールドが空です", "emptyStateSectionHidden": "この {{entityType}} に対して非表示のセクション", - "enableCookies": "Cookieを有効にする", "entityTypeField": "{{entityType}}フィールド", "event": "イベント", "expandedMenu": "拡張メニュー", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} 件の場所", "logo": "ロゴ", "map": "地図", - "mapRequiresOptIn": "この地図は Cookie が有効になっている場合にのみ表示できます", "maxWidthTip": "最適なコンテンツアラインメントについては、ページコンテンツグリッドに一致またはそれを超えるように、ヘッダーとフッターの幅を設定することをお勧めします。", "metaTitleMissingLocales": "ロケールのメタ タイトルがありません: {{locales}}", "mile_one": "マイル", diff --git a/packages/visual-editor/locales/platform/lt/visual-editor.json b/packages/visual-editor/locales/platform/lt/visual-editor.json index 70f1ec77c3..5707d57ea5 100644 --- a/packages/visual-editor/locales/platform/lt/visual-editor.json +++ b/packages/visual-editor/locales/platform/lt/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Atstumas", "emptyStateFieldEmpty": "{{entityType}} susietas laukas tuščias", "emptyStateSectionHidden": "Šio {{entityType}} skyrius paslėptas", - "enableCookies": "Įgalinti slapukus", "entityTypeField": "{{entityType}} laukas", "event": "Įvykis", "expandedMenu": "Išplėstas meniu", @@ -524,7 +523,6 @@ "locationWithCount_other": "{{count}} vietos", "logo": "Logotipas", "map": "Žemėlapis", - "mapRequiresOptIn": "Šis žemėlapis gali būti rodomas tik įjungus slapukus", "maxWidthTip": "Siekdami optimalaus turinio suderinimo, mes rekomenduojame nustatyti antraštės ir poraštės plotį, kad jis atitiktų arba viršytų puslapio turinio tinklą.", "metaTitleMissingLocales": "Trūksta lokalės (-ių) meta pavadinimo: {{locales}}", "mile_one": "mylia", diff --git a/packages/visual-editor/locales/platform/lv/visual-editor.json b/packages/visual-editor/locales/platform/lv/visual-editor.json index c8a2d2d27f..b889eb37d3 100644 --- a/packages/visual-editor/locales/platform/lv/visual-editor.json +++ b/packages/visual-editor/locales/platform/lv/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Attālums", "emptyStateFieldEmpty": "{{entityType}} kartētais lauks ir tukšs", "emptyStateSectionHidden": "Sadaļa paslēpta šim {{entityType}}", - "enableCookies": "Iespējot sīkfailus", "entityTypeField": "{{entityType}} lauks", "event": "Notikums", "expandedMenu": "Paplašināta izvēlne", @@ -520,7 +519,6 @@ "locationWithCount_other": "{{count}} vietas", "logo": "Logotips", "map": "Karte", - "mapRequiresOptIn": "Šo karti var parādīt tikai tad, ja ir iespējoti sīkfaili", "maxWidthTip": "Lai iegūtu optimālu satura izlīdzināšanu, mēs iesakām iestatīt galvenes un kājenes platumu, lai tas atbilstu vai pārsniegtu lapas satura režģi.", "metaTitleMissingLocales": "Trūkst metanosaukuma lokalizācijai(-ām): {{locales}}", "mile_zero": "jūdzes", diff --git a/packages/visual-editor/locales/platform/nb/visual-editor.json b/packages/visual-editor/locales/platform/nb/visual-editor.json index 6034a96391..14f5ea50b5 100644 --- a/packages/visual-editor/locales/platform/nb/visual-editor.json +++ b/packages/visual-editor/locales/platform/nb/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Avstand", "emptyStateFieldEmpty": "Det kartlagte feltet til {{entityType}} er tomt", "emptyStateSectionHidden": "Seksjon skjult for denne {{entityType}}", - "enableCookies": "Aktiver informasjonskapsler", "entityTypeField": "{{entityType}} felt", "event": "Hendelse", "expandedMenu": "Utvidet meny", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} lokasjoner", "logo": "Logo", "map": "Kart", - "mapRequiresOptIn": "Dette kartet kan bare vises hvis informasjonskapsler er aktivert", "maxWidthTip": "For optimal innholdsjustering anbefaler vi å sette overskrift og bunntekstbredde for å matche eller overstige sideinnholdsnettet.", "metaTitleMissingLocales": "Metatittel mangler for lokal(er): {{locales}}", "mile_one": "mil", diff --git a/packages/visual-editor/locales/platform/nl/visual-editor.json b/packages/visual-editor/locales/platform/nl/visual-editor.json index 13252691f5..b761434fc8 100644 --- a/packages/visual-editor/locales/platform/nl/visual-editor.json +++ b/packages/visual-editor/locales/platform/nl/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Afstand", "emptyStateFieldEmpty": "Het toegewezen veld van {{entityType}} is leeg", "emptyStateSectionHidden": "Sectie verborgen voor deze {{entityType}}", - "enableCookies": "Cookies inschakelen", "entityTypeField": "{{entityType}} veld", "event": "Evenement", "expandedMenu": "Uitgebreid menu", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} locaties", "logo": "Logo", "map": "Kaart", - "mapRequiresOptIn": "Deze kaart kan alleen worden weergegeven als cookies zijn ingeschakeld", "maxWidthTip": "Voor optimale inhouduitlijning raden we aan de koptekst- en voettekstbreedte in te stellen om het pagina -inhoudsnet van de pagina te matchen of te overschrijden.", "metaTitleMissingLocales": "Metatitel ontbreekt voor taalinstelling(en): {{locales}}", "mile_one": "mijl", diff --git a/packages/visual-editor/locales/platform/pl/visual-editor.json b/packages/visual-editor/locales/platform/pl/visual-editor.json index 5bfab7ea24..a44252253c 100644 --- a/packages/visual-editor/locales/platform/pl/visual-editor.json +++ b/packages/visual-editor/locales/platform/pl/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Dystans", "emptyStateFieldEmpty": "Mapowane pole elementu {{entityType}} jest puste", "emptyStateSectionHidden": "Sekcja ukryta dla tego elementu {{entityType}}", - "enableCookies": "Włącz pliki cookie", "entityTypeField": "Pole {{entityType}}", "event": "Wydarzenie", "expandedMenu": "Rozbudowane menu", @@ -524,7 +523,6 @@ "locationWithCount_other": "{{count}} lokalizacji", "logo": "Logo", "map": "Mapa", - "mapRequiresOptIn": "Ta mapa może być wyświetlana tylko wtedy, gdy włączona jest obsługa plików cookie", "maxWidthTip": "Aby uzyskać optymalne dostosowanie treści, zalecamy ustawienie szerokości nagłówka i stopki w celu dopasowania lub przekroczenia sieci treści strony.", "metaTitleMissingLocales": "Brak tytułu meta dla ustawień regionalnych: {{locales}}", "mile_one": "mila", diff --git a/packages/visual-editor/locales/platform/pt/visual-editor.json b/packages/visual-editor/locales/platform/pt/visual-editor.json index c7cdf414d8..55e85e5ccd 100644 --- a/packages/visual-editor/locales/platform/pt/visual-editor.json +++ b/packages/visual-editor/locales/platform/pt/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Distância", "emptyStateFieldEmpty": "O campo mapeado de {{entityType}} está vazio", "emptyStateSectionHidden": "Seção oculta para este {{entityType}}", - "enableCookies": "Habilitar Cookies", "entityTypeField": "{{entityType}} campo", "event": "Evento", "expandedMenu": "Menu expandido", @@ -520,7 +519,6 @@ "locationWithCount_other": "{{count}} localizações", "logo": "Logotipo", "map": "Mapa", - "mapRequiresOptIn": "Este mapa só pode ser exibido se os cookies estiverem ativados", "maxWidthTip": "Para um alinhamento ideal de conteúdo, recomendamos definir a largura do cabeçalho e do rodapé para corresponder ou exceder a grade de conteúdo da página.", "metaTitleMissingLocales": "O meta título está faltando para locais: {{locales}}", "mile_one": "milha", diff --git a/packages/visual-editor/locales/platform/ro/visual-editor.json b/packages/visual-editor/locales/platform/ro/visual-editor.json index c65d951477..3f469e371f 100644 --- a/packages/visual-editor/locales/platform/ro/visual-editor.json +++ b/packages/visual-editor/locales/platform/ro/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Distanţă", "emptyStateFieldEmpty": "Câmpul mapat al lui {{entityType}} este gol", "emptyStateSectionHidden": "Secțiune ascunsă pentru acest {{entityType}}", - "enableCookies": "Activați cookie-urile", "entityTypeField": "câmp {{entityType}}", "event": "Eveniment", "expandedMenu": "Meniu extins", @@ -520,7 +519,6 @@ "locationWithCount_other": "{{count}} locații", "logo": "Logo", "map": "Hartă", - "mapRequiresOptIn": "Această hartă poate fi afișată numai dacă cookie-urile sunt activate", "maxWidthTip": "Pentru o aliniere optimă a conținutului, vă recomandăm să setați antetul și lățimea subsolului pentru a se potrivi sau a depăși grila de conținut a paginii.", "metaTitleMissingLocales": "Lipsește meta titlul pentru localități: {{locales}}", "mile_one": "milă", diff --git a/packages/visual-editor/locales/platform/sk/visual-editor.json b/packages/visual-editor/locales/platform/sk/visual-editor.json index 2d2536dd7c..14ae687df9 100644 --- a/packages/visual-editor/locales/platform/sk/visual-editor.json +++ b/packages/visual-editor/locales/platform/sk/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Vzdialenosť", "emptyStateFieldEmpty": "Mapované pole {{entityType}} je prázdne", "emptyStateSectionHidden": "Sekcia skrytá pre túto {{entityType}}", - "enableCookies": "Povoliť súbory cookie", "entityTypeField": "{{entityType}} pole", "event": "Udalosť", "expandedMenu": "Rozšírené menu", @@ -524,7 +523,6 @@ "locationWithCount_other": "{{count}} lokality", "logo": "Logo", "map": "Mapa", - "mapRequiresOptIn": "Túto mapu je možné zobraziť iba vtedy, ak sú povolené súbory cookie", "maxWidthTip": "Pre optimálne zarovnanie obsahu odporúčame nastaviť šírku hlavičky a päty tak, aby zodpovedala alebo prekročila mriežku obsahu stránky.", "metaTitleMissingLocales": "Chýba meta názov pre miestne nastavenia: {{locales}}", "mile_one": "míľa", diff --git a/packages/visual-editor/locales/platform/sv/visual-editor.json b/packages/visual-editor/locales/platform/sv/visual-editor.json index c92786c963..2b77f9611a 100644 --- a/packages/visual-editor/locales/platform/sv/visual-editor.json +++ b/packages/visual-editor/locales/platform/sv/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Avstånd", "emptyStateFieldEmpty": "Det mappade fältet för {{entityType}} är tomt", "emptyStateSectionHidden": "Avsnittet är dolt för denna {{entityType}}", - "enableCookies": "Aktivera cookies", "entityTypeField": "{{entityType}} Fältet", "event": "Händelse", "expandedMenu": "Utökad meny", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} Platser", "logo": "Logotyp", "map": "Karta", - "mapRequiresOptIn": "Denna karta kan endast visas om cookies är aktiverade", "maxWidthTip": "För optimal innehållsinriktning rekommenderar vi att du ställer in huvud- och sidfotbredden för att matcha eller överskrida sidinnehållsnätet.", "metaTitleMissingLocales": "Metatitel saknas för lokal(er): {{locales}}", "mile_one": "mil", diff --git a/packages/visual-editor/locales/platform/tr/visual-editor.json b/packages/visual-editor/locales/platform/tr/visual-editor.json index 90100d88a9..74bf99bae6 100644 --- a/packages/visual-editor/locales/platform/tr/visual-editor.json +++ b/packages/visual-editor/locales/platform/tr/visual-editor.json @@ -148,7 +148,6 @@ "distance": "Mesafe", "emptyStateFieldEmpty": "{{entityType}}'ın eşlenen alanı boş", "emptyStateSectionHidden": "Bu {{entityType}} için bölüm gizlendi", - "enableCookies": "Çerezleri Etkinleştir", "entityTypeField": "{{entityType}} alanı", "event": "Etkinlik", "expandedMenu": "Genişletilmiş menü", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} konumlar", "logo": "Logo", "map": "Harita", - "mapRequiresOptIn": "Bu harita yalnızca çerezler etkinse görüntülenebilir", "maxWidthTip": "Optimal içerik hizalaması için, sayfa içerik şebekesini eşleştirecek veya aşacak şekilde üstbilgi ve altbilgi genişliğini ayarlamanızı öneririz.", "metaTitleMissingLocales": "Yerel ayarlar için meta başlığı eksik: {{locales}}", "mile_one": "mil", diff --git a/packages/visual-editor/locales/platform/zh-TW/visual-editor.json b/packages/visual-editor/locales/platform/zh-TW/visual-editor.json index b382cdae48..1d8d63a12b 100644 --- a/packages/visual-editor/locales/platform/zh-TW/visual-editor.json +++ b/packages/visual-editor/locales/platform/zh-TW/visual-editor.json @@ -148,7 +148,6 @@ "distance": "距離", "emptyStateFieldEmpty": "{{entityType}} 的映射字段為空", "emptyStateSectionHidden": "此 {{entityType}} 的部分已隱藏", - "enableCookies": "啟用 Cookie", "entityTypeField": "{{entityType}}字段", "event": "事件", "expandedMenu": "擴展菜單", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} 個位置", "logo": "標識", "map": "地圖", - "mapRequiresOptIn": "該地圖僅在啟用cookies的情況下才能顯示", "maxWidthTip": "對於最佳內容對齊,我們建議將標題和頁腳寬度設置為匹配或超過頁面內容網格。", "metaTitleMissingLocales": "語言環境缺少元標題:{{locales}}", "mile_one": "英里", diff --git a/packages/visual-editor/locales/platform/zh/visual-editor.json b/packages/visual-editor/locales/platform/zh/visual-editor.json index 79da6a401a..b3a520f752 100644 --- a/packages/visual-editor/locales/platform/zh/visual-editor.json +++ b/packages/visual-editor/locales/platform/zh/visual-editor.json @@ -148,7 +148,6 @@ "distance": "距离", "emptyStateFieldEmpty": "{{entityType}} 的映射字段为空", "emptyStateSectionHidden": "此 {{entityType}} 的部分已隐藏", - "enableCookies": "启用 Cookie", "entityTypeField": "{{entityType}}字段", "event": "事件", "expandedMenu": "扩展菜单", @@ -516,7 +515,6 @@ "locationWithCount_other": "{{count}} 个位置", "logo": "标识", "map": "地图", - "mapRequiresOptIn": "该地图仅在启用cookies的情况下才能显示", "maxWidthTip": "对于最佳内容对齐,我们建议将标题和页脚宽度设置为匹配或超过页面内容网格。", "metaTitleMissingLocales": "语言环境缺少元标题:{{locales}}", "mile_one": "英里", diff --git a/packages/visual-editor/package.json b/packages/visual-editor/package.json index 8bab5e4c3f..5b9d3e540a 100644 --- a/packages/visual-editor/package.json +++ b/packages/visual-editor/package.json @@ -53,7 +53,8 @@ "i18n:propagate:components": "pnpm exec tsx scripts/propagatePlatformToComponents.ts", "i18n:check:interpolation": "pnpm exec tsx scripts/checkInterpolationVariables.ts", "i18n:lint": "i18next-cli lint --config i18next-cli.platform.config.ts --quiet && i18next-cli lint --config i18next-cli.components.config.ts --quiet && pnpm run i18n:check:interpolation", - "i18n:update": "pnpm run i18n:extract:platform && pnpm run i18n:extract:components && pnpm run i18n:translate:platform && pnpm run i18n:propagate:components && pnpm run i18n:lint" + "i18n:update": "pnpm run i18n:extract:platform && pnpm run i18n:extract:components && pnpm run i18n:translate:platform && pnpm run i18n:propagate:components && pnpm run i18n:translate:components:component-defaults && pnpm run i18n:lint", + "i18n:translate:components:component-defaults": "pnpm exec tsx scripts/generateTranslations.ts --type components --scope componentDefaults" }, "dependencies": { "@microsoft/api-documenter": "^7.26.29", diff --git a/packages/visual-editor/scripts/generateTranslations.ts b/packages/visual-editor/scripts/generateTranslations.ts index 2bf98164ba..c65b57e03e 100644 --- a/packages/visual-editor/scripts/generateTranslations.ts +++ b/packages/visual-editor/scripts/generateTranslations.ts @@ -4,18 +4,23 @@ import { getSubdirectoryNames, loadJsonSafe, saveJson, + sortObject, type FlatTranslations, unflatten, } from "../src/utils/i18n/jsonUtils.ts"; /** - * Fills missing platform locale values using Google Translate. + * Fills missing locale values using Google Translate. + * + * Supports: + * - Platform translation mode: `--type platform` + * - Scoped component mode: `--type components --scope componentDefaults` * * Behavior: - * - Reads English source strings from locales/platform/en/visual-editor.json. - * - Translates only missing/empty keys in non-English platform locale files. + * - Reads English source strings from `locales//en/visual-editor.json`. + * - Translates only missing/empty keys in non-English locale files. * - Adds contextual hints to ambiguous keys and removes them after translation. - * - Preserves nested object JSON shape on disk. + * - Preserves JSON shape on disk. */ const DEFAULT_LANGUAGE = "en"; const NAMESPACE = "visual-editor"; @@ -28,37 +33,102 @@ const CONTEXT_MARKER_END = "]]"; const PLURAL_SUFFIXES = new Set(["zero", "one", "two", "few", "many", "other"]); const INTERPOLATION_REGEX = /\{\{\s*([^{}]+?)\s*\}\}/g; -type TranslationType = "platform"; +type TranslationType = "platform" | "components"; +type TranslationScope = "componentDefaults"; interface MaskedVariable { token: string; original: string; } -interface TranslationTarget { +type TranslationTarget = { key: string; english: string; sourceKey: string; -} +}; type GoogleTranslationSegment = [translatedText: string, ...rest: unknown[]]; type GoogleTranslateResponse = [GoogleTranslationSegment[], ...rest: unknown[]]; -/** - * Reads and validates the --type argument. - * This script intentionally supports "platform" only. - */ +type TranslationOptions = { + type: TranslationType; + scope?: TranslationScope; +}; + +const getArgValue = (flag: string): string | undefined => { + const index = process.argv.findIndex((arg) => arg === flag); + if (index < 0 || index + 1 >= process.argv.length) { + return undefined; + } + + return process.argv[index + 1]; +}; + const getTypeArg = (): TranslationType => { - const index = process.argv.findIndex((arg) => arg === "--type"); - const raw = index >= 0 ? process.argv[index + 1] : "platform"; + const raw = getArgValue("--type") ?? "platform"; + + if (raw !== "platform" && raw !== "components") { + throw new Error( + `Unsupported --type "${raw}". Supported values are "platform" and "components".` + ); + } + + return raw; +}; + +const getScopeArg = (): TranslationScope | undefined => { + const raw = getArgValue("--scope"); + if (!raw) { + return undefined; + } - if (raw !== "platform") { + if (raw !== "componentDefaults") { throw new Error( - `Unsupported --type "${raw}". This script only supports "--type platform".` + `Unsupported --scope "${raw}". Supported values are "componentDefaults".` ); } - return "platform"; + return raw; +}; + +const getTranslationOptions = (): TranslationOptions => { + const type = getTypeArg(); + const scope = getScopeArg(); + + if (type === "components" && scope !== "componentDefaults") { + throw new Error( + "When --type components is used, --scope componentDefaults is required." + ); + } + + if (type === "platform" && scope) { + throw new Error("--scope is not supported for --type platform."); + } + + return { + type, + scope, + }; +}; + +/** + * Returns a key prefix filter for scoped translation runs. + */ +const getScopePrefix = (scope?: TranslationScope): string | undefined => { + if (scope === "componentDefaults") { + return "componentDefaults."; + } + + return undefined; +}; + +const isKeyInScope = (key: string, scope?: TranslationScope): boolean => { + const scopePrefix = getScopePrefix(scope); + if (!scopePrefix) { + return true; + } + + return key.startsWith(scopePrefix); }; /** @@ -187,7 +257,7 @@ const removeEmbeddedContext = (text: string): string => { }; /** - * Replaces interpolation placeholders with stable sentinel tokens before MT. + * Replaces interpolation placeholders with sentinel tokens before MT. * This reduces the chance providers translate variable names. */ const maskInterpolationVariables = ( @@ -219,9 +289,6 @@ const unmaskInterpolationVariables = ( return output; }; -/** - * Lists locale folders under locales/. - */ const getTargetLanguages = async (type: TranslationType): Promise => { const dir = path.join(LOCALES_DIR, type); const entries = await getSubdirectoryNames(dir, { suppressMissing: true }); @@ -266,9 +333,13 @@ const translateText = async ( }; /** - * Translates missing keys for all non-primary locales of a translation type. + * Translates missing keys for all non-primary locales for a translation mode. + * When `scope` is provided, only keys in that scope are considered. */ -const translateFile = async (type: TranslationType): Promise => { +const translateFile = async ({ + type, + scope, +}: TranslationOptions): Promise => { const defaultPath = path.join( LOCALES_DIR, type, @@ -276,7 +347,9 @@ const translateFile = async (type: TranslationType): Promise => { `${NAMESPACE}.json` ); const defaultJson = flatten(await loadJsonSafe(defaultPath)); - const defaultKeySet = new Set(Object.keys(defaultJson)); + const defaultKeySet = new Set( + Object.keys(defaultJson).filter((key) => isKeyInScope(key, scope)) + ); for (const locale of await getTargetLanguages(type)) { if (locale === DEFAULT_LANGUAGE) { @@ -302,6 +375,10 @@ const translateFile = async (type: TranslationType): Promise => { const translationTargets: TranslationTarget[] = []; for (const key of candidateKeys) { + if (!isKeyInScope(key, scope)) { + continue; + } + const value = cache.get(key.trim()); if (value !== undefined && value !== "") { continue; @@ -320,12 +397,16 @@ const translateFile = async (type: TranslationType): Promise => { } if (translationTargets.length === 0) { - console.log(`No missing translations for [${type}/${locale}].`); + const scopeLabel = scope ? `/${scope}` : ""; + console.log( + `No missing translations for [${type}${scopeLabel}/${locale}].` + ); continue; } + const scopeLabel = scope ? `/${scope}` : ""; console.log( - `Translating ${translationTargets.length} keys for [${type}/${locale}]...` + `Translating ${translationTargets.length} keys for [${type}${scopeLabel}/${locale}]...` ); let successCount = 0; @@ -346,6 +427,7 @@ const translateFile = async (type: TranslationType): Promise => { if (context) { translated = removeEmbeddedContext(translated); } + translated = unmaskInterpolationVariables(translated, variables); cache.set(key.trim(), translated); @@ -360,7 +442,9 @@ const translateFile = async (type: TranslationType): Promise => { }) ); - const finalJson = unflatten(Object.fromEntries(cache) as FlatTranslations); + const finalJson = sortObject( + unflatten(Object.fromEntries(cache) as FlatTranslations) + ); if (!isDryRun) { await saveJson(targetPath, finalJson); } @@ -374,8 +458,8 @@ const translateFile = async (type: TranslationType): Promise => { /** * Script entrypoint. */ -const type = getTypeArg(); -translateFile(type).catch((error) => { +const options = getTranslationOptions(); +translateFile(options).catch((error) => { console.error(error); process.exit(1); }); diff --git a/packages/visual-editor/src/components/Locator.tsx b/packages/visual-editor/src/components/Locator.tsx index cba0553ff8..1699769a36 100644 --- a/packages/visual-editor/src/components/Locator.tsx +++ b/packages/visual-editor/src/components/Locator.tsx @@ -54,6 +54,7 @@ import { toMeters, toMiles, } from "../utils/i18n/distance.ts"; +import { defaultText } from "../utils/defaultContent.ts"; import { msg } from "../utils/i18n/platform.ts"; import { resolveComponentData } from "../utils/resolveComponentData.tsx"; import { @@ -83,7 +84,6 @@ const DEFAULT_MAP_CENTER: [number, number] = [-74.005371, 40.741611]; // New Yor const DEFAULT_RADIUS = 25; const HOURS_FIELD = "builtin.hours"; const INITIAL_LOCATION_KEY = "initialLocation"; -const DEFAULT_TITLE = "Find a Location"; const translateDistanceUnit = ( t: (key: string, options?: Record) => string, @@ -598,10 +598,7 @@ export const LocatorComponent: ComponentConfig<{ props: LocatorProps }> = { showDistanceOptions: false, }, pageHeading: { - title: { - en: DEFAULT_TITLE, - hasLocalizedValue: "true", - }, + title: defaultText("componentDefaults.findALocation", "Find a Location"), }, resultCard: DEFAULT_LOCATOR_RESULT_CARD_PROPS, }, @@ -1166,13 +1163,6 @@ const LocatorInternal = ({ (pageHeading?.title && resolveComponentData(pageHeading.title, i18n.language, streamDocument)) || t("findALocation", "Find a Location"); - - const requireMapOptIn: boolean = streamDocument.__?.visualEditorConfig - ? JSON.parse(streamDocument.__?.visualEditorConfig)?.requireMapOptIn - : false; - // If no opt-in is required, the map is already enabled. - const [mapEnabled, setMapEnabled] = React.useState(!requireMapOptIn); - return (
{/* Left Section: FilterSearch + Results. Full width for small screens */} @@ -1276,31 +1266,7 @@ const LocatorInternal = ({ {/* Right Section: Map. Hidden for small screens */}
- {mapEnabled && } - {!mapEnabled && ( -
-
- - {t( - "mapRequiresOptIn", - "This map can only be displayed if cookies are enabled" - )} - -
- -
-
-
- )} + {showSearchAreaButton && (
+
+
+
+ )} {showSearchAreaButton && (