cacheLocale method
Implementation
Future<void> cacheLocale(Locale locale) async {
if (_box == null || !_inited) {
console("cacheLocale _box is null or _inited is false");
return;
}
if (!_box!.isOpen) {
console("box is not open");
return;
}
String hiveKey = TencentCloudChatCacheKey.locale.name;
await _box!.put(hiveKey, TencentCloudChatIntl.serializeLocale(locale));
}