Skip to content

Commit

Permalink
0.32.1 - Add missing set for GLang Client
Browse files Browse the repository at this point in the history
  • Loading branch information
Elschnagoo committed Jan 6, 2024
1 parent 2d69f79 commit e5fb65c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@grandlinex/bundle-multilang",
"version": "0.32.0",
"version": "0.32.1",
"description": "",
"type": "module",
"exports": {
Expand Down
4 changes: 4 additions & 0 deletions src/class/GLang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ export default class GLang {

map: Map<string, string>;

missing: Set<string>;

log?: CoreLogChannel;

constructor(langDat: LangData | null, log?: CoreLogChannel) {
this.log = log;
this.code = '';
this.map = new CMap<string, string>();
this.missing = new Set<string>();
if (langDat) {
this.loadLang(langDat);
}
Expand Down Expand Up @@ -43,6 +46,7 @@ export default class GLang {
console.warn(`Missing translation: ${key}`);
}

this.missing.add(key);
return key;
}
}

0 comments on commit e5fb65c

Please sign in to comment.