Skip to content

Commit

Permalink
chore: Update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Nov 17, 2023
1 parent 62e5192 commit caaab13
Show file tree
Hide file tree
Showing 10 changed files with 142 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ install: ## Install the local environment, Cypress, build acceptance containers
# Dev Helpers
.PHONY: i18n
i18n: ## Sync i18n
@echo "$(YELLOW)==> Do not forget to setup the local environment (make install) $(RESET)"
yarn i18n
${DEV_COMPOSE} run --rm -e ADDON_PATH=$(ADDON_PATH) --entrypoint '/app/i18n.sh' addon-dev

.PHONY: format
format: ## Format codebase
Expand Down
17 changes: 17 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = function (api) {
api.cache(true);
const presets = ['razzle/babel'];
const plugins = [
[
'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
{
messagesDir: './build/messages/',
},
],
];

return {
plugins,
presets,
};
};
3 changes: 3 additions & 0 deletions dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down
2 changes: 2 additions & 0 deletions dockerfiles/i18n.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
cd "/app/src/addons/${ADDON_PATH}/" && /app/node_modules/.bin/i18n --addon && rm -Rf build || exit
21 changes: 21 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,54 @@ msgstr ""
"Domain: volto\n"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authenticating
msgid "Authenticating"
msgstr ""

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authentication failed.
msgid "Authentication failed."
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Loading
msgid "Loading"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Log In"
msgstr ""

#: components/AuthProvider/AuthProvider
# defaultMessage: Log in with
msgid "Log in with"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Login"
msgstr ""

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Login Failed
msgid "Login Failed"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Select Login Provider
msgid "Select Login Provider"
msgstr ""

#: components/AuthProvider/AuthProvider
# defaultMessage: Sign up with
msgid "Sign up with"
msgstr ""

#: components/Logout/Logout
# defaultMessage: You have been logged out
msgid "You have been logged out"
msgstr ""
21 changes: 21 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,54 @@ msgstr ""
"Domain: volto\n"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authenticating
msgid "Authenticating"
msgstr ""

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authentication failed.
msgid "Authentication failed."
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Loading
msgid "Loading"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Log In"
msgstr ""

#: components/AuthProvider/AuthProvider
# defaultMessage: Log in with
msgid "Log in with"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Login"
msgstr ""

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Login Failed
msgid "Login Failed"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Select Login Provider
msgid "Select Login Provider"
msgstr ""

#: components/AuthProvider/AuthProvider
# defaultMessage: Sign up with
msgid "Sign up with"
msgstr ""

#: components/Logout/Logout
# defaultMessage: You have been logged out
msgid "You have been logged out"
msgstr ""
21 changes: 21 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,54 @@ msgstr ""
"X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authenticating
msgid "Authenticating"
msgstr "Autenticando"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authentication failed.
msgid "Authentication failed."
msgstr "Autenticación fallida."

#: components/Login/LoginForm
# defaultMessage: Loading
msgid "Loading"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Log In"
msgstr "Inicio de Sesión"

#: components/AuthProvider/AuthProvider
# defaultMessage: Log in with
msgid "Log in with"
msgstr "Inicio de sesión con"

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Login"
msgstr "Inicio de sesión"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Login Failed
msgid "Login Failed"
msgstr "Inicio de Sesión fallo"

#: components/Login/LoginForm
# defaultMessage: Select Login Provider
msgid "Select Login Provider"
msgstr "Seleccionar proveedor de inicio de sesión"

#: components/AuthProvider/AuthProvider
# defaultMessage: Sign up with
msgid "Sign up with"
msgstr "Regístrate con"

#: components/Logout/Logout
# defaultMessage: You have been logged out
msgid "You have been logged out"
msgstr ""
21 changes: 21 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,54 @@ msgstr ""
"Domain: volto\n"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authenticating
msgid "Authenticating"
msgstr ""

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authentication failed.
msgid "Authentication failed."
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Loading
msgid "Loading"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Log In"
msgstr ""

#: components/AuthProvider/AuthProvider
# defaultMessage: Log in with
msgid "Log in with"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Login"
msgstr ""

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Login Failed
msgid "Login Failed"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Select Login Provider
msgid "Select Login Provider"
msgstr ""

#: components/AuthProvider/AuthProvider
# defaultMessage: Sign up with
msgid "Sign up with"
msgstr ""

#: components/Logout/Logout
# defaultMessage: You have been logged out
msgid "You have been logged out"
msgstr ""
21 changes: 21 additions & 0 deletions locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,54 @@ msgstr ""
"Domain: volto\n"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authenticating
msgid "Authenticating"
msgstr "Autenticando"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authentication failed.
msgid "Authentication failed."
msgstr "Falha na autenticaćão."

#: components/Login/LoginForm
# defaultMessage: Loading
msgid "Loading"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Log In"
msgstr "Entrar"

#: components/AuthProvider/AuthProvider
# defaultMessage: Log in with
msgid "Log in with"
msgstr "Entrar com"

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Login"
msgstr "Acessar"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Login Failed
msgid "Login Failed"
msgstr "Falha no acesso"

#: components/Login/LoginForm
# defaultMessage: Select Login Provider
msgid "Select Login Provider"
msgstr "Escolha o provedor de autenticaćão"

#: components/AuthProvider/AuthProvider
# defaultMessage: Sign up with
msgid "Sign up with"
msgstr "Cadastrar usando"

#: components/Logout/Logout
# defaultMessage: You have been logged out
msgid "You have been logged out"
msgstr ""
15 changes: 14 additions & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2022-07-18T19:46:58.284Z\n"
"POT-Creation-Date: 2023-11-17T22:25:53.666Z\n"
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
Expand All @@ -14,15 +14,22 @@ msgstr ""
"Domain: volto\n"

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authenticating
msgid "Authenticating"
msgstr ""

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Authentication failed.
msgid "Authentication failed."
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Loading
msgid "Loading"
msgstr ""

#: components/Login/LoginForm
# defaultMessage: Login
msgid "Log In"
Expand All @@ -39,6 +46,7 @@ msgid "Login"
msgstr ""

#: components/LoginAuthomatic/LoginAuthomatic
#: components/LoginOIDC/LoginOIDC
# defaultMessage: Login Failed
msgid "Login Failed"
msgstr ""
Expand All @@ -52,3 +60,8 @@ msgstr ""
# defaultMessage: Sign up with
msgid "Sign up with"
msgstr ""

#: components/Logout/Logout
# defaultMessage: You have been logged out
msgid "You have been logged out"
msgstr ""

0 comments on commit caaab13

Please sign in to comment.