added ar to config and added fallback to the main.ts recordingStatus

This commit is contained in:
i1Zeus
2026-05-03 20:55:11 +03:00
parent 59ecedb0ac
commit a0d1cfe8c8
4 changed files with 9 additions and 4 deletions
+3 -1
View File
@@ -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);
+1
View File
@@ -8,6 +8,7 @@ export const SUPPORTED_LOCALES = [
"tr",
"ko-KR",
"ja-JP",
"ar",
] as const;
export const I18N_NAMESPACES = [
"common",
+1 -1
View File
@@ -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": "هكذا سيظهر الخط في محدد الخطوط",