Closed Judimax closed 6 months ago
Optional feature for developer whether decide to return the whole map or return just the string so as not to introduce breaking changes
FlutterI18n
SimpleTranslator
mustReturnString
translate
FlutterI18nDelegate
TranslationCache
I18nText
To avoid conflicts, re-open this when the other PR will be merged.
Optional feature for developer whether decide to return the whole map or return just the string so as not to introduce breaking changes
FlutterI18n
andSimpleTranslator
to support dynamic translations and introducedmustReturnString
to control return types.translate
method inFlutterI18n
andSimpleTranslator
to return dynamic types and handle translation parameters more flexibly.FlutterI18nDelegate
now acceptsmustReturnString
to specify whether translations should always return strings.SimpleTranslator
to support nested translations and list indexing.TranslationCache
class to manage caching of translations and reduce load times.I18nText
widget to support new translation features and parameters mustReturnString is set to to to ensure no breaking changees.