gscan 4.43.1 → 4.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/specs/canary.js
CHANGED
|
@@ -743,6 +743,13 @@ let rules = {
|
|
|
743
743
|
rule: 'No unknown global helper used',
|
|
744
744
|
details: oneLineTrim`A global helper was detected that is not supported by this version of Ghost. Check the
|
|
745
745
|
<a href="${docsBaseUrl}helpers/" target=_blank>helpers documentation</a> for further information.`
|
|
746
|
+
},
|
|
747
|
+
'GS080-NO-EMPTY-TRANSLATIONS': {
|
|
748
|
+
level: 'error',
|
|
749
|
+
fatal: false,
|
|
750
|
+
rule: 'Add a string to translate to the <code>{{t}}</code> helper',
|
|
751
|
+
regex: /{{\s*t\s*(["'“”]?)\s*\1?\s*}}/g,
|
|
752
|
+
details: oneLineTrim`Translate helper <code>{{t}}</code> expects a string. Example: <code>{{ t "Hello world" }}</code>. Find more information about the translate helper <a href="${docsBaseUrl}helpers/translate" target=_blank>here</a>.`
|
|
746
753
|
}
|
|
747
754
|
};
|
|
748
755
|
|