added ar to config and added fallback to the main.ts recordingStatus
This commit is contained in:
+3
-1
@@ -285,7 +285,9 @@ function updateTrayMenu(recording: boolean = false) {
|
||||
if (!tray) return;
|
||||
const trayIcon = recording ? recordingTrayIcon : defaultTrayIcon;
|
||||
const trayToolTip = recording
|
||||
? mainT("common", "actions.recordingStatus", { source: selectedSourceName })
|
||||
? mainT("common", "actions.recordingStatus", {
|
||||
source: selectedSourceName,
|
||||
}) || `Recording: ${selectedSourceName}`
|
||||
: "OpenScreen";
|
||||
const menuTemplate = recording
|
||||
? [
|
||||
|
||||
@@ -1079,8 +1079,9 @@ export function SettingsPanel({
|
||||
const turningOn = !cursorHighlight.onlyOnClicks;
|
||||
if (turningOn) {
|
||||
try {
|
||||
const result = await window.electronAPI.requestAccessibilityAccess();
|
||||
if (!result.granted) {
|
||||
const result =
|
||||
await window.electronAPI?.requestAccessibilityAccess?.();
|
||||
if (!result?.granted) {
|
||||
toast.message(
|
||||
t("effects.cursorHighlight.accessibilityPermissionTitle"),
|
||||
{
|
||||
@@ -1089,6 +1090,7 @@ export function SettingsPanel({
|
||||
),
|
||||
},
|
||||
);
|
||||
return;
|
||||
}
|
||||
} catch (err) {
|
||||
console.warn("Accessibility request failed:", err);
|
||||
|
||||
@@ -8,6 +8,7 @@ export const SUPPORTED_LOCALES = [
|
||||
"tr",
|
||||
"ko-KR",
|
||||
"ja-JP",
|
||||
"ar",
|
||||
] as const;
|
||||
export const I18N_NAMESPACES = [
|
||||
"common",
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
"dialogTitle": "إضافة خط Google",
|
||||
"urlLabel": "رابط استيراد خطوط Google",
|
||||
"urlPlaceholder": "https://fonts.googleapis.com/css2?family=Roboto&display=swap",
|
||||
"urlHelp": "احصل على هذا من خطوط Google: حدد خطًا → انقر على \"Get font\" → انسخ رابط @import",
|
||||
"urlHelp": "احصل على هذا من خطوط Google: حدد خطًا → انقر على \"احصل على الخط\" → انسخ رابط `@import`",
|
||||
"nameLabel": "اسم العرض",
|
||||
"namePlaceholder": "خطي المخصص",
|
||||
"nameHelp": "هكذا سيظهر الخط في محدد الخطوط",
|
||||
|
||||
Reference in New Issue
Block a user