i18n.dart 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. String get ijkStatusTitle;
  34. String get customOption;
  35. String get errorUrl;
  36. String get customFullScreenWidget;
  37. String get setSpeed;
  38. }
  39. I18n get currentI18n => I18n(window.locale);