Skip to content

Commit c21e0cf

Browse files
Fixing hindi translations and validation
1 parent f9d6735 commit c21e0cf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

bin/validate-translations.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
const path = require('path');
44
const fs = require('fs');
5-
6-
const directoryPath = path.join(__dirname, '../i18n');
5+
const i18nDirectoryRelativePath = '../src/i18n/';
6+
const directoryPath = path.join(__dirname, i18nDirectoryRelativePath);
77
let countMissingTranslations = 0;
88

99
fs.readdir(directoryPath, function(err, files) {
@@ -12,8 +12,9 @@ fs.readdir(directoryPath, function(err, files) {
1212
}
1313

1414
files.forEach(function(file) {
15+
if (file === 'index.js') return;
1516
// Do whatever you want to do with the file
16-
const data = require('../i18n/' + file);
17+
const data = require(i18nDirectoryRelativePath + file);
1718
const keys = Object.keys(data);
1819
keys.forEach((key) => {
1920
if (!data[key] || data[key] === '') {

src/i18n/hi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"Empty message...": "खाली संदेश ...",
1515
"Error loading": "लोड होने मे त्रुटि",
1616
"Error loading channel list ...": "चैनल सूची लोड करने में त्रुटि ...",
17-
"Error loading messages for this channel ...": "",
17+
"Error loading messages for this channel ...": "इस चैनल के लिए मेसेजेस लोड करने में त्रुटि हुई ...",
1818
"Loading ...": "लोड हो रहा है ...",
1919
"Loading channels ...": "चैनल लोड हो रहे हैं ...",
2020
"Loading messages ...": "मेसेजस लोड हो रहे हैं ...",

0 commit comments

Comments
 (0)