fileWithLocaleRegex property

RegExp fileWithLocaleRegex
getter/setter pair

Finds the parts of the locale. It must start with an underscore. groups for strings_zh-Hant-TW: 1 = strings 2 = zh (language, non-nullable) 3 = Hant (script) 4 = TW (country)

Implementation

static RegExp fileWithLocaleRegex =
    RegExp('^(?:([a-zA-Z0-9]+)_)?$LOCALE_REGEX_RAW\$');