File tree 1 file changed +12
-8
lines changed
1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -84,16 +84,20 @@ This is useful if you've got a default language. For example, if all of your co
84
84
85
85
You can tell the localize plugin to always skip certain languages using the skipLanguage option:
86
86
87
- # using a string will skip ONLY if the language code matches exactly
88
- # this would prevent loading only if the language was "en-US"
89
- $("[data-localize]").localize("example", { skipLanguage: "en-US" })
87
+ ``` html
88
+ <script >
89
+ // using a string will skip ONLY if the language code matches exactly
90
+ // this would prevent loading only if the language was "en-US"
91
+ $ (" [data-localize]" ).localize (" example" , { skipLanguage: " en-US" })
90
92
91
- # using a regex will skip if the regex matches
92
- # this would prevent loading of any english language translations
93
- $("[data-localize]").localize("example", { skipLanguage: /^en/ })
93
+ // using a regex will skip if the regex matches
94
+ // this would prevent loading of any english language translations
95
+ $ (" [data-localize]" ).localize (" example" , { skipLanguage: / ^ en/ })
94
96
95
- # using an array of strings will skip if any of the strings matches exactly
96
- $("[data-localize]").localize("example", { skipLanguage: ["en", "en-US"] })
97
+ // using an array of strings will skip if any of the strings matches exactly
98
+ $ (" [data-localize]" ).localize (" example" , { skipLanguage: [" en" , " en-US" ] })
99
+ </script >
100
+ ```
97
101
98
102
### Applying the language file
99
103
You can’t perform that action at this time.
0 commit comments