Skip to content

Commit c7279f6

Browse files
authored
release: new version
- fix translation loading for javascript files
2 parents ff4a683 + ae0eca8 commit c7279f6

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
"no-nested-ternary": 0,
3434
"prettier/prettier": "off",
3535
"no-shadow": "warn",
36-
"camelcase": "warn"
36+
"camelcase": "warn",
37+
"@wordpress/i18n-text-domain": ["error", {
38+
"allowedTextDomain": ["templates-patterns-collection"]
39+
}]
3740
},
3841
"ignorePatterns": ["**/vendor/**"]
3942
}

editor/src/components/filters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Filters = ( {
2727
return (
2828
<div className="filters">
2929
<div className="display-sorting">
30-
<div className="sorting-label">{ __( 'Sort by' ) }</div>
30+
<div className="sorting-label">{ __( 'Sort by','templates-patterns-collection' ) }</div>
3131

3232
<div className="sorting-filter">
3333
{ Object.keys( sortByOptions ).map( ( i ) => (

editor/src/components/list-item.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ const ListItem = ( {
158158
<div className="popover-content">
159159
<TextControl
160160
label={ __(
161-
'Template Name'
161+
'Template Name',
162+
'templates-patterns-collection'
162163
) }
163164
value={ itemName }
164165
onChange={ setItemName }
@@ -272,7 +273,7 @@ const ListItem = ( {
272273
<div className="row-controls">
273274
{ item.link ? (
274275
<Tooltip
275-
text={ __( 'This template is synced to a page.' ) }
276+
text={ __( 'This template is synced to a page.', 'templates-patterns-collection' ) }
276277
>
277278
<Button
278279
label={ __(

editor/src/components/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const Preview = ( { isFetching, importBlocks } ) => {
6262
<div className="tpc-modal-content">
6363
<div className="preview-header">
6464
<div className="left">
65-
{ item.template_name || __( 'Template' ) }
65+
{ item.template_name || __( 'Template','templates-patterns-collection' ) }
6666
</div>
6767

6868
<div className="right">

includes/Admin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,8 @@ public function enqueue() {
751751
wp_localize_script( 'tiobObd', 'tiobDash', apply_filters( 'neve_dashboard_page_data', $this->get_localization() ) );
752752
wp_enqueue_script( 'tiobObd' );
753753

754+
wp_set_script_translations( 'tiobObd', 'templates-patterns-collection' );
755+
754756
if ( ! empty( $this->google_fonts ) ) {
755757
$font_chunks = array_chunk( $this->google_fonts, absint( count( $this->google_fonts ) / 5 ) );
756758
foreach ( $font_chunks as $index => $fonts_chunk ) {
@@ -787,6 +789,8 @@ public function enqueue() {
787789
}
788790
wp_localize_script( 'tiob', 'tiobDash', apply_filters( 'neve_dashboard_page_data', $tiob_dash ) );
789791
wp_enqueue_script( 'tiob' );
792+
793+
wp_set_script_translations( 'tiob', 'templates-patterns-collection' );
790794
}
791795

792796
/**

readme.txt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,18 @@ This plugin gives you access to 100+ templates and ready-to-use starter sites. N
1515
= A cloud based templates library which enables you to create or use existing ready-made website with 1-click. =
1616

1717
### More than 100 Starter Sites and Templates available for the most popular page builders ###
18-
Browse a wide selection of templates and starter sites that are designed to help you build beautiful websites with Elementor and Gutenberg. All templates can be previewed on [demosites.io](https://demosites.io/) and you can seamlessly import them to any of your sites. Whether you're a beginner or a seasoned pro, our templates can help you save time and create stunning websites without any coding knowledge.
19-
In addition to our Elementor and Gutenberg templates, we also offer a handful of page templates for Beaver Builder. These templates are perfect for creating basic pages such as contact pages, about pages, and blog pages. If you're a Beaver Builder user, be sure to check out our selection of page templates.
20-
21-
### Your own private Templates Cloud [PRO] ###
22-
Boost productivity and speed up your workflow by saving all your designs and share them automatically to all your sites in 1-click.
23-
Check more details about this in our [documentation](https://docs.themeisle.com/article/1354-neve-template-cloud-library) guide.
24-
25-
The plugin is relying on the service behind api.themeisle.com for accessing the template collection list and their individual structure on import.
26-
27-
No account is required to access the service template collection and the privacy policy can be found [here](https://themeisle.com/privacy-policy/).
18+
Browse a wide selection of templates and starter sites that are designed to help you build beautiful websites with Gutenberg. All templates can be previewed on [demosites.io](https://demosites.io/) and you can seamlessly import them to any of your sites. Whether you’re a beginner or a seasoned pro, our templates can help you save time and create stunning websites without any coding knowledge. These templates are perfect for creating basic pages such as contact pages, about pages, and blog pages.
2819

2920
== Frequently Asked Questions ==
3021

3122
= Does it work with any WordPress theme? =
32-
Right now we are supporting only [Neve](https://wordpress.org/themes/neve/) theme
23+
Right now we are supporting only the [Neve](https://wordpress.org/themes/neve/) theme.
3324

3425
= Which starter sites and templates are free and which are not? =
3526
You can check the full collection on [demosites.io](https://demosites.io/)
3627

3728
= Can I import just one page from one starter site? =
38-
Yes, you can. You can either chose to import one template or the entire starter site.
29+
Yes, you can choose to import either one template or the entire starter site.
3930

4031
== Changelog ==
4132

0 commit comments

Comments
 (0)