mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
fix search not working for zh languages (#948)
This commit is contained in:
@@ -10133,7 +10133,10 @@ speechSynthesis.getVoices();
|
||||
$app.data._stringComparer = undefined;
|
||||
$app.computed.stringComparer = function () {
|
||||
if (typeof this._stringComparer === 'undefined') {
|
||||
this._stringComparer = Intl.Collator(this.appLanguage, { usage: "search", sensitivity: "base" });
|
||||
this._stringComparer = Intl.Collator(
|
||||
this.appLanguage.replace("_", "-"),
|
||||
{ usage: "search", sensitivity: "base" }
|
||||
);
|
||||
}
|
||||
return this._stringComparer;
|
||||
}
|
||||
@@ -32331,6 +32334,7 @@ speechSynthesis.getVoices();
|
||||
configRepository.setString('VRCX_appLanguage', language);
|
||||
this.applyLanguageStrings();
|
||||
this.updateVRConfigVars();
|
||||
this._stringComparer = undefined;
|
||||
};
|
||||
|
||||
// #endregion
|
||||
|
||||
Reference in New Issue
Block a user