mirrored_repositories/MomentLetter/lib
// GENERATED CODE - DO NOT MODIFY BY HAND
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'intl/messages_all.dart';

// **************************************************************************
// Generator: Flutter Intl IDE plugin
// Made by Localizely
// **************************************************************************

// ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars

class S {
  S();
  
  static S current;
  
  static const AppLocalizationDelegate delegate =
    AppLocalizationDelegate();

  static Future<S> load(Locale locale) {
    final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
    final localeName = Intl.canonicalizedLocale(name); 
    return initializeMessages(localeName).then((_) {
      Intl.defaultLocale = localeName;
      S.current = S();
      
      return S.current;
    });
  } 

  static S of(BuildContext context) {
    return Localizations.of<S>(context, S);
  }

  /// `时光信笺`
  String get app_name {
    return Intl.message(
      '时光信笺',
      name: 'app_name',
      desc: '',
      args: [],
    );
  }

  /// `写信`
  String get edit_title {
    return Intl.message(
      '写信',
      name: 'edit_title',
      desc: '',
      args: [],
    );
  }

  /// `分享歌曲`
  String get import_music_title {
    return Intl.message(
      '分享歌曲',
      name: 'import_music_title',
      desc: '',
      args: [],
    );
  }

  /// `保存`
  String get save_button {
    return Intl.message(
      '保存',
      name: 'save_button',
      desc: '',
      args: [],
    );
  }

  /// `投递`
  String get send_button {
    return Intl.message(
      '投递',
      name: 'send_button',
      desc: '',
      args: [],
    );
  }

  /// `设置`
  String get settings_title {
    return Intl.message(
      '设置',
      name: 'settings_title',
      desc: '',
      args: [],
    );
  }
}

class AppLocalizationDelegate extends LocalizationsDelegate<S> {
  const AppLocalizationDelegate();

  List<Locale> get supportedLocales {
    return const <Locale>[
      Locale.fromSubtags(languageCode: 'en'),
    ];
  }

  @override
  bool isSupported(Locale locale) => _isSupported(locale);
  @override
  Future<S> load(Locale locale) => S.load(locale);
  @override
  bool shouldReload(AppLocalizationDelegate old) => false;

  bool _isSupported(Locale locale) {
    if (locale != null) {
      for (var supportedLocale in supportedLocales) {
        if (supportedLocale.languageCode == locale.languageCode) {
          return true;
        }
      }
    }
    return false;
  }
}