@betomorrow/sync-wording
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -48,6 +48,6 @@ "use strict"; | ||
var rowIndex = this.config.sheetStartIndex; | ||
while ((row = this.readRow(sheet, language.column, rowIndex)) !== undefined) { | ||
while ((row = this.readRow(sheet, this.config.keyColumn, language.column, rowIndex)) !== undefined) { | ||
wordings.set(row.key, row.value); | ||
if (language.validation && ((_a = language.validation) === null || _a === void 0 ? void 0 : _a.column)) { | ||
var isValid = ((_c = this.readRow(sheet, (_b = language.validation) === null || _b === void 0 ? void 0 : _b.column, rowIndex)) === null || _c === void 0 ? void 0 : _c.value) === language.validation.expected; | ||
var isValid = ((_c = this.readRow(sheet, this.config.keyColumn, (_b = language.validation) === null || _b === void 0 ? void 0 : _b.column, rowIndex)) === null || _c === void 0 ? void 0 : _c.value) === language.validation.expected; | ||
validations.set(row.key, isValid); | ||
@@ -58,4 +58,4 @@ } | ||
}; | ||
WordingLoader.prototype.readRow = function (sheet, column, rowIndex) { | ||
var key = sheet["A" + rowIndex]; | ||
WordingLoader.prototype.readRow = function (sheet, keyColumn, column, rowIndex) { | ||
var key = sheet["" + keyColumn + rowIndex]; | ||
var value = sheet["" + column + rowIndex]; | ||
@@ -62,0 +62,0 @@ if (key === undefined) { |
{ | ||
"name": "@betomorrow/sync-wording", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Provide tool to retrieve app wording from Google Sheet and process it to generate i18n json files", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53043