unnecessary escapes fixes (#50178)
* unnecessary escapes fixes * replace some strings with raw strings * update regexp * address review comments
This commit is contained in:
committed by
GitHub
parent
b8199abd15
commit
5c28e3eeea
@@ -75,7 +75,7 @@ bool isPluralVariation(String key, Map<String, dynamic> bundle) {
|
||||
|
||||
void updateMissingResources(String localizationPath, String groupPrefix) {
|
||||
final Directory localizationDir = Directory(localizationPath);
|
||||
final RegExp filenamePattern = RegExp('${groupPrefix}_(\\w+)\.arb');
|
||||
final RegExp filenamePattern = RegExp('${groupPrefix}_(\\w+)\\.arb');
|
||||
|
||||
final Set<String> requiredKeys = resourceKeys(loadBundle(File(path.join(localizationPath, '${groupPrefix}_en.arb'))));
|
||||
|
||||
|
||||
@@ -66,8 +66,8 @@ import 'messages_all.dart';
|
||||
/// Callers can lookup localized strings with an instance of @(className) returned
|
||||
/// by `@(className).of(context)`.
|
||||
///
|
||||
/// Applications need to include `@(className).delegate()` in their app\'s
|
||||
/// localizationDelegates list, and the locales they support in the app\'s
|
||||
/// Applications need to include `@(className).delegate()` in their app's
|
||||
/// localizationDelegates list, and the locales they support in the app's
|
||||
/// supportedLocales list. For example:
|
||||
///
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user