mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01:00
docs: fix markdown
This commit is contained in:
parent
5776e01b8c
commit
d082d0e25d
@ -88,7 +88,7 @@ init({
|
|||||||
|
|
||||||
#### `getLocaleFromHostname`
|
#### `getLocaleFromHostname`
|
||||||
|
|
||||||
> `import { getLocaleFromHostname } from 'svelte-i18n'
|
> `import { getLocaleFromHostname } from 'svelte-i18n'`
|
||||||
|
|
||||||
`getLocaleFromHostname(hostnamePattern: RegExp): string`
|
`getLocaleFromHostname(hostnamePattern: RegExp): string`
|
||||||
Utility method to help getting a initial locale based on a pattern of the current `hostname`.
|
Utility method to help getting a initial locale based on a pattern of the current `hostname`.
|
||||||
@ -107,7 +107,7 @@ init({
|
|||||||
|
|
||||||
#### `getLocaleFromPathname`
|
#### `getLocaleFromPathname`
|
||||||
|
|
||||||
> `import { getLocaleFromPathname } from 'svelte-i18n'
|
> `import { getLocaleFromPathname } from 'svelte-i18n'`
|
||||||
|
|
||||||
`getLocaleFromPathname(pathnamePattern: RegExp): string`
|
`getLocaleFromPathname(pathnamePattern: RegExp): string`
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ init({
|
|||||||
|
|
||||||
#### `getLocaleFromNavigator`
|
#### `getLocaleFromNavigator`
|
||||||
|
|
||||||
> `import { getLocaleFromNavigator } from 'svelte-i18n'
|
> `import { getLocaleFromNavigator } from 'svelte-i18n'`
|
||||||
|
|
||||||
`getLocaleFromNavigator(): string`
|
`getLocaleFromNavigator(): string`
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ init({
|
|||||||
|
|
||||||
#### `getLocaleFromQueryString`
|
#### `getLocaleFromQueryString`
|
||||||
|
|
||||||
> `import { getLocaleFromQueryString } from 'svelte-i18n'
|
> `import { getLocaleFromQueryString } from 'svelte-i18n'`
|
||||||
|
|
||||||
`getLocaleFromQueryString(queryKey: string): string`
|
`getLocaleFromQueryString(queryKey: string): string`
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ init({
|
|||||||
|
|
||||||
#### `getLocaleFromHash`
|
#### `getLocaleFromHash`
|
||||||
|
|
||||||
> `import { getLocaleFromHash } from 'svelte-i18n'
|
> `import { getLocaleFromHash } from 'svelte-i18n'`
|
||||||
|
|
||||||
`getLocaleFromHash(hashKey: string): string`
|
`getLocaleFromHash(hashKey: string): string`
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ init({
|
|||||||
|
|
||||||
#### `addMessages`
|
#### `addMessages`
|
||||||
|
|
||||||
`import { addMessages } from 'svelte-i18n`
|
> `import { addMessages } from 'svelte-i18n`
|
||||||
|
|
||||||
`addMessages(locale: string, ...dicts: Dictionary[]): void`
|
`addMessages(locale: string, ...dicts: Dictionary[]): void`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user