mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-11 23:32:30 +02:00
feat: allow customizing localization path of each locale (#7624)
This commit is contained in:
parent
39e3e3715e
commit
1b9bec1042
24 changed files with 254 additions and 30 deletions
|
@ -123,7 +123,7 @@ describe('localizePath', () => {
|
|||
path: 'i18n',
|
||||
locales: ['en', 'fr'],
|
||||
currentLocale: 'fr',
|
||||
localeConfigs: {},
|
||||
localeConfigs: {fr: {path: 'fr'}, en: {path: 'en'}},
|
||||
},
|
||||
options: {localizePath: true},
|
||||
}),
|
||||
|
@ -140,7 +140,7 @@ describe('localizePath', () => {
|
|||
path: 'i18n',
|
||||
locales: ['en', 'fr'],
|
||||
currentLocale: 'en',
|
||||
localeConfigs: {},
|
||||
localeConfigs: {fr: {path: 'fr'}, en: {path: 'en'}},
|
||||
},
|
||||
options: {localizePath: true},
|
||||
}),
|
||||
|
@ -157,7 +157,7 @@ describe('localizePath', () => {
|
|||
path: 'i18n',
|
||||
locales: ['en', 'fr'],
|
||||
currentLocale: 'en',
|
||||
localeConfigs: {},
|
||||
localeConfigs: {fr: {path: 'fr'}, en: {path: 'en'}},
|
||||
},
|
||||
}),
|
||||
).toBe('/baseUrl/');
|
||||
|
@ -173,7 +173,7 @@ describe('localizePath', () => {
|
|||
path: 'i18n',
|
||||
locales: ['en', 'fr'],
|
||||
currentLocale: 'en',
|
||||
localeConfigs: {},
|
||||
localeConfigs: {fr: {path: 'fr'}, en: {path: 'en'}},
|
||||
},
|
||||
}),
|
||||
).toBe('/baseUrl/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue