• Shi-Hao Hong's avatar
    Relands "[gen-l10n] Fixes named and positional parameter issue with... · 16913b07
    Shi-Hao Hong authored
    Relands "[gen-l10n] Fixes named and positional parameter issue with NumberFormat when type is specified" (#75346)
    
    *  Added a new template for [NumberFo
    rmat] with positional parameter(s)
    
    * 🔨 Renamed [numberFormatTemplate] to [numberFormatNamedTemplate]
    
    * [gen-l10n] Fixed generation error for namedParameters and optionalParameters
    
    * [gen-l10n] Fixed string value generation for optional parameter
    
    * [gen-l10n-test] Added new tests for `decimalPattern`, `percentPattern`, `scientificPattern` and formats with optional parameters.
    
    * 🔨 Removed trailing whitespaces
    
    * 🔨 replaced [_generateStringParameterValue] with [generateString]
    
    * 🔨 Specified variable types in NumberFormat templates.
    
    *  Added a new template for [NumberFo
    rmat] with positional parameter(s)
    
    * 🔨 Renamed [numberFormatTemplate] to [numberFormatNamedTemplate]
    
    * [gen-l10n] Fixed generation error for namedParameters and optionalParameters
    
    * [gen-l10n] Fixed string value generation for optional parameter
    
    * [gen-l10n-test] Added new tests for `decimalPattern`, `percentPattern`, `scientificPattern` and formats with optional parameters.
    
    * 🔨 Removed trailing whitespaces
    
    * 🔨 replaced [_generateStringParameterValue] with [generateString]
    
    * 🔨 Specified variable types in NumberFormat templates.
    
    * [gen-l10n]  added test for parameter having special characters in string value.
    
    * Accidental tab added to integration test
    Co-authored-by: 's avatararish <arishsultan104@gmail.com>
    16913b07
gen_l10n.dart 45.5 KB