fix(translations): do not break on vim temp files. This is dedicated to JP
This commit is contained in:
committed by
Benedikt Rötsch
parent
0b1c91373c
commit
0e2ee2a809
@@ -14,6 +14,7 @@ module.exports.initializeTranslations = () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const files = fs.readdirSync(localesPath)
|
const files = fs.readdirSync(localesPath)
|
||||||
|
.filter((filename) => filename.endsWith('.json'))
|
||||||
|
|
||||||
files.forEach((file) => {
|
files.forEach((file) => {
|
||||||
const localeDict = require(path.join(localesPath, file))
|
const localeDict = require(path.join(localesPath, file))
|
||||||
|
|||||||
Reference in New Issue
Block a user