added translation files

This commit is contained in:
Nikita 2024-11-27 20:59:21 +03:00
parent d979637134
commit 9546fe357c
6 changed files with 1745 additions and 54 deletions

View file

@ -3,6 +3,7 @@
"wp-coding-standards/wpcs": "^2.3", "wp-coding-standards/wpcs": "^2.3",
"sirbrillig/phpcs-variable-analysis": "^2.8", "sirbrillig/phpcs-variable-analysis": "^2.8",
"phpcompatibility/phpcompatibility-wp": "^2.1", "phpcompatibility/phpcompatibility-wp": "^2.1",
"wp-cli/i18n-command": "^2.4",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7", "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"php-stubs/wordpress-stubs": "^6.1" "php-stubs/wordpress-stubs": "^6.1"
}, },

927
composer.lock generated

File diff suppressed because it is too large Load diff

322
languages/mind.json Normal file
View file

@ -0,0 +1,322 @@
{
"domain": "mind",
"locale_data": {
"mind": {
"": {
"domain": "mind"
},
"AI Mind": [
""
],
"Content Assistant Plugin based on OpenAI. Write, improve, rewrite, rephrase, change the tone of your blog posts, and more.": [
""
],
"Mind Team": [
""
],
"https://www.wp-mind.com/": [
""
],
"Mind": [
""
],
"Welcome": [
""
],
"Settings": [
""
],
"Discussions": [
""
],
"User don't have permissions to change options.": [
""
],
"You don't have permissions to request Mind API.": [
""
],
"Provide OpenAI key in the plugin settings.": [
""
],
"Provide request to receive AI response.": [
""
],
"OpenAI data failed to load.": [
""
],
"OpenAI API Key": [
""
],
"This setting is required, since our plugin works with OpenAI.": [
""
],
"Create API key": [
""
],
"Enter API key": [
""
],
"Please enter a valid API key": [
""
],
"Save Changes": [
""
],
"Hello, my name is %s": [
""
],
"I am an AI assistant designed to help you in writing content for your blog": [
""
],
"To get started, <em>open the page editor</em> and click on the <em>\"Open Mind\"</em> button in the toolbar": [
""
],
"To get started, enter your": [
""
],
"OpenAI API key →": [
""
],
"Something went wrong, please, try again…": [
""
],
"professional": [
""
],
"🧐 Professional": [
""
],
"friendly": [
""
],
"😀 Friendly": [
""
],
"straightforward": [
""
],
"🙂 Straightforward": [
""
],
"educational": [
""
],
"🎓 Educational": [
""
],
"confident": [
""
],
"😎 Confident": [
""
],
"witty": [
""
],
"🤣 Witty": [
""
],
"heartfelt": [
""
],
"🤗 Heartfelt": [
""
],
"chinese": [
""
],
"🇨🇳 Chinese": [
""
],
"dutch": [
""
],
"🇳🇱 Dutch": [
""
],
"english": [
""
],
"🇺🇸 English": [
""
],
"filipino": [
""
],
"🇵🇭 Filipino": [
""
],
"french": [
""
],
"🇫🇷 French": [
""
],
"german": [
""
],
"🇩🇪 German": [
""
],
"indonesian": [
""
],
"🇮🇩 Indonesian": [
""
],
"italian": [
""
],
"🇮🇹 Italian": [
""
],
"japanese": [
""
],
"🇯🇵 Japanese": [
""
],
"korean": [
""
],
"🇰🇷 Korean": [
""
],
"portuguese": [
""
],
"🇵🇹 Portuguese": [
""
],
"russian": [
""
],
"🇷🇺 Russian": [
""
],
"spanish": [
""
],
"🇪🇸 Spanish": [
""
],
"vietnamese": [
""
],
"🇻🇳 Vietnamese": [
""
],
"Improve writing language": [
""
],
"Improve": [
""
],
"Fix spelling and grammar": [
""
],
"Fix Spelling & Grammar": [
""
],
"Make shorter": [
""
],
"Make Shorter": [
""
],
"Make longer": [
""
],
"Make Longer": [
""
],
"Summarize": [
""
],
"Paraphrase": [
""
],
"Adjust Tone": [
""
],
"Change tone to %s": [
""
],
"Translate": [
""
],
"Translate to %s": [
""
],
"Post Presets": [
""
],
"Post title about…": [
""
],
"Write a post title about ": [
""
],
"Post about…": [
""
],
"Write a blog post about ": [
""
],
"Outline about…": [
""
],
"Write a blog post outline about ": [
""
],
"Content Presets": [
""
],
"Paragraph about…": [
""
],
"Create a paragraph about ": [
""
],
"List about…": [
""
],
"Create a list about ": [
""
],
"Table about…": [
""
],
"Create a table about ": [
""
],
"Waiting for AI response": [
""
],
"Get Answer": [
""
],
"Regenerate": [
""
],
"Copy": [
""
],
"Insert": [
""
],
"Ask AI to write anything…": [
""
],
"OpenAI Key": [
""
],
"In order to use Mind, you will need to provide your OpenAI API key. Please insert your API key in the plugin settings to get started.": [
""
],
"Go to Settings": [
""
]
}
}
}

447
languages/mind.pot Normal file
View file

@ -0,0 +1,447 @@
# Copyright (C) 2024 Mind Team
# This file is distributed under the GPLv2 or later.
msgid ""
msgstr ""
"Project-Id-Version: AI Mind 0.1.1\n"
"Report-Msgid-Bugs-To: https://github.com/nk-crew/mind/issues\n"
"Last-Translator: Lazy Blocks Team\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-11-27T17:58:33+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: mind\n"
#. Plugin Name of the plugin
#: mind.php
msgid "AI Mind"
msgstr ""
#. Description of the plugin
#: mind.php
msgid "Content Assistant Plugin based on OpenAI. Write, improve, rewrite, rephrase, change the tone of your blog posts, and more."
msgstr ""
#. Author of the plugin
#: mind.php
msgid "Mind Team"
msgstr ""
#. Author URI of the plugin
#: mind.php
msgid "https://www.wp-mind.com/"
msgstr ""
#: classes/class-admin.php:59
#: classes/class-admin.php:60
#: mind.php:87
#: src/admin/index.js:121
msgid "Mind"
msgstr ""
#: classes/class-admin.php:72
#: src/admin/pages/index.js:14
msgid "Welcome"
msgstr ""
#: classes/class-admin.php:79
#: src/admin/pages/index.js:18
msgid "Settings"
msgstr ""
#: classes/class-admin.php:86
#: src/admin/pages/index.js:22
msgid "Discussions"
msgstr ""
#: classes/class-rest.php:73
msgid "User don't have permissions to change options."
msgstr ""
#: classes/class-rest.php:86
msgid "You don't have permissions to request Mind API."
msgstr ""
#: classes/class-rest.php:125
msgid "Provide OpenAI key in the plugin settings."
msgstr ""
#: classes/class-rest.php:129
msgid "Provide request to receive AI response."
msgstr ""
#: classes/class-rest.php:226
msgid "OpenAI data failed to load."
msgstr ""
#: src/admin/page-settings/index.js:58
msgid "OpenAI API Key"
msgstr ""
#: src/admin/page-settings/index.js:61
msgid "This setting is required, since our plugin works with OpenAI."
msgstr ""
#: src/admin/page-settings/index.js:70
msgid "Create API key"
msgstr ""
#: src/admin/page-settings/index.js:84
msgid "Enter API key"
msgstr ""
#: src/admin/page-settings/index.js:96
msgid "Please enter a valid API key"
msgstr ""
#: src/admin/page-settings/index.js:119
msgid "Save Changes"
msgstr ""
#. translators: %s - Mind logo.
#: src/admin/page-welcome/index.js:34
msgid "Hello, my name is %s"
msgstr ""
#: src/admin/page-welcome/index.js:40
msgid "I am an AI assistant designed to help you in writing content for your blog"
msgstr ""
#: src/admin/page-welcome/index.js:48
msgid "To get started, <em>open the page editor</em> and click on the <em>\"Open Mind\"</em> button in the toolbar"
msgstr ""
#: src/admin/page-welcome/index.js:56
msgid "To get started, enter your"
msgstr ""
#: src/admin/page-welcome/index.js:63
msgid "OpenAI API key →"
msgstr ""
#: src/admin/store/settings/actions.js:35
#: src/editor/store/popup/actions.js:119
msgid "Something went wrong, please, try again…"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:40
msgid "professional"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:40
msgid "🧐 Professional"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:41
msgid "friendly"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:41
msgid "😀 Friendly"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:42
msgid "straightforward"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:42
msgid "🙂 Straightforward"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:43
msgid "educational"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:43
msgid "🎓 Educational"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:44
msgid "confident"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:44
msgid "😎 Confident"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:45
msgid "witty"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:45
msgid "🤣 Witty"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:46
msgid "heartfelt"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:46
msgid "🤗 Heartfelt"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:50
msgid "chinese"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:50
msgid "🇨🇳 Chinese"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:51
msgid "dutch"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:51
msgid "🇳🇱 Dutch"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:52
msgid "english"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:52
msgid "🇺🇸 English"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:53
msgid "filipino"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:53
msgid "🇵🇭 Filipino"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:54
msgid "french"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:54
msgid "🇫🇷 French"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:55
msgid "german"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:55
msgid "🇩🇪 German"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:56
msgid "indonesian"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:56
msgid "🇮🇩 Indonesian"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:57
msgid "italian"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:57
msgid "🇮🇹 Italian"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:58
msgid "japanese"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:58
msgid "🇯🇵 Japanese"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:59
msgid "korean"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:59
msgid "🇰🇷 Korean"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:60
msgid "portuguese"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:60
msgid "🇵🇹 Portuguese"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:61
msgid "russian"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:61
msgid "🇷🇺 Russian"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:62
msgid "spanish"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:62
msgid "🇪🇸 Spanish"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:63
msgid "vietnamese"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:63
msgid "🇻🇳 Vietnamese"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:105
msgid "Improve writing language"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:112
msgid "Improve"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:119
msgid "Fix spelling and grammar"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:126
msgid "Fix Spelling & Grammar"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:132
msgid "Make shorter"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:135
msgid "Make Shorter"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:141
msgid "Make longer"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:144
msgid "Make Longer"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:150
#: src/editor/extensions/block-toolbar/index.js:153
msgid "Summarize"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:159
#: src/editor/extensions/block-toolbar/index.js:162
msgid "Paraphrase"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:172
msgid "Adjust Tone"
msgstr ""
#. translators: %s - tone.
#: src/editor/extensions/block-toolbar/index.js:199
msgid "Change tone to %s"
msgstr ""
#: src/editor/extensions/block-toolbar/index.js:226
msgid "Translate"
msgstr ""
#. translators: %s - tone.
#: src/editor/extensions/block-toolbar/index.js:253
msgid "Translate to %s"
msgstr ""
#: src/editor/popup/components/content/index.js:26
msgid "Post Presets"
msgstr ""
#: src/editor/popup/components/content/index.js:30
msgid "Post title about…"
msgstr ""
#: src/editor/popup/components/content/index.js:31
msgid "Write a post title about "
msgstr ""
#: src/editor/popup/components/content/index.js:36
msgid "Post about…"
msgstr ""
#: src/editor/popup/components/content/index.js:37
msgid "Write a blog post about "
msgstr ""
#: src/editor/popup/components/content/index.js:42
msgid "Outline about…"
msgstr ""
#: src/editor/popup/components/content/index.js:43
msgid "Write a blog post outline about "
msgstr ""
#: src/editor/popup/components/content/index.js:49
msgid "Content Presets"
msgstr ""
#: src/editor/popup/components/content/index.js:53
msgid "Paragraph about…"
msgstr ""
#: src/editor/popup/components/content/index.js:54
msgid "Create a paragraph about "
msgstr ""
#: src/editor/popup/components/content/index.js:59
msgid "List about…"
msgstr ""
#: src/editor/popup/components/content/index.js:60
msgid "Create a list about "
msgstr ""
#: src/editor/popup/components/content/index.js:65
msgid "Table about…"
msgstr ""
#: src/editor/popup/components/content/index.js:66
msgid "Create a table about "
msgstr ""
#: src/editor/popup/components/content/index.js:161
msgid "Waiting for AI response"
msgstr ""
#: src/editor/popup/components/footer/index.js:43
msgid "Get Answer"
msgstr ""
#: src/editor/popup/components/footer/index.js:54
msgid "Regenerate"
msgstr ""
#: src/editor/popup/components/footer/index.js:65
msgid "Copy"
msgstr ""
#: src/editor/popup/components/footer/index.js:68
msgid "Insert"
msgstr ""
#: src/editor/popup/components/input/index.js:107
msgid "Ask AI to write anything…"
msgstr ""
#: src/editor/popup/components/not-connected-screen/index.js:30
msgid "OpenAI Key"
msgstr ""
#: src/editor/popup/components/not-connected-screen/index.js:34
msgid "In order to use Mind, you will need to provide your OpenAI API key. Please insert your API key in the plugin settings to get started."
msgstr ""
#: src/editor/popup/components/not-connected-screen/index.js:45
msgid "Go to Settings"
msgstr ""

97
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "mind", "name": "mind",
"version": "0.1.0", "version": "0.1.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mind", "name": "mind",
"version": "0.1.0", "version": "0.1.1",
"license": "GPL-2.0-or-later", "license": "GPL-2.0-or-later",
"dependencies": { "dependencies": {
"clsx": "^2.0.0", "clsx": "^2.0.0",
@ -18,6 +18,7 @@
"@wordpress/prettier-config": "^3.2.0", "@wordpress/prettier-config": "^3.2.0",
"@wordpress/scripts": "^26.16.0", "@wordpress/scripts": "^26.16.0",
"@wordpress/stylelint-config": "^21.28.0", "@wordpress/stylelint-config": "^21.28.0",
"po2json": "^0.4.5",
"prettier": "^3.1.0" "prettier": "^3.1.0"
} }
}, },
@ -6044,9 +6045,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001562", "version": "1.0.30001684",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001562.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001684.tgz",
"integrity": "sha512-kfte3Hym//51EdX4239i+Rmp20EsLIYGdPkERegTgU19hQWCRhsRFGKHTliUlsry53tv17K7n077Kqa0WJU4ng==", "integrity": "sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@ -9897,6 +9898,15 @@
"url": "https://github.com/sponsors/ljharb" "url": "https://github.com/sponsors/ljharb"
} }
}, },
"node_modules/has-color": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz",
"integrity": "sha512-kaNz5OTAYYmt646Hkqw50/qyxP2vFnTVu5AQ1Zmk22Kk5+4Qx6BpO8+u7IKsML5fOsFk0ZT0AcCJNYwcvaLBvw==",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/has-flag": { "node_modules/has-flag": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
@ -13076,6 +13086,52 @@
"integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==",
"dev": true "dev": true
}, },
"node_modules/nomnom": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.8.1.tgz",
"integrity": "sha512-5s0JxqhDx9/rksG2BTMVN1enjWSvPidpoSgViZU4ZXULyTe+7jxcCRLB6f42Z0l1xYJpleCBtSyY6Lwg3uu5CQ==",
"deprecated": "Package no longer supported. Contact support@npmjs.com for more info.",
"dev": true,
"dependencies": {
"chalk": "~0.4.0",
"underscore": "~1.6.0"
}
},
"node_modules/nomnom/node_modules/ansi-styles": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.0.0.tgz",
"integrity": "sha512-3iF4FIKdxaVYT3JqQuY3Wat/T2t7TRbbQ94Fu50ZUCbLy4TFbTzr90NOHQodQkNqmeEGCw8WbeP78WNi6SKYUA==",
"dev": true,
"engines": {
"node": ">=0.8.0"
}
},
"node_modules/nomnom/node_modules/chalk": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz",
"integrity": "sha512-sQfYDlfv2DGVtjdoQqxS0cEZDroyG8h6TamA6rvxwlrU5BaSLDx9xhatBYl2pxZ7gmpNaPFVwBtdGdu5rQ+tYQ==",
"dev": true,
"dependencies": {
"ansi-styles": "~1.0.0",
"has-color": "~0.1.0",
"strip-ansi": "~0.1.0"
},
"engines": {
"node": ">=0.8.0"
}
},
"node_modules/nomnom/node_modules/strip-ansi": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.1.1.tgz",
"integrity": "sha512-behete+3uqxecWlDAm5lmskaSaISA+ThQ4oNNBDTBJt0x2ppR6IPqfZNuj6BLaLJ/Sji4TPZlcRyOis8wXQTLg==",
"dev": true,
"bin": {
"strip-ansi": "cli.js"
},
"engines": {
"node": ">=0.8.0"
}
},
"node_modules/normalize-package-data": { "node_modules/normalize-package-data": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz",
@ -14030,6 +14086,31 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/po2json": {
"version": "0.4.5",
"resolved": "https://registry.npmjs.org/po2json/-/po2json-0.4.5.tgz",
"integrity": "sha512-JH0hgi1fC0t9UvdiyS7kcVly0N1WNey4R2YZ/jPaxQKYm6Cfej7ZTgiEy8LP2JwoEhONceiNS8JH5mWPQkiXeA==",
"dev": true,
"dependencies": {
"gettext-parser": "1.1.0",
"nomnom": "1.8.1"
},
"bin": {
"po2json": "bin/po2json"
},
"engines": {
"node": ">= 0.8.0"
}
},
"node_modules/po2json/node_modules/gettext-parser": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/gettext-parser/-/gettext-parser-1.1.0.tgz",
"integrity": "sha512-zL3eayB0jF+cr6vogH/VJKoKcj7uQj2TPByaaj6a4k/3elk9iq7fiwCM2FqdzS/umo021RetSanVisarzeb9Wg==",
"dev": true,
"dependencies": {
"encoding": "^0.1.11"
}
},
"node_modules/postcss": { "node_modules/postcss": {
"version": "8.4.31", "version": "8.4.31",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
@ -17354,6 +17435,12 @@
"through": "^2.3.8" "through": "^2.3.8"
} }
}, },
"node_modules/underscore": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz",
"integrity": "sha512-z4o1fvKUojIWh9XuaVLUDdf86RQiq13AC1dmHbTpoyuu+bquHms76v16CjycCbec87J7z0k//SiQVk0sMdFmpQ==",
"dev": true
},
"node_modules/unicode-canonical-property-names-ecmascript": { "node_modules/unicode-canonical-property-names-ecmascript": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz",

View file

@ -14,10 +14,12 @@
"scripts": { "scripts": {
"dev": "wp-scripts start --hot --progress", "dev": "wp-scripts start --hot --progress",
"build": "wp-scripts build --progress", "build": "wp-scripts build --progress",
"build:prod": "npm run build && npm run plugin-zip", "build:prod": "npm run make-pot && npm run make-json && npm run build && npm run plugin-zip",
"lint:css": "wp-scripts lint-style", "lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js", "lint:js": "wp-scripts lint-js",
"lint:php": "composer run phpcs", "lint:php": "composer run phpcs",
"make-pot": "composer wp -- i18n make-pot ./ ./languages/mind.pot --skip-audit --exclude=vendor,vendors,tests,node_modules,build,dist-zip --headers='{\"Last-Translator\":\"Lazy Blocks Team\",\"Report-Msgid-Bugs-To\":\"https://github.com/nk-crew/mind/issues\"}'",
"make-json": "po2json ./languages/mind.pot ./languages/mind.json --format=jed1.x --pretty --domain=mind",
"packages-update": "wp-scripts packages-update", "packages-update": "wp-scripts packages-update",
"plugin-zip": "wp-scripts plugin-zip" "plugin-zip": "wp-scripts plugin-zip"
}, },
@ -26,6 +28,7 @@
"@wordpress/prettier-config": "^3.2.0", "@wordpress/prettier-config": "^3.2.0",
"@wordpress/scripts": "^26.16.0", "@wordpress/scripts": "^26.16.0",
"@wordpress/stylelint-config": "^21.28.0", "@wordpress/stylelint-config": "^21.28.0",
"po2json": "^0.4.5",
"prettier": "^3.1.0" "prettier": "^3.1.0"
}, },
"dependencies": { "dependencies": {