mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-29 22:47:52 +02:00
infer translate from presence of translation dir
This commit is contained in:
parent
5cfe2c1dca
commit
fe7dba95a8
7 changed files with 91 additions and 57 deletions
5
packages/docusaurus-types/src/i18n.d.ts
vendored
5
packages/docusaurus-types/src/i18n.d.ts
vendored
|
@ -33,9 +33,8 @@ export type I18nLocaleConfig = {
|
|||
*/
|
||||
path: string;
|
||||
/**
|
||||
* Should we run the extra translation process for this locale?
|
||||
* By default, we skip the translation process for the default locale,
|
||||
* while all the other locales run it.
|
||||
* Should we attempt to translate this locale?
|
||||
* By default, it will only be run if the `./i18n/<locale>` exists.
|
||||
*/
|
||||
translate: boolean;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue