mirror of
https://github.com/spotiflacapp/SpotiFLAC-Mobile.git
synced 2026-06-01 03:15:17 +07:00
- Add flutter_localizations and intl dependencies - Create l10n.yaml configuration and ARB files (app_en.arb, app_id.arb) - Add L10n extension for easy context.l10n access - Localize all active screens: - setup_screen, track_metadata_screen, log_screen - download_settings_page, options_settings_page, appearance_settings_page - extensions_page, extension_detail_page, extension_details_screen - about_page, provider_priority_page, metadata_provider_priority_page - home_tab, queue_tab, store_tab, main_shell - album_screen, artist_screen, playlist_screen - downloaded_album_screen, queue_screen - Localize widgets: update_dialog, download_service_picker - Technical terms (FLAC, API, Spotify, Tidal, Qobuz, etc.) are NOT translated - ~900+ localized strings in English, ~660+ in Indonesian
11 lines
416 B
Dart
11 lines
416 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:spotiflac_android/l10n/app_localizations.dart';
|
|
|
|
export 'package:spotiflac_android/l10n/app_localizations.dart';
|
|
|
|
/// Extension to easily access AppLocalizations from BuildContext
|
|
extension AppLocalizationsX on BuildContext {
|
|
/// Get the AppLocalizations instance
|
|
/// Usage: context.l10n.navHome
|
|
AppLocalizations get l10n => AppLocalizations.of(this);
|
|
}
|