Skip to content

Commit

Permalink
fix: no request sent when disableStringsCache:true (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapjax authored Jan 18, 2025
1 parent aeb59a1 commit 25932e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ export default class OtaClient {
let strings = {};
for (const filePath of files) {
let content;
if (!!this.stringsCache[filePath]) {
content = await this.stringsCache[filePath];
if (this.disableStringsCache) {
content = await this.getFileTranslations(filePath);
} else {
if (!this.disableStringsCache) {
if (!this.stringsCache[filePath]) {
this.stringsCache[filePath] = this.getFileTranslations(filePath);
}
content = await this.stringsCache[filePath];
Expand Down

0 comments on commit 25932e8

Please sign in to comment.