Skip to content

Commit 2d6b1bd

Browse files
committed
One more time on the read me clean up
1 parent 98cb04c commit 2d6b1bd

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

+12-8
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,20 @@ This is useful if you've got a default language. For example, if all of your co
8484

8585
You can tell the localize plugin to always skip certain languages using the skipLanguage option:
8686

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" })
9092
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/ })
9496
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+
```
97101

98102
### Applying the language file
99103

0 commit comments

Comments
 (0)