diff --git a/assets/release_notes.md b/assets/release_notes.md index 2f875463..7393c806 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -5,6 +5,7 @@ --- - Added ability for user to submit feedback +- Update translations ### 0.1.4 - April 2021 --- diff --git a/lib/l10n b/lib/l10n index 37f45c92..8d5f69f3 160000 --- a/lib/l10n +++ b/lib/l10n @@ -1 +1 @@ -Subproject commit 37f45c92ec284ba97cae97b15cfc59d0400d18e1 +Subproject commit 8d5f69f355632939c9b6550625066ca779930bfe diff --git a/lib/settings/settings.dart b/lib/settings/settings.dart index 38ae8c12..635d5ddb 100644 --- a/lib/settings/settings.dart +++ b/lib/settings/settings.dart @@ -71,6 +71,15 @@ class _InvenTreeSettingsState extends State { }, ), + ListTile( + title: Text(L10().translate), + subtitle: Text(L10().translateHelp), + leading: FaIcon(FontAwesomeIcons.language), + onTap: () { + _translate(); + } + ), + ListTile( title: Text(L10().feedback), subtitle: Text(L10().submitFeedback), @@ -94,6 +103,14 @@ class _InvenTreeSettingsState extends State { } } + void _translate() async { + final String url = "https://crowdin.com/project/inventree"; + + if (await canLaunch(url)) { + await launch(url); + } + } + void _editServerSettings() async { Navigator.push(context, MaterialPageRoute(builder: (context) => InvenTreeLoginSettingsWidget()));