mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
fix search not working for zh languages (#948)
This commit is contained in:
+5
-1
@@ -10133,7 +10133,10 @@ speechSynthesis.getVoices();
|
|||||||
$app.data._stringComparer = undefined;
|
$app.data._stringComparer = undefined;
|
||||||
$app.computed.stringComparer = function () {
|
$app.computed.stringComparer = function () {
|
||||||
if (typeof this._stringComparer === 'undefined') {
|
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;
|
return this._stringComparer;
|
||||||
}
|
}
|
||||||
@@ -32331,6 +32334,7 @@ speechSynthesis.getVoices();
|
|||||||
configRepository.setString('VRCX_appLanguage', language);
|
configRepository.setString('VRCX_appLanguage', language);
|
||||||
this.applyLanguageStrings();
|
this.applyLanguageStrings();
|
||||||
this.updateVRConfigVars();
|
this.updateVRConfigVars();
|
||||||
|
this._stringComparer = undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user