diff --git a/example/web/tdweb/src/worker.js b/example/web/tdweb/src/worker.js index 0744ce6e..f2fe91db 100644 --- a/example/web/tdweb/src/worker.js +++ b/example/web/tdweb/src/worker.js @@ -404,6 +404,15 @@ class TdClient { this.client = this.td_functions.td_create(); this.savingFiles = new Map(); + this.send({ + '@type': 'setOption', + name: 'language_pack_database_path' + value: { + '@type': 'optionValueString', + value: this.tdfs.dbFileSystem.root + '/language' + } + }); + this.flushPendingQueries(); this.receive(); @@ -431,6 +440,9 @@ class TdClient { query.parameters.database_directory = this.tdfs.dbFileSystem.root; query.parameters.files_directory = this.tdfs.inboundFileSystem.root; } + if (query['@type'] === 'getLanguagePackString') { + query.language_pack_database_path = this.tdfs.dbFileSystem.root + '/language'; + } return this.prepareQueryRecursive(query); }