diff --git a/.gitignore b/.gitignore index 29e189f..ec96334 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules .storybook +build # yarn 3 .pnp.* diff --git a/Makefile b/Makefile index 8629aba..dab21fb 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ help: ## Show this help. # Dev Helpers .PHONY: i18n i18n: ## Sync i18n - ${DOCKER_COMPOSE} run addon-no-backend i18n + ${DOCKER_COMPOSE} run -e ADDON_PATH=$(ADDON_PATH) --entrypoint '/app/i18n.sh' addon-no-backend .PHONY: release release: ## Release package diff --git a/dockerfiles/Dockerfile.dev b/dockerfiles/Dockerfile.dev index 48f0427..2bb3c5a 100644 --- a/dockerfiles/Dockerfile.dev +++ b/dockerfiles/Dockerfile.dev @@ -5,6 +5,9 @@ FROM plone/frontend-dev:${VOLTO_VERSION} ARG ADDON_NAME ARG ADDON_PATH +# Copy i18n helper +COPY --chown=node:node dockerfiles/i18n.sh /app/ + # Copy linter / prettier configs COPY --chown=node:node .eslintignore .prettierignore /app/ diff --git a/dockerfiles/i18n.sh b/dockerfiles/i18n.sh new file mode 100755 index 0000000..94cb6c5 --- /dev/null +++ b/dockerfiles/i18n.sh @@ -0,0 +1,2 @@ +#!/bin/sh +cd "/app/src/addons/${ADDON_PATH}/" && /app/node_modules/.bin/i18n --addon && rm -Rf build || exit diff --git a/locales/LC_MESSAGES/pt_BR/volto.pot b/locales/LC_MESSAGES/pt_BR/volto.pot deleted file mode 100644 index 1b22bc0..0000000 --- a/locales/LC_MESSAGES/pt_BR/volto.pot +++ /dev/null @@ -1,14 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: Plone\n" -"POT-Creation-Date: 2021-01-29T12:34:47.097Z\n" -"Last-Translator: Plone i18n \n" -"Language-Team: Plone i18n \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"Language-Code: en\n" -"Language-Name: English\n" -"Preferred-Encodings: utf-8\n" -"Domain: volto\n" diff --git a/locales/pt_BR/LC_MESSAGES/volto.po b/locales/pt_BR/LC_MESSAGES/volto.po new file mode 100644 index 0000000..ee84dad --- /dev/null +++ b/locales/pt_BR/LC_MESSAGES/volto.po @@ -0,0 +1,48 @@ +msgid "" +msgstr "" +"Project-Id-Version: Plone\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-01-29T12:34:47.097Z\n" +"PO-Revision-Date: \n" +"Last-Translator: Plone i18n \n" +"Language: \n" +"Language-Team: Plone i18n \n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"MIME-Version: 1.0\n" +"Language-Code: en\n" +"Language-Name: English\n" +"Preferred-Encodings: utf-8\n" +"Domain: volto\n" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Align +msgid "Align" +msgstr "Alinhamento" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Animate Icon +msgid "Animate Icon" +msgstr "Animar o ícone" + +#: components/Blocks/FollowUs/Data +#: components/Blocks/FollowUs/schema +# defaultMessage: Follow Us +msgid "Follow Us Block" +msgstr "Bloco Siga-nos" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Headline +msgid "Headline" +msgstr "Chamada" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Network +msgid "Network" +msgstr "Rede" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Networks +msgid "Networks" +msgstr "Redes" diff --git a/locales/volto.pot b/locales/volto.pot index 1b22bc0..2b0d9f9 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2021-01-29T12:34:47.097Z\n" +"POT-Creation-Date: 2023-08-04T18:02:39.658Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -12,3 +12,34 @@ msgstr "" "Language-Name: English\n" "Preferred-Encodings: utf-8\n" "Domain: volto\n" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Align +msgid "Align" +msgstr "" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Animate Icon +msgid "Animate Icon" +msgstr "" + +#: components/Blocks/FollowUs/Data +#: components/Blocks/FollowUs/schema +# defaultMessage: Follow Us +msgid "Follow Us Block" +msgstr "" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Headline +msgid "Headline" +msgstr "" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Network +msgid "Network" +msgstr "" + +#: components/Blocks/FollowUs/schema +# defaultMessage: Networks +msgid "Networks" +msgstr "" diff --git a/news/5.feature b/news/5.feature new file mode 100644 index 0000000..a391389 --- /dev/null +++ b/news/5.feature @@ -0,0 +1 @@ +Update pt_BR translation [@ericof]