mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 02:35:27 +00:00
Add button to launch translation service weblink
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
---
|
||||
|
||||
- Added ability for user to submit feedback
|
||||
- Update translations
|
||||
|
||||
### 0.1.4 - April 2021
|
||||
---
|
||||
|
2
lib/l10n
2
lib/l10n
Submodule lib/l10n updated: 37f45c92ec...8d5f69f355
@ -71,6 +71,15 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
|
||||
},
|
||||
),
|
||||
|
||||
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<InvenTreeSettingsWidget> {
|
||||
}
|
||||
}
|
||||
|
||||
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()));
|
||||
|
Reference in New Issue
Block a user