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
No related branches found
No related tags found
1 merge request!21Correct support for JS translations
Pipeline #4881 passed
...@@ -35,6 +35,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the ...@@ -35,6 +35,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
## Changelog ## ## Changelog ##
### 1.4.3 ###
* Fix translations in block editor.
### 1.4.2 ### ### 1.4.2 ###
* Fix notice appearing on Widgets Block Editor. * Fix notice appearing on Widgets Block Editor.
...@@ -61,6 +64,10 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the ...@@ -61,6 +64,10 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
## Upgrade Notice ## ## Upgrade Notice ##
### 1.4.3 ###
Fixes translations in block editor.
### 1.4.2 ### ### 1.4.2 ###
Fixes notice appearing on Widgets Block Editor. Fixes notice appearing on Widgets Block Editor.
......
...@@ -175,5 +175,11 @@ class Block_Editor { ...@@ -175,5 +175,11 @@ class Block_Editor {
'metaKey' => WP_REVISIONS_CONTROL_LIMIT_META_KEY, 'metaKey' => WP_REVISIONS_CONTROL_LIMIT_META_KEY,
) )
); );
wp_set_script_translations(
$handle,
'wp-revisions-control',
dirname( __DIR__ ) . '/languages'
);
} }
} }
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
# This file is distributed under the same license as the WP Revisions Control package. # This file is distributed under the same license as the WP Revisions Control package.
msgid "" msgid ""
msgstr "" 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: " "Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/wp-revisions-control\n" "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" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"packages-update": "wp-scripts packages-update", "packages-update": "wp-scripts packages-update",
"plugin-zip": "wp-scripts plugin-zip", "plugin-zip": "wp-scripts plugin-zip",
"start": "wp-scripts start", "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:e2e": "wp-scripts test-e2e --passWithNoTests",
"test:unit": "wp-scripts test-unit-js --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 ...@@ -35,6 +35,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
== Changelog == == Changelog ==
= 1.4.3 =
* Fix translations in block editor.
= 1.4.2 = = 1.4.2 =
* Fix notice appearing on Widgets Block Editor. * Fix notice appearing on Widgets Block Editor.
...@@ -61,6 +64,10 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the ...@@ -61,6 +64,10 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the
== Upgrade Notice == == Upgrade Notice ==
= 1.4.3 =
Fixes translations in block editor.
= 1.4.2 = = 1.4.2 =
Fixes notice appearing on Widgets Block Editor. Fixes notice appearing on Widgets Block Editor.
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Plugin URI: https://ethitter.com/plugins/wp-revisions-control/ * Plugin URI: https://ethitter.com/plugins/wp-revisions-control/
* Description: Control how many revisions are stored for each post type * Description: Control how many revisions are stored for each post type
* Author: Erick Hitter * Author: Erick Hitter
* Version: 1.4.2 * Version: 1.4.3
* Author URI: https://ethitter.com/ * Author URI: https://ethitter.com/
* Text Domain: wp-revisions-control * Text Domain: wp-revisions-control
* Domain Path: /languages/ * Domain Path: /languages/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment