We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be9aacf commit 79b6907Copy full SHA for 79b6907
lib/src/smart_network_asset_loader.dart
@@ -49,7 +49,7 @@ class SmartNetworkAssetLoader extends AssetLoader {
49
// local cache duration was reached or no internet access but prefer local file to assets
50
if (string == '' &&
51
await localTranslationExists(locale.toString(),
52
- ignoreCacheDuration: false)) {
+ ignoreCacheDuration: true)) {
53
string = await loadFromLocalFile(locale.toString());
54
}
55
@@ -136,6 +136,7 @@ class SmartNetworkAssetLoader extends AssetLoader {
136
Future<void> saveTranslation(String localeName, String content) async {
137
var file = File(await getFilenameForLocale(localeName));
138
await file.create(recursive: true);
139
+ await file.writeAsString(content);
140
return print('saved');
141
142
0 commit comments