Skip to content

Commit

Permalink
Add TODO and rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
stackptr committed Mar 21, 2023
1 parent 7a96c24 commit 6ca1e1f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
10 changes: 8 additions & 2 deletions dist/check-i18n-variables
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ const {
} = require('./translation-extraction.js')
const {getFiles, filterJsFiles, supportedLngs} = require('./helpers.js')

const projects = process.argv.slice(2)
const [_nodeBin, _scriptPath, ...projects] = process.argv

console.log(projects)
if (projects.length < 1) {
console.log('Usage: check-i18n-variables <path>')
return
}

// TODO: Pass in via ENV?
const ns = ['school', 'student', 'console', 'classroom', 'common']

const translationKeysWithKnownVariablesInProject = async project => {
const files = await getFiles(project)
Expand Down
Empty file modified dist/check-i18n-variables.js
100755 → 100644
Empty file.
Empty file modified dist/check-i18next-icu-parser.js
100755 → 100644
Empty file.
Empty file modified dist/check-missing-translations.js
100755 → 100644
Empty file.
13 changes: 0 additions & 13 deletions dist/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,6 @@ const filterJsFiles = f =>

module.exports.filterJsFiles = filterJsFiles

const projects = [
'core',
'student-materials',
'educator-materials',
'entities',
'school',
'student',
'console',
'classroom'
]

module.exports.projects = projects

const supportedLngs = ['es', 'en', 'en-GB']

module.exports.supportedLngs = supportedLngs
10 changes: 9 additions & 1 deletion src/check-i18n-variables
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ const {
} = require('./translation-extraction.js')
const {getFiles, filterJsFiles, supportedLngs} = require('./helpers.js')

const projects = process.argv.slice(2)
const [_nodeBin, _scriptPath, ...projects] = process.argv

if (projects.length < 1) {
console.log('Usage: check-i18n-variables <path>')
return
}

// TODO: Pass in via ENV?
const ns = ['school', 'student', 'console', 'classroom', 'common']

const translationKeysWithKnownVariablesInProject = async project => {
const files = await getFiles(project)
Expand Down

0 comments on commit 6ca1e1f

Please sign in to comment.