i18n.dart 862 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import 'dart:ui';
  2. part 'cn.dart';
  3. part 'en.dart';
  4. abstract class I18n {
  5. I18n._();
  6. factory I18n(Locale locale) {
  7. if (locale?.languageCode == "zh") {
  8. return _I18nZh();
  9. } else {
  10. return _I18nEn();
  11. }
  12. }
  13. String get indexTitle;
  14. String get networkButton;
  15. String get photoButton;
  16. String get assetButton;
  17. String get listViewButton;
  18. String get fullScreenAutoButton;
  19. String get fullScreenManualButton;
  20. String get withDialogButton;
  21. String get pageViewButton;
  22. String get showDialog;
  23. String get autoFullScreenTitle;
  24. String get changeFullScreenWithButton;
  25. String get play;
  26. String get fullScreen;
  27. String get pick;
  28. String get noPickTip;
  29. String get useStreamUsage;
  30. String get playFinishToast;
  31. String get screenshotTitle;
  32. String get overlayPageTitle;
  33. }
  34. I18n get currentI18n => I18n(window.locale);