Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add locale/_template.json #3536

Merged
merged 1 commit into from
Jul 13, 2022
Merged

chore: add locale/_template.json #3536

merged 1 commit into from
Jul 13, 2022

Conversation

WilcoFiers
Copy link
Contributor

Adding a template for localisations, this should hopefully make reviewing a little easier.

@WilcoFiers WilcoFiers requested a review from a team as a code owner July 11, 2022 14:01
@WilcoFiers WilcoFiers requested a review from dylanb July 11, 2022 15:17
@@ -249,7 +256,7 @@ module.exports = function(grunt) {
}
});

grunt.registerTask('translate', ['validate', 'esbuild', 'add-locale']);
grunt.registerTask('translate', ['validate', 'esbuild', 'add-locale:newLang']);
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we generate this template every time we build?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That happens here:
https://github.com/dequelabs/axe-core/pull/3536/files#diff-8e7e5f941c67b0cf481a9d650295119d4922b96117e7adc069ba30a81a78c65fR270

Because I added a template prop to add-locale, I need to explicitly call add-locale:newLang, otherwise both commands will run in translate.

Copy link
Contributor

@dylanb dylanb left a comment

Choose a reason for hiding this comment

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

Should we generate the template every time we build?

@WilcoFiers WilcoFiers merged commit 59ebf0a into develop Jul 13, 2022
@WilcoFiers WilcoFiers deleted the translation-template branch July 13, 2022 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants