Skip to content

Commit

Permalink
[BUG] Internationalization not working opensearch-project#772
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Schleuss committed Feb 23, 2022
1 parent caf668e commit e49a0a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/legacy/server/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ export async function i18nMixin(
const translationPaths = await Promise.all([
getTranslationPaths({
cwd: fromRoot('.'),
glob: `*/${I18N_RC}`,
glob: `**/${I18N_RC}`,
}),
...(config.get('plugins.paths') as string[]).map((cwd) =>
getTranslationPaths({ cwd, glob: I18N_RC })
),
...(config.get('plugins.scanDirs') as string[]).map((cwd) =>
getTranslationPaths({ cwd, glob: `*/${I18N_RC}` })
getTranslationPaths({ cwd, glob: `**/${I18N_RC}` })
),
getTranslationPaths({
cwd: fromRoot('../opensearch-dashboards-extra'),
glob: `*/${I18N_RC}`,
glob: `**/${I18N_RC}`,
}),
]);

Expand Down

0 comments on commit e49a0a8

Please sign in to comment.