Skip to content

Implement a build tool for locale files integration#19826

Merged
pavel06081991 merged 46 commits intoelastic:masterfrom
LeanidShutau:locale-files-checker
Dec 22, 2018
Merged

Implement a build tool for locale files integration#19826
pavel06081991 merged 46 commits intoelastic:masterfrom
LeanidShutau:locale-files-checker

Conversation

@LeanidShutau
Copy link
Copy Markdown
Contributor

@LeanidShutau LeanidShutau commented Jun 12, 2018

Check locale files for unused translations and missing translations.
Split locale files by namespaces (using .i18nrc.json) and move them to plugins folders.

Usage
node scripts/i18n_integrate --path ./path_to_locale_file

@LeanidShutau LeanidShutau added the WIP Work in progress label Jun 12, 2018
@LeanidShutau
Copy link
Copy Markdown
Contributor Author

#19730

@LeanidShutau LeanidShutau added review Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// labels Jun 12, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@LeanidShutau LeanidShutau changed the title [WIP] Implement a build tool for locale files verification Implement a build tool for locale files verification Jun 14, 2018
@LeanidShutau LeanidShutau removed the WIP Work in progress label Jun 14, 2018
@LeanidShutau LeanidShutau self-assigned this Jun 14, 2018
@azasypkin
Copy link
Copy Markdown
Contributor

azasypkin commented Jun 18, 2018

Since this PR depends on #19620 (or at least intersect with it), I'll remove review requests for now. Please request review, once #19620 is merged and this PR is rebased on top of it. Thanks.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, just a number of suggestions.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Contributor

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested locally - works as we expect it to work right now.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@LeanidShutau
Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@pavel06081991 pavel06081991 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, works as expected. LGTM

import parser from 'intl-messageformat-parser';
import normalize from 'normalize-path';
import path from 'path';
import chalk from 'chalk';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional nit: unnecessary change,

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Project:i18n review Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v6.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants