chore: update l10n (#463)

This commit is contained in:
Sun Jiao 2023-09-15 16:13:49 +08:00 • committed by GitHub
commit 1944ab7a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 641 additions and 60 deletions

View file

@ -7,6 +7,9 @@ import 'package:network_image_mock/network_image_mock.dart';
void main() async {
/// customize the action builder
await AppFlowyEditorLocalizations.load(
const Locale.fromSubtags(languageCode: 'en'),
);
testWidgets('customize the image block\'s menu', (tester) async {
await mockNetworkImagesFor(() async {
const widget = CustomActionBuilder();

View file

@ -12,6 +12,9 @@ void main() async {
// 1. When the text field is focused, the editor's cursor should be disabled.
// 2. When the editor is focused, the text field's cursor should be disabled.
// 3. Tapping a non-first line of the editor should still allow the editor to grab focus.
await AppFlowyEditorLocalizations.load(
const Locale.fromSubtags(languageCode: 'en'),
);
testWidgets('text field + editor', (tester) async {
const widget = CustomAttributeKeyForTextBlock();
await tester.pumpWidget(widget);

View file

@ -10,6 +10,9 @@ void main() async {
/// - bulleted list
/// - todo list
/// - quote
await AppFlowyEditorLocalizations.load(
const Locale.fromSubtags(languageCode: 'en'),
);
testWidgets('custom block icon', (tester) async {
await mockNetworkImagesFor(() async {
const widget = CustomBlockIcon();

View file

@ -4,6 +4,9 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:network_image_mock/network_image_mock.dart';
void main() async {
await AppFlowyEditorLocalizations.load(
const Locale.fromSubtags(languageCode: 'en'),
);
testWidgets('wrapp editor with directionality', (tester) async {
await mockNetworkImagesFor(() async {
const widget = DirectionalityTester();

View file

@ -7,6 +7,9 @@ import 'package:network_image_mock/network_image_mock.dart';
void main() async {
/// customize the image menu
await AppFlowyEditorLocalizations.load(
const Locale.fromSubtags(languageCode: 'en'),
);
testWidgets('customize the image block\'s menu', (tester) async {
await mockNetworkImagesFor(() async {
const widget = CustomImageMenu();

View file

@ -7,6 +7,9 @@ void main() async {
TestWidgetsFlutterBinding.ensureInitialized();
});
await AppFlowyEditorLocalizations.load(
const Locale.fromSubtags(languageCode: 'en'),
);
testWidgets('customize highlight color', (tester) async {
const text = 'Hello World';
final document = Document.blank()

View file

@ -10,6 +10,9 @@ void main() async {
// 1. When the text field is focused, the editor's cursor should be disabled.
// 2. When the editor is focused, the text field's cursor should be disabled.
// 3. Tapping a non-first line of the editor should still allow the editor to grab focus.
await AppFlowyEditorLocalizations.load(
const Locale.fromSubtags(languageCode: 'en'),
);
testWidgets('text field + editor', (tester) async {
final widget = TextFieldAndEditor();
await tester.pumpWidget(widget);