Skip to content

Commit

Permalink
Add new translation key pattern to verify task
Browse files Browse the repository at this point in the history
  • Loading branch information
jlo authored and hickeyma committed Mar 6, 2017
1 parent 165d4cd commit 13cfd15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/build/verify_translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as i18nVerify from '../utils/i18n_verify_keys';
export default function (grunt) {
grunt.registerTask('_build:verifyTranslations', function () {
const done = this.async();
const parsePaths = [fromRoot('/src/ui/views/*.jade')];
const parsePaths = [fromRoot('/src/ui/views/*.jade'), fromRoot('/src/core_plugins/kibana/public/management/sections/indices/*.html')];

const serverConfig = {
env: 'production',
Expand Down
2 changes: 1 addition & 1 deletion tasks/utils/i18n_verify_keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function getFilesToVerify(verifyFilesPatterns) {

function getKeys(filesToVerify) {
const translationKeys = [];
const translationPattern = 'i18n\\(\'(.*)\'\\)';
const translationPattern = 'i18n\\(\'(.*)\'\\)|translate="(.*)"';
const translationRegEx = new RegExp(translationPattern, 'g');

const filePromises = _.map(filesToVerify, (file) => {
Expand Down

0 comments on commit 13cfd15

Please sign in to comment.