mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feature: added making text longer (#2532)
* feature: added making text longer * fix: corrected I10n
This commit is contained in:
parent
a993a2a181
commit
dd5bc7808c
@ -363,7 +363,8 @@
|
|||||||
"smartEditFixSpelling": "Fix spelling",
|
"smartEditFixSpelling": "Fix spelling",
|
||||||
"warning": "⚠️ AI responses can be inaccurate or misleading.",
|
"warning": "⚠️ AI responses can be inaccurate or misleading.",
|
||||||
"smartEditSummarize": "Summarize",
|
"smartEditSummarize": "Summarize",
|
||||||
"smartEditImproveWriting": "Improve Writing",
|
"smartEditImproveWriting": "Improve writing",
|
||||||
|
"smartEditMakeLonger": "Make longer",
|
||||||
"smartEditCouldNotFetchResult": "Could not fetch result from OpenAI",
|
"smartEditCouldNotFetchResult": "Could not fetch result from OpenAI",
|
||||||
"smartEditCouldNotFetchKey": "Could not fetch OpenAI key",
|
"smartEditCouldNotFetchKey": "Could not fetch OpenAI key",
|
||||||
"smartEditDisabled": "Connect OpenAI in Settings",
|
"smartEditDisabled": "Connect OpenAI in Settings",
|
||||||
@ -423,4 +424,4 @@
|
|||||||
"emptyNoDate": "No unscheduled events"
|
"emptyNoDate": "No unscheduled events"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,8 @@ import 'package:easy_localization/easy_localization.dart';
|
|||||||
enum SmartEditAction {
|
enum SmartEditAction {
|
||||||
summarize,
|
summarize,
|
||||||
fixSpelling,
|
fixSpelling,
|
||||||
improveWriting;
|
improveWriting,
|
||||||
|
makeItLonger;
|
||||||
|
|
||||||
String get toInstruction {
|
String get toInstruction {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
@ -16,6 +17,8 @@ enum SmartEditAction {
|
|||||||
return 'Correct this to standard English:';
|
return 'Correct this to standard English:';
|
||||||
case SmartEditAction.improveWriting:
|
case SmartEditAction.improveWriting:
|
||||||
return 'Rewrite this in your own words:';
|
return 'Rewrite this in your own words:';
|
||||||
|
case SmartEditAction.makeItLonger:
|
||||||
|
return 'Make this text longer:';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,6 +30,8 @@ enum SmartEditAction {
|
|||||||
return 'Correct this to standard English:\n\n$input';
|
return 'Correct this to standard English:\n\n$input';
|
||||||
case SmartEditAction.improveWriting:
|
case SmartEditAction.improveWriting:
|
||||||
return 'Rewrite this:\n\n$input';
|
return 'Rewrite this:\n\n$input';
|
||||||
|
case SmartEditAction.makeItLonger:
|
||||||
|
return 'Make this text longer:\n\n$input';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,6 +43,8 @@ enum SmartEditAction {
|
|||||||
return SmartEditAction.fixSpelling;
|
return SmartEditAction.fixSpelling;
|
||||||
case 2:
|
case 2:
|
||||||
return SmartEditAction.improveWriting;
|
return SmartEditAction.improveWriting;
|
||||||
|
case 3:
|
||||||
|
return SmartEditAction.makeItLonger;
|
||||||
}
|
}
|
||||||
return SmartEditAction.fixSpelling;
|
return SmartEditAction.fixSpelling;
|
||||||
}
|
}
|
||||||
@ -50,6 +57,8 @@ enum SmartEditAction {
|
|||||||
return LocaleKeys.document_plugins_smartEditFixSpelling.tr();
|
return LocaleKeys.document_plugins_smartEditFixSpelling.tr();
|
||||||
case SmartEditAction.improveWriting:
|
case SmartEditAction.improveWriting:
|
||||||
return LocaleKeys.document_plugins_smartEditImproveWriting.tr();
|
return LocaleKeys.document_plugins_smartEditImproveWriting.tr();
|
||||||
|
case SmartEditAction.makeItLonger:
|
||||||
|
return LocaleKeys.document_plugins_smartEditMakeLonger.tr();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user