Skip to content

Commit

Permalink
style: fix code-style and code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
esmaeil-ahmadipour committed Jan 16, 2025
1 parent af60d06 commit bfa7caf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
15 changes: 12 additions & 3 deletions lib/src/core/utils/gen/localization/app_locales.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@ class AppLocales {

static const translationsPath = 'lib/l10n';

static const enUSLocale = Locale('en', 'US',);
static const frFRLocale = Locale('fr', 'FR',);
static const esESLocale = Locale('es', 'ES',);
static const enUSLocale = Locale(
'en',
'US',
);
static const frFRLocale = Locale(
'fr',
'FR',
);
static const esESLocale = Locale(
'es',
'ES',
);

/// Define the list of supported locales in the desired order
static const supportedLocales = [
Expand Down
5 changes: 3 additions & 2 deletions lib/src/core/utils/gen/localization/translations_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ Future<void> _generateAppLocalesClass() async {
// Generate constants for each locale
for (final locale in languageCases) {
final localeConstName = '${locale.language}${locale.country}Locale';
final localeString = '\'${locale.language}\', \'${locale.country}\'';
final localeString =
' \'${locale.language}\',\n \'${locale.country}\'';
buffer.writeln(
' static const $localeConstName = Locale($localeString,);',
' static const $localeConstName = Locale(\n$localeString,\n );',
);
}

Expand Down
2 changes: 0 additions & 2 deletions macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import FlutterMacOS
import Foundation

import shared_preferences_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
}

0 comments on commit bfa7caf

Please sign in to comment.