Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localizely_sdk (KryptoGO fork)

Fork of localizely_sdk 2.7.1, kept only until the upstream package can be used again.

Why this fork exists

Flutter 3.35's flutter_localizations pins intl to 0.20.2. In intl 0.20 the second parameter of MessageLookup.addLocale changed type from Function to MessageLookupByLibrary? Function(String), so localizely_sdk 2.7.1 and earlier no longer compile:

lib/src/ota/proxy/proxy.dart:21:42: Error: The argument type 'Function' can't be
assigned to the parameter type 'MessageLookupByLibrary? Function(String)'.

Upstream fixed this in 2.7.2, but from that version on localizely_sdk depends on build: ^3.0.0, which cannot coexist with freezed 2.x (build: ^2.3.1). Until kg-flutter migrates to freezed 3/4, neither the old nor the new upstream version is usable, so this fork carries only the signature fix.

The change

Two addLocale overrides now declare the intl 0.20 parameter type:

  • lib/src/ota/proxy/proxy.dart
  • lib/src/in_context_editing/proxy/in_context_editing_proxy.dart

Nothing else is modified.

Retiring this fork

Once kg-flutter is on freezed 3 or later, drop this fork and depend on localizely_sdk: ^2.7.2 from pub.dev again.

About

Fork of localizely_sdk 2.7.1 with the intl 0.20 MessageLookup.addLocale signature fix (needed for Flutter 3.35)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages