fix code review comments

This commit is contained in:
Jonathan Rainville 2020-07-16 11:20:06 -04:00 committed by Iuri Matias
parent eb87259234
commit bdc625ea17
3 changed files with 5 additions and 4 deletions

View File

@ -48,7 +48,7 @@ Some translations will not be done, check the next section to know how to transl
Since not all strings used in the desktop app are also used in Status-React, the remaining will need to be translated manually.
If the strings are not translated, it is not the end f the world, the English strings will be shown instead.
If the strings are not translated, it is not the end of the world, the English strings will be shown instead.
To do so, you can use QT Linguist to help with the process. Check here to see the Linguist docs: https://doc.qt.io/qt-5/linguist-translators.html

View File

@ -1,5 +1,6 @@
{
"name": "translationscripts",
"private": true,
"version": "1.0.0",
"description": "These scripts are used to translate the app automatically by reusing the existing translation found in the Status-React repo: https://github.com/status-im/status-react/tree/develop/translations",
"main": "qstrConverter.js",

View File

@ -5,10 +5,10 @@ const getAllFiles = function(dirPath, ext, arrayOfFiles = []) {
const files = fs.readdirSync(dirPath)
files.forEach(file => {
if (fs.statSync(dirPath + "/" + file).isDirectory()) {
arrayOfFiles = getAllFiles(dirPath + "/" + file, ext, arrayOfFiles)
if (fs.statSync(path.join(dirPath, file)).isDirectory()) {
arrayOfFiles = getAllFiles(path.join(dirPath, file), ext, arrayOfFiles)
} else if (!ext || file.endsWith(ext)) {
arrayOfFiles.push(path.join(__dirname, dirPath, "/", file))
arrayOfFiles.push(path.join(__dirname, dirPath, file))
}
})