forked from Shinonome/dots-hyprland
Add translation
This commit is contained in:
@@ -6,6 +6,7 @@ const { execAsync, exec } = Utils;
|
||||
import { MaterialIcon } from '../../.commonwidgets/materialicon.js';
|
||||
import { setupCursorHover } from '../../.widgetutils/cursorhover.js';
|
||||
import { ConfigToggle } from '../../.commonwidgets/configwidgets.js';
|
||||
import { getString } from '../../../i18n/i18n.js';
|
||||
|
||||
// can't connect: sync_problem
|
||||
|
||||
@@ -43,7 +44,7 @@ const BluetoothDevice = (device) => {
|
||||
label: device.connected ? 'Connected' : (device.paired ? 'Paired' : ''),
|
||||
className: 'txt-subtext',
|
||||
setup: (self) => self.hook(device, (self) => {
|
||||
self.label = device.connected ? 'Connected' : (device.paired ? 'Paired' : '');
|
||||
self.label = device.connected ? getString('Connected') : (device.paired ? getString('Paired') : '');
|
||||
}),
|
||||
}),
|
||||
]
|
||||
@@ -64,7 +65,7 @@ const BluetoothDevice = (device) => {
|
||||
vpack: 'center',
|
||||
className: 'sidebar-bluetooth-device-remove',
|
||||
child: MaterialIcon('delete', 'norm'),
|
||||
tooltipText: 'Remove device',
|
||||
tooltipText: getString('Remove device'),
|
||||
setup: setupCursorHover,
|
||||
onClicked: () => execAsync(['bluetoothctl', 'remove', device.address]).catch(print),
|
||||
});
|
||||
@@ -144,7 +145,7 @@ export default (props) => {
|
||||
execAsync(['bash', '-c', userOptions.apps.bluetooth]).catch(print);
|
||||
closeEverything();
|
||||
},
|
||||
label: 'More',
|
||||
label: getString('More'),
|
||||
setup: setupCursorHover,
|
||||
})],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user