Skip to content

Commit

Permalink
Add localizations (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelchiotti authored Aug 10, 2024
1 parent b31e126 commit e7c7a9a
Show file tree
Hide file tree
Showing 17 changed files with 692 additions and 244 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.g.dart linguist-generated
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- '**.g.dart'
2 changes: 2 additions & 0 deletions packages/fleather/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ doc/api/
build/

example/feather

untranslated.txt
4 changes: 4 additions & 0 deletions packages/fleather/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
include: package:flutter_lints/flutter.yaml

analyzer:
exclude:
- '**.g.dart'

linter:
rules:
always_declare_return_types: true
Expand Down
4 changes: 2 additions & 2 deletions packages/fleather/example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos

SPEC CHECKSUMS:
file_selector_macos: 468fb6b81fac7c0e88d71317f3eec34c3b008ff9
file_selector_macos: 54fdab7caa3ac3fc43c9fac4d7d8d231277f8cf2
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95
url_launcher_macos: 5f437abeda8c85500ceb03f5c1938a8c5a705399

PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7

Expand Down
12 changes: 12 additions & 0 deletions packages/fleather/l10n.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
format: true
use-escaping: true
synthetic-package: false

arb-dir: lib/l10n/translations
template-arb-file: en.arb

output-dir: lib/l10n
output-class: FleatherLocalizations
output-localization-file: fleather_localizations.g.dart

untranslated-messages-file: untranslated.txt
5 changes: 3 additions & 2 deletions packages/fleather/lib/fleather.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ library fleather;

export 'package:parchment/parchment.dart';

export 'l10n/l10n.dart' hide BuildContextLocalizationsExtension;
export 'src/rendering/editor.dart';
export 'src/services/clipboard_manager.dart';
export 'src/widgets/autoformats.dart';
export 'src/widgets/controller.dart';
export 'src/widgets/cursor.dart';
export 'src/widgets/editor.dart';
Expand All @@ -14,5 +17,3 @@ export 'src/widgets/field.dart';
export 'src/widgets/link.dart' show LinkActionPickerDelegate, LinkMenuAction;
export 'src/widgets/text_line.dart';
export 'src/widgets/theme.dart';
export 'src/widgets/autoformats.dart';
export 'src/services/clipboard_manager.dart';
217 changes: 217 additions & 0 deletions packages/fleather/lib/l10n/fleather_localizations.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions packages/fleather/lib/l10n/fleather_localizations_en.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions packages/fleather/lib/l10n/fleather_localizations_fr.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/fleather/lib/l10n/l10n.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
library l10n;

export 'fleather_localizations.g.dart';
export 'utils.dart';
Loading

0 comments on commit e7c7a9a

Please sign in to comment.