docs: fix markdown

This commit is contained in:
Pig Fang 2021-03-22 17:51:46 +08:00 committed by Christian Kaisermann
parent 5776e01b8c
commit d082d0e25d

View File

@ -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`