Skip to content

Commit

Permalink
Merge pull request #25 from codesyntax/i18n
Browse files Browse the repository at this point in the history
add i18n message generation
  • Loading branch information
ionlizarazu authored Jan 10, 2022
2 parents b3d6c22 + aaed963 commit bdd595f
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 2 deletions.
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,
};
};
79 changes: 79 additions & 0 deletions locales/volto.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2022-01-09T14:36:21.056Z\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"
"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"

#: messages
# defaultMessage: Columns configuration
msgid "Columns configuration"
msgstr ""

#: messages
# defaultMessage: Default HTML tag will be H3
msgid "Default HTML tag will be H3"
msgstr ""

#: messages
# defaultMessage: Default image width will be 2/12
msgid "Default image width will be 2/12"
msgstr ""

#: messages
# defaultMessage: Default with no image
msgid "Default with no image"
msgstr ""

#: messages
# defaultMessage: How many columns:
msgid "How many columns:"
msgstr ""

#: messages
# defaultMessage: Image position/size
msgid "Image position/size"
msgstr ""

#: messages
# defaultMessage: Image position:
msgid "Image position:"
msgstr ""

#: messages
# defaultMessage: Image width (x/12):
msgid "Image width (x/12):"
msgstr ""

#: messages
# defaultMessage: Query
msgid "Query"
msgstr ""

#: messages
# defaultMessage: Show effectiveDate
msgid "Show effectiveDate"
msgstr ""

#: messages
# defaultMessage: Title configuration
msgid "Title configuration"
msgstr ""

#: messages
# defaultMessage: Title text HTML tag
msgid "Title text HTML tag"
msgstr ""

#: messages
# defaultMessage: effectiveDate
msgid "effectiveDate"
msgstr ""
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
"react"
],
"scripts": {
"release": "release-it"
"release": "release-it",
"i18n": "rm -rf build/messages && NODE_ENV=production i18n --addon"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/codesyntax/volto-listingadvanced-variation.git"
},
"dependencies": {
"release-it": "^14.11.6"
"release-it": "^14.11.6",
"@plone/scripts": "*"
},
"bugs": {
"url": "https://github.com/codesyntax/volto-listingadvanced-variation/issues"
Expand Down

0 comments on commit bdd595f

Please sign in to comment.