Skip to content

Commit

Permalink
Pruning unused translations and adding relevant ones (#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle authored Oct 16, 2023
1 parent 48ffee6 commit 8a8b56d
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 240 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ QuillToolbar.basic(
);
```

> [!WARNING]
>
> This package uses [`gal`](https://github.com/natsuk4ze/) to save images.
> For this to work, you need to add the appropriate permissions
> to your `Info.plist` and `AndroidManifest.xml` files.
>
> See https://github.com/natsuk4ze/gal#-get-started to add the needed lines.
### Custom Size Image for Mobile

Define `mobileWidth`, `mobileHeight`, `mobileMargin`, `mobileAlignment` as follows:
Expand Down
12 changes: 5 additions & 7 deletions flutter_quill_extensions/lib/embeds/builders.dart
Original file line number Diff line number Diff line change
Expand Up @@ -308,22 +308,20 @@ Widget _menuOptionsForReadonlyImage(
messenger.clearSnackBars();

if (!imageSavedSuccessfully) {
// TODO: Please translate this
messenger.showSnackBar(const SnackBar(
messenger.showSnackBar(SnackBar(
content: Text(
'Error while saveing the image',
'Error while saving image'.i18n,
)));
return;
}

var message = 'Saved'.i18n;
var message;
switch (saveImageResult.method) {
// TODO: Please translate this too
case SaveImageResultMethod.network:
message += ' using the network.';
message = 'Saved using the network'.i18n;
break;
case SaveImageResultMethod.localStorage:
message += ' using the local storage.';
message = 'Saved using the local storage'.i18n;
break;
}

Expand Down
Loading

0 comments on commit 8a8b56d

Please sign in to comment.