diff --git a/.eslintrc b/.eslintrc index 47c8d5c0..3cc1edb2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,7 +33,10 @@ "no-nested-ternary": 0, "prettier/prettier": "off", "no-shadow": "warn", - "camelcase": "warn" + "camelcase": "warn", + "@wordpress/i18n-text-domain": ["error", { + "allowedTextDomain": ["templates-patterns-collection"] + }] }, "ignorePatterns": ["**/vendor/**"] } diff --git a/editor/src/components/filters.js b/editor/src/components/filters.js index 36ce7d3d..063764ed 100644 --- a/editor/src/components/filters.js +++ b/editor/src/components/filters.js @@ -27,7 +27,7 @@ const Filters = ( { return (
-
{ __( 'Sort by' ) }
+
{ __( 'Sort by','templates-patterns-collection' ) }
{ Object.keys( sortByOptions ).map( ( i ) => ( diff --git a/editor/src/components/list-item.js b/editor/src/components/list-item.js index 546f65cc..4f15b3ff 100644 --- a/editor/src/components/list-item.js +++ b/editor/src/components/list-item.js @@ -158,7 +158,8 @@ const ListItem = ( {
{ item.link ? (