mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 17:49:58 +00:00
Add missing i18n to native macOS receiver selector and refactor
This commit is contained in:
@@ -21,10 +21,10 @@
|
||||
, "popupMediaSelectToLabel": {
|
||||
"message": "to:"
|
||||
}
|
||||
, "popupCastButtonLabel": {
|
||||
, "popupCastButtonTitle": {
|
||||
"message": "Cast"
|
||||
}
|
||||
, "popupCastingButtonLabel": {
|
||||
, "popupCastingButtonTitle": {
|
||||
"message": "Casting"
|
||||
}
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
"message": ""
|
||||
}
|
||||
|
||||
, "popupCastButtonLabel": {
|
||||
, "popupCastButtonTitle": {
|
||||
"message": "Casten"
|
||||
}
|
||||
, "popupCastingButtonLabel": {
|
||||
, "popupCastingButtonTitle": {
|
||||
"message": "Aan het casten"
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,9 @@ export default class NativeMacReceiverSelectorManager
|
||||
, data: JSON.stringify({
|
||||
receivers
|
||||
, defaultMediaType
|
||||
|
||||
, i18n_extensionName: _("extensionName")
|
||||
, i18n_castButtonTitle: _("popupCastButtonTitle")
|
||||
, i18n_mediaTypeApp: _("popupMediaTypeApp")
|
||||
, i18n_mediaTypeTab: _("popupMediaTypeTab")
|
||||
, i18n_mediaTypeScreen: _("popupMediaTypeScreen")
|
||||
|
||||
@@ -187,11 +187,11 @@ class ReceiverEntry extends Component<ReceiverEntryProps, ReceiverEntryState> {
|
||||
onClick={ this.handleCast }
|
||||
disabled={this.props.isLoading}>
|
||||
{ this.state.isLoading
|
||||
? _("popupCastingButtonLabel") +
|
||||
? _("popupCastingButtonTitle") +
|
||||
(this.state.isLoading
|
||||
? this.state.ellipsis
|
||||
: "")
|
||||
: _("popupCastButtonLabel") }
|
||||
: _("popupCastButtonTitle") }
|
||||
</button>
|
||||
</li>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user