diff --git a/lib/core/core_providers.dart b/lib/core/core_providers.dart index 97c6cc75..195ca395 100644 --- a/lib/core/core_providers.dart +++ b/lib/core/core_providers.dart @@ -1,8 +1,6 @@ import 'package:hiddify/core/locale/locale.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -part 'core_providers.g.dart'; - -@Riverpod(keepAlive: true) -TranslationsEn translations(TranslationsRef ref) => - ref.watch(localeControllerProvider).translations(); +final translationsProvider = Provider( + (ref) => ref.watch(localeControllerProvider).translations(), +);