Skip to content

Commit

Permalink
fix i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed Jun 3, 2024
1 parent 2f4473a commit a66683f
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 513 deletions.
5 changes: 3 additions & 2 deletions packages/kbn-text-based-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
],
"scripts": {
"make:docs": "ts-node --transpileOnly scripts/generate_esql_docs.ts",
"postmake:docs": "yarn run lint:fix",
"lint:fix": "cd ../.. && node ./scripts/eslint --fix ./packages/kbn-text-based-editor/src/esql_documentation_sections.tsx"
"postmake:docs": "yarn run lint:fix && yarn run i18n:fix",
"lint:fix": "cd ../.. && node ./scripts/eslint --fix ./packages/kbn-text-based-editor/src/esql_documentation_sections.tsx",
"i18n:fix": "cd ../.. && node ./scripts/i18n_check.js --fix"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function writeFunctionDocs(functionDocs: Map<string, string>) {
([name, doc]) => `
const foo = {
label: i18n.translate(
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.absFunction',
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.${name}',
{
defaultMessage: '${name.toUpperCase()}',
}
Expand Down
Loading

0 comments on commit a66683f

Please sign in to comment.