mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
refactor set/getByName "peers" "option"
This commit is contained in:
@@ -391,3 +391,10 @@ Future<void> initGlobalFFI() async {
|
||||
// global shared preference
|
||||
await Get.putAsync(() => SharedPreferences.getInstance());
|
||||
}
|
||||
|
||||
String translate(String name) {
|
||||
if (name.startsWith('Failed to') && name.contains(': ')) {
|
||||
return name.split(': ').map((x) => translate(x)).join(': ');
|
||||
}
|
||||
return platformFFI.translate(name, localeName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user