mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
fff5a1c419
* Add UI and setting logic for subaddresses * Enable auto generate subaddresses * Rename variable * Add comment to unused code * Fix issue with initial state change * Fix observable for isAppSecure * Filter sub account contacts * Fix select account use unused address * Use add address if last address is unused * Fix auto generate wallet issues * Fix button color * Add translation and refactored naming * Fix PR review * Remove unused code * Remove unused overrides in electrum * Fix address info null check * CW-228 Fix ContactListViewModel condition * CW-228 Fix Account Tile; Rework updateAddressesInBox; Fix _getAllUnusedAddresses * CW-228 Fix unintentional address_page.dart regression * CW-228 Fix Merge Conflicts * CW-228 Add more translation Tools * CW-228 More merge conflict fixes * CW-228 Fix Merge Conflicts * CW-228 Auto Translation improvements * CW-228 Resolve requested Changes --------- Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
37 lines
1.1 KiB
Dart
37 lines
1.1 KiB
Dart
import 'dart:io';
|
|
|
|
import 'utils/translation/arb_file_utils.dart';
|
|
import 'utils/translation/translation_constants.dart';
|
|
import 'utils/translation/translation_utils.dart';
|
|
|
|
void main(List<String> args) async {
|
|
print('Checking Consistency of all arb-files. Default: $defaultLang');
|
|
|
|
final doFix = args.contains("--fix");
|
|
|
|
if (doFix)
|
|
print('Auto fixing enabled!\n');
|
|
else
|
|
print('Auto fixing disabled!\nRun with arg "--fix" to enable autofix\n');
|
|
|
|
final fileName = getArbFileName(defaultLang);
|
|
final file = File(fileName);
|
|
final arbObj = readArbFile(file);
|
|
|
|
for (var lang in langs) {
|
|
final fileName = getArbFileName(lang);
|
|
final missingKeys = getMissingKeysInArbFile(fileName, arbObj.keys);
|
|
if (missingKeys.isNotEmpty) {
|
|
final missingDefaults = <String, String>{};
|
|
|
|
missingKeys.forEach((key) {
|
|
print('Missing in "$lang": "$key"');
|
|
if (doFix)
|
|
missingDefaults[key] = arbObj[key] as String;
|
|
});
|
|
|
|
if (missingDefaults.isNotEmpty)
|
|
await appendTranslations(lang, missingDefaults);
|
|
}
|
|
}
|
|
}
|