-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace 'showButtonAfterSelect' with 'translateButtons'. Now multiple buttons can be displayed at the same time. Uncheck every buttons means disable 'showButtonAfterSelect'. fix: translate button can be showed outside the screen;
- Loading branch information
1 parent
f10fc03
commit 22af8e2
Showing
14 changed files
with
233 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const TRANSLATE_BUTTON_TRANSLATE = 'TRANSLATE_BUTTON_TRANSLATE'; | ||
export const TRANSLATE_BUTTON_LISTEN = 'TRANSLATE_BUTTON_LISTEN'; | ||
export const TRANSLATE_BUTTON_COPY = 'TRANSLATE_BUTTON_COPY'; | ||
|
||
export const defaultTranslateButtons = [TRANSLATE_BUTTON_TRANSLATE]; | ||
|
||
type TranslateButtonContext = { | ||
[key: string]: { type: 'icon', iconName: string } | ||
}; | ||
|
||
export const translateButtonContext: TranslateButtonContext = { | ||
TRANSLATE_BUTTON_TRANSLATE: { type: 'icon', iconName: '#icon-MdTranslate' }, | ||
TRANSLATE_BUTTON_LISTEN: { type: 'icon', iconName: '#icon-GoUnmute' }, | ||
TRANSLATE_BUTTON_COPY: { type: 'icon', iconName: '#icon-copy' } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.