Skip to content
Snippets Groups Projects
Commit ee0661a8 authored by Erick Hitter's avatar Erick Hitter
Browse files

Correct support for JS translations

Fixes #23
parent 5d484b84
Branches
Tags
1 merge request!21Correct support for JS translations
Pipeline #4881 passed
This commit is part of merge request !21. Comments created here will be created in the context of that merge request.
......@@ -35,6 +35,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
## Changelog ##
### 1.4.3 ###
* Fix translations in block editor.
### 1.4.2 ###
* Fix notice appearing on Widgets Block Editor.
......@@ -61,6 +64,10 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
## Upgrade Notice ##
### 1.4.3 ###
Fixes translations in block editor.
### 1.4.2 ###
Fixes notice appearing on Widgets Block Editor.
......
......@@ -175,5 +175,11 @@ class Block_Editor {
'metaKey' => WP_REVISIONS_CONTROL_LIMIT_META_KEY,
)
);
wp_set_script_translations(
$handle,
'wp-revisions-control',
dirname( __DIR__ ) . '/languages'
);
}
}
......@@ -2,10 +2,10 @@
# This file is distributed under the same license as the WP Revisions Control package.
msgid ""
msgstr ""
"Project-Id-Version: WP Revisions Control 1.4.2\n"
"Project-Id-Version: WP Revisions Control 1.4.3\n"
"Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/wp-revisions-control\n"
"POT-Creation-Date: 2022-06-11 19:34:09+00:00\n"
"POT-Creation-Date: 2022-06-25 15:40:24+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
......
......@@ -24,7 +24,7 @@
"packages-update": "wp-scripts packages-update",
"plugin-zip": "wp-scripts plugin-zip",
"start": "wp-scripts start",
"test": "npm run test:e2e && npm run test:unit"
"test": "npm run test:e2e && npm run test:unit",
"test:e2e": "wp-scripts test-e2e --passWithNoTests",
"test:unit": "wp-scripts test-unit-js --passWithNoTests"
}
......
......@@ -35,6 +35,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
== Changelog ==
= 1.4.3 =
* Fix translations in block editor.
= 1.4.2 =
* Fix notice appearing on Widgets Block Editor.
......@@ -61,6 +64,10 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
== Upgrade Notice ==
= 1.4.3 =
Fixes translations in block editor.
= 1.4.2 =
Fixes notice appearing on Widgets Block Editor.
......
......@@ -4,7 +4,7 @@
* Plugin URI: https://ethitter.com/plugins/wp-revisions-control/
* Description: Control how many revisions are stored for each post type
* Author: Erick Hitter
* Version: 1.4.2
* Version: 1.4.3
* Author URI: https://ethitter.com/
* Text Domain: wp-revisions-control
* Domain Path: /languages/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment