mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-19 09:37:43 +02:00
Add unit tests for i18n localeConfigs baseUrl
This commit is contained in:
parent
0306d18240
commit
cc08a46b66
3 changed files with 91 additions and 4 deletions
15
packages/docusaurus-types/src/i18n.d.ts
vendored
15
packages/docusaurus-types/src/i18n.d.ts
vendored
|
@ -37,6 +37,21 @@ export type I18nLocaleConfig = {
|
|||
* By default, it will only be run if the `./i18n/<locale>` exists.
|
||||
*/
|
||||
translate: boolean;
|
||||
|
||||
/**
|
||||
* The baseUrl to use for this locale.
|
||||
* This overrides the `siteConfig.baseUrl` attribute.
|
||||
*
|
||||
* Default values:
|
||||
* - Default locale: `/${siteConfig.baseUrl}/`
|
||||
* - Other locales: `/${siteConfig.baseUrl}/<locale>/`
|
||||
*
|
||||
* Exception: when using the CLI with a single `--locale` parameter, the
|
||||
* `/<locale>/` path segment is not included. This is a better default for
|
||||
* sites looking to deploy each locale to a different subdomain, such as
|
||||
* `https://<locale>.docusaurus.io`
|
||||
*/
|
||||
baseUrl: string;
|
||||
};
|
||||
|
||||
export type I18nConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue