We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e9736b + d1a90eb commit 7c7d074Copy full SHA for 7c7d074
1 file changed
lib/extract/JsonWriter.ts
@@ -42,12 +42,11 @@ export class JsonWriter<T extends string> {
42
}
43
44
public writeAll(): void {
45
- if (this.isReadOnly) {
46
- return;
47
- }
48
-
49
for (const lang of Object.keys(this.config.languages) as T[]) {
50
const processed = this.processLang(lang);
+ if (this.isReadOnly) {
+ continue;
+ }
51
const path = normalizePath(this.config.languages[lang]);
52
const content = JSON.stringify(processed, null, 2) + "\n";
53
Deno.writeTextFileSync(path, content);
0 commit comments