Skip to content

Commit

Permalink
Corrected language settings
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Feb 11, 2025
1 parent a5c9297 commit 2acbf1e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,9 @@ Unsubscribe from file changes in ioBroker DB
-->
## Changelog
### **WORK IN PROGRESS**
* (@GermanBluefox) Corrected language settings
### 2.0.11 (2025-02-11)
* (@GermanBluefox) Code migrated to TypeScript
Expand Down
2 changes: 1 addition & 1 deletion src/lib/socketCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export type SupportedFeature =
| 'PARTIAL_OBJECT_TREE';

export interface SocketDataContext {
language: ioBroker.Languages;
language?: ioBroker.Languages;
ratings: Ratings | null;
ratingTimeout: NodeJS.Timeout | null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/socketCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class SocketCommon {

this.settings.ttl = parseInt(this.settings.ttl as unknown as string, 10) || 3600;
this.context = {
language: this.settings.language || 'en',
language: this.settings.language,
ratings: null,
ratingTimeout: null,
};
Expand Down

0 comments on commit 2acbf1e

Please sign in to comment.