Skip to content
Snippets Groups Projects
Verified Commit b95221c2 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: docs

parent ea8912c2
No related branches found
No related tags found
No related merge requests found
...@@ -20,12 +20,13 @@ const DEFAULT_LANGUAGE = "en"; ...@@ -20,12 +20,13 @@ const DEFAULT_LANGUAGE = "en";
/** /**
* With this function you can read the language version set by the document. * With this function you can read the language version set by the document.
* For this the attribute `lang` in the html tag is read. If no attribute is set, `en` is used as default. * For this the attribute `lang` in the html tag is read. If no attribute is set, `en` is used as default.
* Alternatively, the language version of the browser is used.
* *
* ```html * ```html
* <html lang="en"> * <html lang="en">
* ``` * ```
* *
* You can call the function via the monster namespace `new Monster.DOM.getLocaleOfDocument()`. * You can call the function via `getLocaleOfDocument()`.
* *
* @license AGPLv3 * @license AGPLv3
* @since 1.13.0 * @since 1.13.0
......
...@@ -182,22 +182,11 @@ class Locale extends Base { ...@@ -182,22 +182,11 @@ class Locale extends Base {
* *
* Limitations: The regex cannot handle multiple variants or private. * Limitations: The regex cannot handle multiple variants or private.
* *
* You can call the method via the monster namespace `Monster.I18n.createLocale()`. * You can call the method via this function individually:
* *
* ``` * ```javascript
* <script type="module">
* import {Monster} from '@schukai/monster/source/monster.mjs';
* new Monster.I18n.createLocale()
* </script>
* ```
*
* Alternatively, you can also integrate this function individually.
*
* ```
* <script type="module">
* import {createLocale} from '@schukai/monster/source/i18n/locale.mjs'; * import {createLocale} from '@schukai/monster/source/i18n/locale.mjs';
* createLocale() * createLocale()
* </script>
* ``` * ```
* *
* RFC * RFC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment