Compare commits

..

33 Commits

Author SHA1 Message Date
Anders Kaseorg
c45c9537d1 release: New release v5.11.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 16:19:52 -07:00
Anders Kaseorg
0eb4c9236e Upgrade dependencies, including Electron 29.1.5.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 16:12:34 -07:00
Anders Kaseorg
47366b7617 xo: Fix unicorn/prevent-abbreviations.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 16:07:32 -07:00
Anders Kaseorg
86e28f5b00 xo: Fix import/no-duplicates.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 15:33:00 -07:00
Anders Kaseorg
7072a41e01 Remove dialog for certificate errors on subresources.
Fixes #1119.  Closes #1277.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-22 14:56:23 -07:00
enesonus
79f6f13008 Allow hiding the window from full screen mode on macOS.
Fixes #1187.
2024-03-22 14:39:48 -07:00
Anders Kaseorg
70f0170f1d webview: Enable zooming with the mouse wheel.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-21 15:32:52 -07:00
Anders Kaseorg
bc75eba2bd webview: Use an exponential scale for zooming.
This matches the native Electron behavior.

Fixes part of #1360 by removing the separate zoomFactor state
variable.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-21 15:31:56 -07:00
Anders Kaseorg
af7272a439 release: New release v5.10.5.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-25 17:02:14 -08:00
Anders Kaseorg
9d08a13e64 Set a restrictive Content-Security-Policy for the app UI.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-25 15:39:05 -08:00
Anders Kaseorg
f98d6d7037 Upgrade dependencies, including Electron 28.2.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-25 14:05:37 -08:00
Anders Kaseorg
da1cad9dff autoupdater: Use a separate electron-log instance.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-23 16:09:20 -08:00
Anders Kaseorg
955a2eb6c7 Use process-specific electron-log modules.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-23 16:09:20 -08:00
Anders Kaseorg
1cf822a2b5 Use process-specific @sentry/electron modules.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-23 16:09:20 -08:00
Anders Kaseorg
b9baf140eb release: New release v5.10.4.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-08 17:12:08 -08:00
Anders Kaseorg
727c2335f6 electron-bridge: Fix unicorn/prefer-node-protocol.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-08 17:10:37 -08:00
Anders Kaseorg
e8173919f8 Upgrade dependencies, including Electron 28.1.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-08 17:10:37 -08:00
Anders Kaseorg
cf2f4fe9c9 Avoid deprecated ipcRenderer.sendTo.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-08 16:02:14 -08:00
Anders Kaseorg
47cdd5fa8b release: New release v5.10.3.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-29 23:38:26 -07:00
Anders Kaseorg
90e76fab6e Upgrade dependencies, including Electron 25.8.4.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-29 23:38:22 -07:00
Anders Kaseorg
193adb1901 Fix gatemaker TypeError with Electron 25.
This had been breaking our download notifications.  Fixes #1333.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-29 23:25:32 -07:00
Anders Kaseorg
b520e12492 release: New release v5.10.2.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-14 10:31:05 -07:00
Anders Kaseorg
ae642bc7ba Downgrade Electron from 26.2.1 to 25.8.1 to avoid renderer crash.
https://github.com/electron/electron/issues/39775

Fixes #1327.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-14 10:30:50 -07:00
Anders Kaseorg
e90f3732c5 release: New release v5.10.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:22:25 -07:00
Anders Kaseorg
6b31a8a0c4 workflows: Update actions/checkout to v4.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:22:25 -07:00
Anders Kaseorg
f8758fa303 Use electron fetch API.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:22:25 -07:00
Anders Kaseorg
d2de965106 translations: Update translations from Transifex.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:19:31 -07:00
Anders Kaseorg
a32119b55d Upgrade dependencies, including Electron 26.2.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 23:19:31 -07:00
Anders Kaseorg
58049a91c4 Upgrade xo and prettier.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 22:47:15 -07:00
Anders Kaseorg
9810d69c3b renderer: Compensate for Chrome’s removal of overflow: overlay.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 22:47:15 -07:00
Anders Kaseorg
d2f949d683 Use Electron Event type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 19:15:08 -07:00
Anders Kaseorg
a8c283a50b renderer: Remove unused reloadView argument.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-13 19:15:08 -07:00
nooblag
dab29d4720 renderer: Improve GIF loading spinner with new SVG. 2023-09-13 19:15:08 -07:00
89 changed files with 7207 additions and 4278 deletions

View File

@@ -10,6 +10,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: npm ci
- run: npm test

View File

@@ -1,7 +1,7 @@
import fs from "node:fs";
import path from "node:path";
import * as Sentry from "@sentry/electron";
import * as Sentry from "@sentry/core";
import {JsonDB} from "node-json-db";
import {DataError} from "node-json-db/dist/lib/Errors";
import type {z} from "zod";
@@ -19,23 +19,23 @@ const logger = new Logger({
file: "config-util.log",
});
let db: JsonDB;
let database: JsonDB;
reloadDb();
reloadDatabase();
export function getConfigItem<Key extends keyof Config>(
key: Key,
defaultValue: Config[Key],
): z.output<(typeof configSchemata)[Key]> {
try {
db.reload();
database.reload();
} catch (error: unknown) {
logger.error("Error while reloading settings.json: ");
logger.error(error);
}
try {
return configSchemata[key].parse(db.getObject<unknown>(`/${key}`));
return configSchemata[key].parse(database.getObject<unknown>(`/${key}`));
} catch (error: unknown) {
if (!(error instanceof DataError)) throw error;
setConfigItem(key, defaultValue);
@@ -46,13 +46,13 @@ export function getConfigItem<Key extends keyof Config>(
// This function returns whether a key exists in the configuration file (settings.json)
export function isConfigItemExists(key: string): boolean {
try {
db.reload();
database.reload();
} catch (error: unknown) {
logger.error("Error while reloading settings.json: ");
logger.error(error);
}
return db.exists(`/${key}`);
return database.exists(`/${key}`);
}
export function setConfigItem<Key extends keyof Config>(
@@ -66,16 +66,16 @@ export function setConfigItem<Key extends keyof Config>(
}
configSchemata[key].parse(value);
db.push(`/${key}`, value, true);
db.save();
database.push(`/${key}`, value, true);
database.save();
}
export function removeConfigItem(key: string): void {
db.delete(`/${key}`);
db.save();
database.delete(`/${key}`);
database.save();
}
function reloadDb(): void {
function reloadDatabase(): void {
const settingsJsonPath = path.join(
app.getPath("userData"),
"/config/settings.json",
@@ -96,5 +96,5 @@ function reloadDb(): void {
}
}
db = new JsonDB(settingsJsonPath, true, true);
database = new JsonDB(settingsJsonPath, true, true);
}

View File

@@ -4,30 +4,30 @@ import {app} from "zulip:remote";
let setupCompleted = false;
const zulipDir = app.getPath("userData");
const logDir = `${zulipDir}/Logs/`;
const configDir = `${zulipDir}/config/`;
const zulipDirectory = app.getPath("userData");
const logDirectory = `${zulipDirectory}/Logs/`;
const configDirectory = `${zulipDirectory}/config/`;
export const initSetUp = (): void => {
// If it is the first time the app is running
// create zulip dir in userData folder to
// avoid errors
if (!setupCompleted) {
if (!fs.existsSync(zulipDir)) {
fs.mkdirSync(zulipDir);
if (!fs.existsSync(zulipDirectory)) {
fs.mkdirSync(zulipDirectory);
}
if (!fs.existsSync(logDir)) {
fs.mkdirSync(logDir);
if (!fs.existsSync(logDirectory)) {
fs.mkdirSync(logDirectory);
}
// Migrate config files from app data folder to config folder inside app
// data folder. This will be done once when a user updates to the new version.
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir);
const domainJson = `${zulipDir}/domain.json`;
const settingsJson = `${zulipDir}/settings.json`;
const updatesJson = `${zulipDir}/updates.json`;
const windowStateJson = `${zulipDir}/window-state.json`;
if (!fs.existsSync(configDirectory)) {
fs.mkdirSync(configDirectory);
const domainJson = `${zulipDirectory}/domain.json`;
const settingsJson = `${zulipDirectory}/settings.json`;
const updatesJson = `${zulipDirectory}/updates.json`;
const windowStateJson = `${zulipDirectory}/window-state.json`;
const configData = [
{
path: domainJson,
@@ -44,7 +44,7 @@ export const initSetUp = (): void => {
];
for (const data of configData) {
if (fs.existsSync(data.path)) {
fs.copyFileSync(data.path, configDir + data.fileName);
fs.copyFileSync(data.path, configDirectory + data.fileName);
fs.unlinkSync(data.path);
}
}

View File

@@ -20,9 +20,9 @@ const logger = new Logger({
let enterpriseSettings: Partial<EnterpriseConfig>;
let configFile: boolean;
reloadDb();
reloadDatabase();
function reloadDb(): void {
function reloadDatabase(): void {
let enterpriseFile = "/etc/zulip-desktop-config/global_config.json";
if (process.platform === "win32") {
enterpriseFile =
@@ -56,7 +56,7 @@ export function getConfigItem<Key extends keyof EnterpriseConfig>(
key: Key,
defaultValue: EnterpriseConfig[Key],
): EnterpriseConfig[Key] {
reloadDb();
reloadDatabase();
if (!configFile) {
return defaultValue;
}
@@ -66,7 +66,7 @@ export function getConfigItem<Key extends keyof EnterpriseConfig>(
}
export function configItemExists(key: keyof EnterpriseConfig): boolean {
reloadDb();
reloadDatabase();
if (!configFile) {
return false;
}

View File

@@ -11,12 +11,12 @@ export async function openBrowser(url: URL): Promise<void> {
} else {
// For security, indirect links to non-whitelisted protocols
// through a real web browser via a local HTML file.
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "zulip-redirect-"));
const file = path.join(dir, "redirect.html");
const directory = fs.mkdtempSync(path.join(os.tmpdir(), "zulip-redirect-"));
const file = path.join(directory, "redirect.html");
fs.writeFileSync(
file,
html`
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
@@ -37,7 +37,7 @@ export async function openBrowser(url: URL): Promise<void> {
await shell.openPath(file);
setTimeout(() => {
fs.unlinkSync(file);
fs.rmdirSync(dir);
fs.rmdirSync(directory);
}, 15_000);
}
}

View File

@@ -13,7 +13,7 @@ type LoggerOptions = {
initSetUp();
const logDir = `${app.getPath("userData")}/Logs`;
const logDirectory = `${app.getPath("userData")}/Logs`;
type Level = "log" | "debug" | "info" | "warn" | "error";
@@ -23,7 +23,7 @@ export default class Logger {
constructor(options: LoggerOptions = {}) {
let {file = "console.log"} = options;
file = `${logDir}/${file}`;
file = `${logDirectory}/${file}`;
// Trim log according to type of process
if (process.type === "renderer") {
@@ -38,31 +38,31 @@ export default class Logger {
this.nodeConsole = nodeConsole;
}
_log(type: Level, ...args: unknown[]): void {
args.unshift(this.getTimestamp() + " |\t");
args.unshift(type.toUpperCase() + " |");
this.nodeConsole[type](...args);
console[type](...args);
_log(type: Level, ...arguments_: unknown[]): void {
arguments_.unshift(this.getTimestamp() + " |\t");
arguments_.unshift(type.toUpperCase() + " |");
this.nodeConsole[type](...arguments_);
console[type](...arguments_);
}
log(...args: unknown[]): void {
this._log("log", ...args);
log(...arguments_: unknown[]): void {
this._log("log", ...arguments_);
}
debug(...args: unknown[]): void {
this._log("debug", ...args);
debug(...arguments_: unknown[]): void {
this._log("debug", ...arguments_);
}
info(...args: unknown[]): void {
this._log("info", ...args);
info(...arguments_: unknown[]): void {
this._log("info", ...arguments_);
}
warn(...args: unknown[]): void {
this._log("warn", ...args);
warn(...arguments_: unknown[]): void {
this._log("warn", ...arguments_);
}
error(...args: unknown[]): void {
this._log("error", ...args);
error(...arguments_: unknown[]): void {
this._log("error", ...arguments_);
}
getTimestamp(): string {

View File

@@ -1,5 +1,5 @@
import type {DndSettings} from "./dnd-util.js";
import type {MenuProps, ServerConf} from "./types.js";
import type {MenuProperties, ServerConfig} from "./types.js";
export type MainMessage = {
"clear-app-settings": () => void;
@@ -21,12 +21,12 @@ export type MainMessage = {
toggleAutoLauncher: (AutoLaunchValue: boolean) => void;
"unread-count": (unreadCount: number) => void;
"update-badge": (messageCount: number) => void;
"update-menu": (props: MenuProps) => void;
"update-menu": (properties: MenuProperties) => void;
"update-taskbar-icon": (data: string, text: string) => void;
};
export type MainCall = {
"get-server-settings": (domain: string) => ServerConf;
"get-server-settings": (domain: string) => ServerConfig;
"is-online": (url: string) => boolean;
"poll-clipboard": (key: Uint8Array, sig: Uint8Array) => string | undefined;
"save-server-icon": (iconURL: string) => string | null;
@@ -74,7 +74,7 @@ export type RendererMessage = {
"toggle-silent": (state: boolean) => void;
"toggle-tray": (state: boolean) => void;
toggletray: () => void;
tray: (arg: number) => void;
tray: (argument: number) => void;
"update-realm-icon": (serverURL: string, iconURL: string) => void;
"update-realm-name": (serverURL: string, realmName: string) => void;
"webview-reload": () => void;

View File

@@ -1,17 +1,17 @@
export type MenuProps = {
export type MenuProperties = {
tabs: TabData[];
activeTabIndex?: number;
enableMenu?: boolean;
};
export type NavItem =
export type NavigationItem =
| "General"
| "Network"
| "AddServer"
| "Organizations"
| "Shortcuts";
export type ServerConf = {
export type ServerConfig = {
url: string;
alias: string;
icon: string;

View File

@@ -2,9 +2,12 @@ import {shell} from "electron/common";
import {app, dialog, session} from "electron/main";
import process from "node:process";
import log from "electron-log";
import type {UpdateDownloadedEvent, UpdateInfo} from "electron-updater";
import {autoUpdater} from "electron-updater";
import log from "electron-log/main";
import {
type UpdateDownloadedEvent,
type UpdateInfo,
autoUpdater,
} from "electron-updater";
import * as ConfigUtil from "../common/config-util.js";
@@ -31,9 +34,10 @@ export async function appUpdater(updateFromMenu = false): Promise<void> {
let updateAvailable = false;
// Log what's happening
log.transports.file.fileName = "updates.log";
log.transports.file.level = "info";
autoUpdater.logger = log;
const updateLogger = log.create({logId: "updates"});
updateLogger.transports.file.fileName = "updates.log";
updateLogger.transports.file.level = "info";
autoUpdater.logger = updateLogger;
// Handle auto updates for beta/pre releases
const isBetaUpdate = ConfigUtil.getConfigItem("betaUpdate", false);

View File

@@ -1,6 +1,5 @@
import {nativeImage} from "electron/common";
import type {BrowserWindow} from "electron/main";
import {app} from "electron/main";
import {type BrowserWindow, app} from "electron/main";
import process from "node:process";
import * as ConfigUtil from "../common/config-util.js";

View File

@@ -1,10 +1,11 @@
import {shell} from "electron/common";
import type {
HandlerDetails,
SaveDialogOptions,
WebContents,
import {type Event, shell} from "electron/common";
import {
type HandlerDetails,
Notification,
type SaveDialogOptions,
type WebContents,
app,
} from "electron/main";
import {Notification, app} from "electron/main";
import fs from "node:fs";
import path from "node:path";
@@ -31,7 +32,7 @@ function downloadFile({
failed(state: string): void;
}) {
contents.downloadURL(url);
contents.session.once("will-download", async (_event: Event, item) => {
contents.session.once("will-download", async (_event, item) => {
if (ConfigUtil.getConfigItem("promptDownload", false)) {
const showDialogOptions: SaveDialogOptions = {
defaultPath: path.join(downloadPath, item.getFilename()),
@@ -86,7 +87,7 @@ function downloadFile({
};
item.on("updated", updatedListener);
item.once("done", async (_event: Event, state) => {
item.once("done", async (_event, state) => {
if (state === "completed") {
await completed(item.getSavePath(), path.basename(item.getSavePath()));
} else {

View File

@@ -1,6 +1,14 @@
import {clipboard} from "electron/common";
import type {IpcMainEvent, WebContents} from "electron/main";
import {BrowserWindow, app, dialog, powerMonitor, session} from "electron/main";
import {
BrowserWindow,
type IpcMainEvent,
type WebContents,
app,
dialog,
powerMonitor,
session,
webContents,
} from "electron/main";
import {Buffer} from "node:buffer";
import crypto from "node:crypto";
import path from "node:path";
@@ -12,7 +20,7 @@ import windowStateKeeper from "electron-window-state";
import * as ConfigUtil from "../common/config-util.js";
import {bundlePath, bundleUrl, publicPath} from "../common/paths.js";
import type {RendererMessage} from "../common/typed-ipc.js";
import type {MenuProps} from "../common/types.js";
import type {MenuProperties} from "../common/types.js";
import {appUpdater, shouldQuitForUpdate} from "./autoupdater.js";
import * as BadgeSettings from "./badge-settings.js";
@@ -102,7 +110,14 @@ function createMainWindow(): BrowserWindow {
event.preventDefault();
if (process.platform === "darwin") {
app.hide();
if (win.isFullScreen()) {
win.setFullScreen(false);
win.once("leave-full-screen", () => {
app.hide();
});
} else {
app.hide();
}
} else {
win.hide();
}
@@ -170,7 +185,7 @@ function createMainWindow(): BrowserWindow {
ipcMain.on(
"permission-callback",
(event: Event, permissionCallbackId: number, grant: boolean) => {
(event, permissionCallbackId: number, grant: boolean) => {
permissionCallbacks.get(permissionCallbackId)?.(grant);
permissionCallbacks.delete(permissionCallbackId);
},
@@ -181,7 +196,7 @@ function createMainWindow(): BrowserWindow {
mainWindow.show();
});
app.on("web-contents-created", (_event: Event, contents: WebContents) => {
app.on("web-contents-created", (_event, contents: WebContents) => {
contents.setWindowOpenHandler((details) => {
handleExternalLink(contents, details, page);
return {action: "deny"};
@@ -291,18 +306,24 @@ function createMainWindow(): BrowserWindow {
app.on(
"certificate-error",
(
event: Event,
webContents: WebContents,
urlString: string,
error: string,
event,
webContents,
urlString,
error,
certificate,
callback,
isMainFrame,
// eslint-disable-next-line max-params
) => {
const url = new URL(urlString);
dialog.showErrorBox(
"Certificate error",
`The server presented an invalid certificate for ${url.origin}:
if (isMainFrame) {
const url = new URL(urlString);
dialog.showErrorBox(
"Certificate error",
`The server presented an invalid certificate for ${url.origin}:
${error}`,
);
);
}
},
);
@@ -361,24 +382,21 @@ ${error}`,
BadgeSettings.updateBadge(badgeCount, mainWindow);
});
ipcMain.on("toggle-menubar", (_event: IpcMainEvent, showMenubar: boolean) => {
ipcMain.on("toggle-menubar", (_event, showMenubar: boolean) => {
mainWindow.autoHideMenuBar = showMenubar;
mainWindow.setMenuBarVisibility(!showMenubar);
send(page, "toggle-autohide-menubar", showMenubar, true);
});
ipcMain.on("update-badge", (_event: IpcMainEvent, messageCount: number) => {
ipcMain.on("update-badge", (_event, messageCount: number) => {
badgeCount = messageCount;
BadgeSettings.updateBadge(badgeCount, mainWindow);
send(page, "tray", messageCount);
});
ipcMain.on(
"update-taskbar-icon",
(_event: IpcMainEvent, data: string, text: string) => {
BadgeSettings.updateTaskbarIcon(data, text, mainWindow);
},
);
ipcMain.on("update-taskbar-icon", (_event, data: string, text: string) => {
BadgeSettings.updateTaskbarIcon(data, text, mainWindow);
});
ipcMain.on(
"forward-message",
@@ -391,40 +409,52 @@ ${error}`,
},
);
ipcMain.on("update-menu", (_event: IpcMainEvent, props: MenuProps) => {
AppMenu.setMenu(props);
if (props.activeTabIndex !== undefined) {
const activeTab = props.tabs[props.activeTabIndex];
ipcMain.on(
"forward-to",
<Channel extends keyof RendererMessage>(
_event: IpcMainEvent,
webContentsId: number,
listener: Channel,
...parameters: Parameters<RendererMessage[Channel]>
) => {
const contents = webContents.fromId(webContentsId);
if (contents !== undefined) {
send(contents, listener, ...parameters);
}
},
);
ipcMain.on("update-menu", (_event, properties: MenuProperties) => {
AppMenu.setMenu(properties);
if (properties.activeTabIndex !== undefined) {
const activeTab = properties.tabs[properties.activeTabIndex];
mainWindow.setTitle(`Zulip - ${activeTab.name}`);
}
});
ipcMain.on(
"toggleAutoLauncher",
async (_event: IpcMainEvent, AutoLaunchValue: boolean) => {
await setAutoLaunch(AutoLaunchValue);
},
);
ipcMain.on("toggleAutoLauncher", async (_event, AutoLaunchValue: boolean) => {
await setAutoLaunch(AutoLaunchValue);
});
ipcMain.on(
"realm-name-changed",
(_event: IpcMainEvent, serverURL: string, realmName: string) => {
(_event, serverURL: string, realmName: string) => {
send(page, "update-realm-name", serverURL, realmName);
},
);
ipcMain.on(
"realm-icon-changed",
(_event: IpcMainEvent, serverURL: string, iconURL: string) => {
(_event, serverURL: string, iconURL: string) => {
send(page, "update-realm-icon", serverURL, iconURL);
},
);
ipcMain.on("save-last-tab", (_event: IpcMainEvent, index: number) => {
ipcMain.on("save-last-tab", (_event, index: number) => {
ConfigUtil.setConfigItem("lastActiveTab", index);
});
ipcMain.on("focus-this-webview", (event: IpcMainEvent) => {
ipcMain.on("focus-this-webview", (event) => {
send(page, "focus-webview-with-id", event.sender.id);
mainWindow.show();
});

View File

@@ -11,18 +11,18 @@ const logger = new Logger({
file: "linux-update-util.log",
});
let db: JsonDB;
let database: JsonDB;
reloadDb();
reloadDatabase();
export function getUpdateItem(
key: string,
defaultValue: true | null = null,
): true | null {
reloadDb();
reloadDatabase();
let value: unknown;
try {
value = db.getObject<unknown>(`/${key}`);
value = database.getObject<unknown>(`/${key}`);
} catch (error: unknown) {
if (!(error instanceof DataError)) throw error;
}
@@ -36,16 +36,16 @@ export function getUpdateItem(
}
export function setUpdateItem(key: string, value: true | null): void {
db.push(`/${key}`, value, true);
reloadDb();
database.push(`/${key}`, value, true);
reloadDatabase();
}
export function removeUpdateItem(key: string): void {
db.delete(`/${key}`);
reloadDb();
database.delete(`/${key}`);
reloadDatabase();
}
function reloadDb(): void {
function reloadDatabase(): void {
const linuxUpdateJsonPath = path.join(
app.getPath("userData"),
"/config/updates.json",
@@ -65,5 +65,5 @@ function reloadDb(): void {
}
}
db = new JsonDB(linuxUpdateJsonPath, true, true);
database = new JsonDB(linuxUpdateJsonPath, true, true);
}

View File

@@ -1,7 +1,5 @@
import type {Session} from "electron/main";
import {Notification, app, net} from "electron/main";
import {Notification, type Session, app} from "electron/main";
import getStream from "get-stream";
import * as semver from "semver";
import {z} from "zod";
@@ -9,7 +7,6 @@ import * as ConfigUtil from "../common/config-util.js";
import Logger from "../common/logger-util.js";
import * as LinuxUpdateUtil from "./linux-update-util.js";
import {fetchResponse} from "./request.js";
const logger = new Logger({
file: "linux-update-util.log",
@@ -20,13 +17,13 @@ export async function linuxUpdateNotification(session: Session): Promise<void> {
url = ConfigUtil.getConfigItem("betaUpdate", false) ? url : url + "/latest";
try {
const response = await fetchResponse(net.request({url, session}));
if (response.statusCode !== 200) {
logger.log("Linux update response status: ", response.statusCode);
const response = await session.fetch(url);
if (!response.ok) {
logger.log("Linux update response status: ", response.status);
return;
}
const data: unknown = JSON.parse(await getStream(response));
const data: unknown = await response.json();
/* eslint-disable @typescript-eslint/naming-convention */
const latestVersion = ConfigUtil.getConfigItem("betaUpdate", false)
? z.array(z.object({tag_name: z.string()})).parse(data)[0].tag_name

View File

@@ -1,6 +1,10 @@
import {shell} from "electron/common";
import type {MenuItemConstructorOptions} from "electron/main";
import {BrowserWindow, Menu, app} from "electron/main";
import {
BrowserWindow,
Menu,
type MenuItemConstructorOptions,
app,
} from "electron/main";
import process from "node:process";
import AdmZip from "adm-zip";
@@ -9,7 +13,7 @@ import * as ConfigUtil from "../common/config-util.js";
import * as DNDUtil from "../common/dnd-util.js";
import * as t from "../common/translation-util.js";
import type {RendererMessage} from "../common/typed-ipc.js";
import type {MenuProps, TabData} from "../common/types.js";
import type {MenuProperties, TabData} from "../common/types.js";
import {appUpdater} from "./autoupdater.js";
import {send} from "./typed-ipc-main.js";
@@ -66,7 +70,7 @@ function getToolsSubmenu(): MenuItemConstructorOptions[] {
click() {
const zip = new AdmZip();
const date = new Date();
const dateString = date.toLocaleDateString().replace(/\//g, "-");
const dateString = date.toLocaleDateString().replaceAll("/", "-");
// Create a zip file of all the logs and config data
zip.addLocalFolder(`${app.getPath("appData")}/${appName}/Logs`);
@@ -368,8 +372,10 @@ function getWindowSubmenu(
return initialSubmenu;
}
function getDarwinTpl(props: MenuProps): MenuItemConstructorOptions[] {
const {tabs, activeTabIndex, enableMenu = false} = props;
function getDarwinTpl(
properties: MenuProperties,
): MenuItemConstructorOptions[] {
const {tabs, activeTabIndex, enableMenu = false} = properties;
return [
{
@@ -533,8 +539,8 @@ function getDarwinTpl(props: MenuProps): MenuItemConstructorOptions[] {
];
}
function getOtherTpl(props: MenuProps): MenuItemConstructorOptions[] {
const {tabs, activeTabIndex, enableMenu = false} = props;
function getOtherTpl(properties: MenuProperties): MenuItemConstructorOptions[] {
const {tabs, activeTabIndex, enableMenu = false} = properties;
return [
{
label: t.__("File"),
@@ -683,7 +689,7 @@ function getOtherTpl(props: MenuProps): MenuItemConstructorOptions[] {
function sendAction<Channel extends keyof RendererMessage>(
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
const win = BrowserWindow.getAllWindows()[0];
@@ -691,7 +697,7 @@ function sendAction<Channel extends keyof RendererMessage>(
win.restore();
}
send(win.webContents, channel, ...args);
send(win.webContents, channel, ...arguments_);
}
async function checkForUpdate(): Promise<void> {
@@ -714,9 +720,11 @@ function getPreviousServer(tabs: TabData[], activeTabIndex: number): number {
return activeTabIndex;
}
export function setMenu(props: MenuProps): void {
export function setMenu(properties: MenuProperties): void {
const tpl =
process.platform === "darwin" ? getDarwinTpl(props) : getOtherTpl(props);
process.platform === "darwin"
? getDarwinTpl(properties)
: getOtherTpl(properties);
const menu = Menu.buildFromTemplate(tpl);
Menu.setApplicationMenu(menu);
}

View File

@@ -1,32 +1,16 @@
import type {ClientRequest, IncomingMessage, Session} from "electron/main";
import {app, net} from "electron/main";
import {type Session, app} from "electron/main";
import fs from "node:fs";
import path from "node:path";
import stream from "node:stream";
import util from "node:util";
import {Readable} from "node:stream";
import {pipeline} from "node:stream/promises";
import type {ReadableStream} from "node:stream/web";
import * as Sentry from "@sentry/electron";
import getStream from "get-stream";
import * as Sentry from "@sentry/electron/main";
import {z} from "zod";
import Logger from "../common/logger-util.js";
import * as Messages from "../common/messages.js";
import type {ServerConf} from "../common/types.js";
export async function fetchResponse(
request: ClientRequest,
): Promise<IncomingMessage> {
return new Promise((resolve, reject) => {
request.on("response", resolve);
request.on("abort", () => {
reject(new Error("Request aborted"));
});
request.on("error", reject);
request.end();
});
}
const pipeline = util.promisify(stream.pipeline);
import type {ServerConfig} from "../common/types.js";
/* Request: domain-util */
@@ -35,7 +19,7 @@ const logger = new Logger({
});
const generateFilePath = (url: string): string => {
const dir = `${app.getPath("userData")}/server-icons`;
const directory = `${app.getPath("userData")}/server-icons`;
const extension = path.extname(url).split("?")[0];
let hash = 5381;
@@ -47,29 +31,24 @@ const generateFilePath = (url: string): string => {
}
// Create 'server-icons' directory if not existed
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
if (!fs.existsSync(directory)) {
fs.mkdirSync(directory);
}
// eslint-disable-next-line no-bitwise
return `${dir}/${hash >>> 0}${extension}`;
return `${directory}/${hash >>> 0}${extension}`;
};
export const _getServerSettings = async (
domain: string,
session: Session,
): Promise<ServerConf> => {
const response = await fetchResponse(
net.request({
url: domain + "/api/v1/server_settings",
session,
}),
);
if (response.statusCode !== 200) {
): Promise<ServerConfig> => {
const response = await session.fetch(domain + "/api/v1/server_settings");
if (!response.ok) {
throw new Error(Messages.invalidZulipServerError(domain));
}
const data: unknown = JSON.parse(await getStream(response));
const data: unknown = await response.json();
/* eslint-disable @typescript-eslint/naming-convention */
const {
realm_name,
@@ -104,14 +83,17 @@ export const _saveServerIcon = async (
session: Session,
): Promise<string | null> => {
try {
const response = await fetchResponse(net.request({url, session}));
if (response.statusCode !== 200) {
const response = await session.fetch(url);
if (!response.ok) {
logger.log("Could not get server icon.");
return null;
}
const filePath = generateFilePath(url);
await pipeline(response, fs.createWriteStream(filePath));
await pipeline(
Readable.fromWeb(response.body as ReadableStream<Uint8Array>),
fs.createWriteStream(filePath),
);
return filePath;
} catch (error: unknown) {
logger.log("Could not get server icon.");
@@ -128,16 +110,10 @@ export const _isOnline = async (
session: Session,
): Promise<boolean> => {
try {
const response = await fetchResponse(
net.request({
method: "HEAD",
url: `${url}/api/v1/server_settings`,
session,
}),
);
const isValidResponse =
response.statusCode >= 200 && response.statusCode < 400;
return isValidResponse;
const response = await session.fetch(`${url}/api/v1/server_settings`, {
method: "HEAD",
});
return response.ok;
} catch (error: unknown) {
logger.log(error);
return false;

View File

@@ -1,6 +1,6 @@
import {app} from "electron/main";
import * as Sentry from "@sentry/electron/main"; // eslint-disable-line n/file-extension-in-import
import * as Sentry from "@sentry/electron/main";
import {getConfigItem} from "../common/config-util.js";

View File

@@ -1,9 +1,7 @@
import type {
IpcMainEvent,
IpcMainInvokeEvent,
WebContents,
} from "electron/main";
import {
type IpcMainEvent,
type IpcMainInvokeEvent,
type WebContents,
ipcMain as untypedIpcMain, // eslint-disable-line no-restricted-imports
} from "electron/main";
@@ -14,14 +12,20 @@ import type {
} from "../common/typed-ipc.js";
type MainListener<Channel extends keyof MainMessage> =
MainMessage[Channel] extends (...args: infer Args) => infer Return
? (event: IpcMainEvent & {returnValue: Return}, ...args: Args) => void
MainMessage[Channel] extends (...arguments_: infer Arguments) => infer Return
? (
event: IpcMainEvent & {returnValue: Return},
...arguments_: Arguments
) => void
: never;
type MainHandler<Channel extends keyof MainCall> = MainCall[Channel] extends (
...args: infer Args
...arguments_: infer Arguments
) => infer Return
? (event: IpcMainInvokeEvent, ...args: Args) => Return | Promise<Return>
? (
event: IpcMainInvokeEvent,
...arguments_: Arguments
) => Return | Promise<Return>
: never;
export const ipcMain: {
@@ -30,7 +34,16 @@ export const ipcMain: {
listener: <Channel extends keyof RendererMessage>(
event: IpcMainEvent,
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
) => void,
): void;
on(
channel: "forward-to",
listener: <Channel extends keyof RendererMessage>(
event: IpcMainEvent,
webContentsId: number,
channel: Channel,
...arguments_: Parameters<RendererMessage[Channel]>
) => void,
): void;
on<Channel extends keyof MainMessage>(
@@ -60,16 +73,16 @@ export const ipcMain: {
export function send<Channel extends keyof RendererMessage>(
contents: WebContents,
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
contents.send(channel, ...args);
contents.send(channel, ...arguments_);
}
export function sendToFrame<Channel extends keyof RendererMessage>(
contents: WebContents,
frameId: number | [number, number],
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
contents.sendToFrame(frameId, channel, ...args);
contents.sendToFrame(frameId, channel, ...arguments_);
}

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<meta charset="UTF-8" />
<link rel="stylesheet" href="css/about.css" />

View File

@@ -2,7 +2,9 @@
font-family: "Material Icons";
font-style: normal;
font-weight: 400;
src: local("Material Icons"), local("MaterialIcons-Regular"),
src:
local("Material Icons"),
local("MaterialIcons-Regular"),
url("../fonts/MaterialIcons-Regular.ttf") format("truetype");
}

View File

@@ -44,6 +44,7 @@ body {
#view-controls-container {
height: calc(100% - 208px);
scrollbar-gutter: stable both-edges;
overflow-y: hidden;
}
@@ -52,16 +53,15 @@ body {
}
#view-controls-container::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
background-color: rgb(0 0 0 / 30%);
}
#view-controls-container::-webkit-scrollbar-thumb {
background-color: rgb(169 169 169 / 100%);
outline: 1px solid rgb(169 169 169 / 100%);
}
#view-controls-container:hover {
overflow-y: overlay;
overflow-y: scroll;
}
/*******************
@@ -290,7 +290,9 @@ body {
content: "";
position: absolute;
z-index: 1;
background: rgb(255 255 255 / 100%) url("../img/ic_loading.gif") no-repeat;
/* Spinner is released under loading.io free License: https://loading.io/license/#free-license */
background: rgb(255 255 255 / 100%) url("../img/ic_loading.svg") no-repeat;
background-size: 60px 60px;
background-position: center;
width: 100%;

View File

@@ -307,7 +307,9 @@ img.server-info-icon {
}
.settings-card:hover {
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 0 0 rgb(0 0 0 / 12%);
box-shadow:
0 2px 5px 0 rgb(0 0 0 / 16%),
0 2px 0 0 rgb(0 0 0 / 12%);
}
.hidden {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin: auto; background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%; display: block; shape-rendering: auto; animation-play-state: running; animation-delay: 0s;" width="150px" height="150px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
<circle cx="50" cy="50" fill="none" stroke="#759ed4" stroke-width="10" r="42" stroke-dasharray="197.92033717615698 67.97344572538566" style="animation-play-state: running; animation-delay: 0s;">
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1" style="animation-play-state: running; animation-delay: 0s;"></animateTransform>
</circle>
<!-- Created with loading.io (https://loading.io/spinner/rolling/-bar-circle-curve-round-rotate) -->
<!-- "The Rolling spinner is released under loading.io free License." (https://loading.io/license/#free-license) -->
</svg>

After

Width:  |  Height:  |  Size: 1018 B

View File

@@ -20,7 +20,7 @@ export type ClipboardDecrypter = {
pasted: Promise<string>;
};
export class ClipboardDecrypterImpl implements ClipboardDecrypter {
export class ClipboardDecrypterImplementation implements ClipboardDecrypter {
version: number;
key: Uint8Array;
pasted: Promise<string>;

View File

@@ -1,4 +1,4 @@
import {clipboard} from "electron/common";
import {type Event, clipboard} from "electron/common";
import type {WebContents} from "electron/main";
import type {
ContextMenuParams,
@@ -13,11 +13,11 @@ import * as t from "../../../common/translation-util.js";
export const contextMenu = (
webContents: WebContents,
event: Event,
props: ContextMenuParams,
properties: ContextMenuParams,
) => {
const isText = props.selectionText !== "";
const isLink = props.linkURL !== "";
const linkUrl = isLink ? new URL(props.linkURL) : undefined;
const isText = properties.selectionText !== "";
const isLink = properties.linkURL !== "";
const linkUrl = isLink ? new URL(properties.linkURL) : undefined;
const makeSuggestion = (suggestion: string) => ({
label: suggestion,
@@ -30,19 +30,21 @@ export const contextMenu = (
let menuTemplate: MenuItemConstructorOptions[] = [
{
label: t.__("Add to Dictionary"),
visible: props.isEditable && isText && props.misspelledWord.length > 0,
visible:
properties.isEditable && isText && properties.misspelledWord.length > 0,
click(_item) {
webContents.session.addWordToSpellCheckerDictionary(
props.misspelledWord,
properties.misspelledWord,
);
},
},
{
type: "separator",
visible: props.isEditable && isText && props.misspelledWord.length > 0,
visible:
properties.isEditable && isText && properties.misspelledWord.length > 0,
},
{
label: `${t.__("Look Up")} "${props.selectionText}"`,
label: `${t.__("Look Up")} "${properties.selectionText}"`,
visible: process.platform === "darwin" && isText,
click(_item) {
webContents.showDefinitionForSelection();
@@ -55,7 +57,7 @@ export const contextMenu = (
{
label: t.__("Cut"),
visible: isText,
enabled: props.isEditable,
enabled: properties.isEditable,
accelerator: "CommandOrControl+X",
click(_item) {
webContents.cut();
@@ -64,7 +66,7 @@ export const contextMenu = (
{
label: t.__("Copy"),
accelerator: "CommandOrControl+C",
enabled: props.editFlags.canCopy,
enabled: properties.editFlags.canCopy,
click(_item) {
webContents.copy();
},
@@ -72,7 +74,7 @@ export const contextMenu = (
{
label: t.__("Paste"), // Bug: Paste replaces text
accelerator: "CommandOrControl+V",
enabled: props.isEditable,
enabled: properties.isEditable,
click() {
webContents.paste();
},
@@ -88,32 +90,34 @@ export const contextMenu = (
visible: isLink,
click(_item) {
clipboard.write({
bookmark: props.linkText,
bookmark: properties.linkText,
text:
linkUrl?.protocol === "mailto:" ? linkUrl.pathname : props.linkURL,
linkUrl?.protocol === "mailto:"
? linkUrl.pathname
: properties.linkURL,
});
},
},
{
label: t.__("Copy Image"),
visible: props.mediaType === "image",
visible: properties.mediaType === "image",
click(_item) {
webContents.copyImageAt(props.x, props.y);
webContents.copyImageAt(properties.x, properties.y);
},
},
{
label: t.__("Copy Image URL"),
visible: props.mediaType === "image",
visible: properties.mediaType === "image",
click(_item) {
clipboard.write({
bookmark: props.srcURL,
text: props.srcURL,
bookmark: properties.srcURL,
text: properties.srcURL,
});
},
},
{
type: "separator",
visible: isLink || props.mediaType === "image",
visible: isLink || properties.mediaType === "image",
},
{
label: t.__("Services"),
@@ -122,10 +126,10 @@ export const contextMenu = (
},
];
if (props.misspelledWord) {
if (props.dictionarySuggestions.length > 0) {
if (properties.misspelledWord) {
if (properties.dictionarySuggestions.length > 0) {
const suggestions: MenuItemConstructorOptions[] =
props.dictionarySuggestions.map((suggestion: string) =>
properties.dictionarySuggestions.map((suggestion: string) =>
makeSuggestion(suggestion),
);
menuTemplate = [...suggestions, ...menuTemplate];

View File

@@ -1,26 +1,24 @@
import type {Html} from "../../../common/html.js";
import {html} from "../../../common/html.js";
import {type Html, html} from "../../../common/html.js";
import {generateNodeFromHtml} from "./base.js";
import type {TabProps} from "./tab.js";
import Tab from "./tab.js";
import Tab, {type TabProperties} from "./tab.js";
export type FunctionalTabProps = {
export type FunctionalTabProperties = {
$view: Element;
} & TabProps;
} & TabProperties;
export default class FunctionalTab extends Tab {
$view: Element;
$el: Element;
$closeButton?: Element;
constructor({$view, ...props}: FunctionalTabProps) {
super(props);
constructor({$view, ...properties}: FunctionalTabProperties) {
super(properties);
this.$view = $view;
this.$el = generateNodeFromHtml(this.templateHtml());
if (this.props.name !== "Settings") {
this.props.$root.append(this.$el);
if (this.properties.name !== "Settings") {
this.properties.$root.append(this.$el);
this.$closeButton = this.$el.querySelector(".server-tab-badge")!;
this.registerListeners();
}
@@ -43,12 +41,12 @@ export default class FunctionalTab extends Tab {
templateHtml(): Html {
return html`
<div class="tab functional-tab" data-tab-id="${this.props.tabIndex}">
<div class="tab functional-tab" data-tab-id="${this.properties.tabIndex}">
<div class="server-tab-badge close-button">
<i class="material-icons">close</i>
</div>
<div class="server-tab">
<i class="material-icons">${this.props.materialIcon}</i>
<i class="material-icons">${this.properties.materialIcon}</i>
</div>
</div>
`;
@@ -65,8 +63,8 @@ export default class FunctionalTab extends Tab {
this.$closeButton?.classList.remove("active");
});
this.$closeButton?.addEventListener("click", (event: Event) => {
this.props.onDestroy?.();
this.$closeButton?.addEventListener("click", (event) => {
this.properties.onDestroy?.();
event.stopPropagation();
});
}

View File

@@ -1,17 +1,15 @@
import process from "node:process";
import type {Html} from "../../../common/html.js";
import {html} from "../../../common/html.js";
import {type Html, html} from "../../../common/html.js";
import {ipcRenderer} from "../typed-ipc-renderer.js";
import {generateNodeFromHtml} from "./base.js";
import type {TabProps} from "./tab.js";
import Tab from "./tab.js";
import Tab, {type TabProperties} from "./tab.js";
import type WebView from "./webview.js";
export type ServerTabProps = {
export type ServerTabProperties = {
webview: Promise<WebView>;
} & TabProps;
} & TabProperties;
export default class ServerTab extends Tab {
webview: Promise<WebView>;
@@ -20,12 +18,12 @@ export default class ServerTab extends Tab {
$icon: HTMLImageElement;
$badge: Element;
constructor({webview, ...props}: ServerTabProps) {
super(props);
constructor({webview, ...properties}: ServerTabProperties) {
super(properties);
this.webview = webview;
this.$el = generateNodeFromHtml(this.templateHtml());
this.props.$root.append(this.$el);
this.properties.$root.append(this.$el);
this.registerListeners();
this.$name = this.$el.querySelector(".server-tooltip")!;
this.$icon = this.$el.querySelector(".server-icons")!;
@@ -49,13 +47,13 @@ export default class ServerTab extends Tab {
templateHtml(): Html {
return html`
<div class="tab" data-tab-id="${this.props.tabIndex}">
<div class="tab" data-tab-id="${this.properties.tabIndex}">
<div class="server-tooltip" style="display:none">
${this.props.name}
${this.properties.name}
</div>
<div class="server-tab-badge"></div>
<div class="server-tab">
<img class="server-icons" src="${this.props.icon}" />
<img class="server-icons" src="${this.properties.icon}" />
</div>
<div class="server-tab-shortcut">${this.generateShortcutText()}</div>
</div>
@@ -63,12 +61,12 @@ export default class ServerTab extends Tab {
}
setName(name: string): void {
this.props.name = name;
this.properties.name = name;
this.$name.textContent = name;
}
setIcon(icon: string): void {
this.props.icon = icon;
this.properties.icon = icon;
this.$icon.src = icon;
}
@@ -79,11 +77,11 @@ export default class ServerTab extends Tab {
generateShortcutText(): string {
// Only provide shortcuts for server [0..9]
if (this.props.index >= 9) {
if (this.properties.index >= 9) {
return "";
}
const shownIndex = this.props.index + 1;
const shownIndex = this.properties.index + 1;
// Array index == Shown index - 1
ipcRenderer.send("switch-server-tab", shownIndex - 1);

View File

@@ -1,6 +1,6 @@
import type {TabRole} from "../../../common/types.js";
export type TabProps = {
export type TabProperties = {
role: TabRole;
icon?: string;
name: string;
@@ -17,17 +17,17 @@ export type TabProps = {
export default abstract class Tab {
abstract $el: Element;
constructor(readonly props: TabProps) {}
constructor(readonly properties: TabProperties) {}
registerListeners(): void {
this.$el.addEventListener("click", this.props.onClick);
this.$el.addEventListener("click", this.properties.onClick);
if (this.props.onHover !== undefined) {
this.$el.addEventListener("mouseover", this.props.onHover);
if (this.properties.onHover !== undefined) {
this.$el.addEventListener("mouseover", this.properties.onHover);
}
if (this.props.onHoverOut !== undefined) {
this.$el.addEventListener("mouseout", this.props.onHoverOut);
if (this.properties.onHoverOut !== undefined) {
this.$el.addEventListener("mouseout", this.properties.onHoverOut);
}
}

View File

@@ -6,11 +6,10 @@ import * as remote from "@electron/remote";
import {app, dialog} from "@electron/remote";
import * as ConfigUtil from "../../../common/config-util.js";
import type {Html} from "../../../common/html.js";
import {html} from "../../../common/html.js";
import {type Html, html} from "../../../common/html.js";
import type {RendererMessage} from "../../../common/typed-ipc.js";
import type {TabRole} from "../../../common/types.js";
import preloadCss from "../../css/preload.css?raw"; // eslint-disable-line n/file-extension-in-import
import preloadCss from "../../css/preload.css?raw";
import {ipcRenderer} from "../typed-ipc-renderer.js";
import * as SystemUtil from "../utils/system-util.js";
@@ -19,7 +18,7 @@ import {contextMenu} from "./context-menu.js";
const shouldSilentWebview = ConfigUtil.getConfigItem("silent", false);
type WebViewProps = {
type WebViewProperties = {
$root: Element;
rootWebContents: WebContents;
index: number;
@@ -36,24 +35,24 @@ type WebViewProps = {
};
export default class WebView {
static templateHtml(props: WebViewProps): Html {
static templateHtml(properties: WebViewProperties): Html {
return html`
<div class="webview-pane">
<div
class="webview-unsupported"
${props.unsupportedMessage === undefined ? html`hidden` : html``}
${properties.unsupportedMessage === undefined ? html`hidden` : html``}
>
<span class="webview-unsupported-message"
>${props.unsupportedMessage ?? ""}</span
>${properties.unsupportedMessage ?? ""}</span
>
<span class="webview-unsupported-dismiss">×</span>
</div>
<webview
data-tab-id="${props.tabIndex}"
src="${props.url}"
${props.preload === undefined
data-tab-id="${properties.tabIndex}"
src="${properties.url}"
${properties.preload === undefined
? html``
: html`preload="${props.preload}"`}
: html`preload="${properties.preload}"`}
partition="persist:webviewsession"
allowpopups
>
@@ -62,11 +61,11 @@ export default class WebView {
`;
}
static async create(props: WebViewProps): Promise<WebView> {
static async create(properties: WebViewProperties): Promise<WebView> {
const $pane = generateNodeFromHtml(
WebView.templateHtml(props),
WebView.templateHtml(properties),
) as HTMLElement;
props.$root.append($pane);
properties.$root.append($pane);
const $webview: HTMLElement = $pane.querySelector(":scope > webview")!;
await new Promise<void>((resolve) => {
@@ -90,22 +89,21 @@ export default class WebView {
}
const selector = `webview[data-tab-id="${CSS.escape(
`${props.tabIndex}`,
`${properties.tabIndex}`,
)}"]`;
const webContentsId: unknown =
await props.rootWebContents.executeJavaScript(
await properties.rootWebContents.executeJavaScript(
`(${getWebContentsIdFunction.toString()})(${JSON.stringify(selector)})`,
);
if (typeof webContentsId !== "number") {
throw new TypeError("Failed to get WebContents ID");
}
return new WebView(props, $pane, $webview, webContentsId);
return new WebView(properties, $pane, $webview, webContentsId);
}
badgeCount = 0;
loading = true;
private zoomFactor = 1;
private customCss: string | false | null;
private readonly $webviewsContainer: DOMTokenList;
private readonly $unsupported: HTMLElement;
@@ -114,7 +112,7 @@ export default class WebView {
private unsupportedDismissed = false;
private constructor(
readonly props: WebViewProps,
readonly properties: WebViewProperties,
private readonly $pane: HTMLElement,
private readonly $webview: HTMLElement,
readonly webContentsId: number,
@@ -161,18 +159,15 @@ export default class WebView {
}
zoomIn(): void {
this.zoomFactor += 0.1;
this.getWebContents().setZoomFactor(this.zoomFactor);
this.getWebContents().zoomLevel += 0.5;
}
zoomOut(): void {
this.zoomFactor -= 0.1;
this.getWebContents().setZoomFactor(this.zoomFactor);
this.getWebContents().zoomLevel -= 0.5;
}
zoomActualSize(): void {
this.zoomFactor = 1;
this.getWebContents().setZoomFactor(this.zoomFactor);
this.getWebContents().zoomLevel = 0;
}
logOut(): void {
@@ -212,7 +207,7 @@ export default class WebView {
// Shows the loading indicator till the webview is reloaded
this.$webviewsContainer.remove("loaded");
this.loading = true;
this.props.switchLoading(true, this.props.url);
this.properties.switchLoading(true, this.properties.url);
this.getWebContents().reload();
}
@@ -224,9 +219,9 @@ export default class WebView {
send<Channel extends keyof RendererMessage>(
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
ipcRenderer.sendTo(this.webContentsId, channel, ...args);
ipcRenderer.send("forward-to", this.webContentsId, channel, ...arguments_);
}
private registerListeners(): void {
@@ -238,7 +233,7 @@ export default class WebView {
webContents.on("page-title-updated", (_event, title) => {
this.badgeCount = this.getBadgeCount(title);
this.props.onTitleChange();
this.properties.onTitleChange();
});
this.$webview.addEventListener("did-navigate-in-page", () => {
@@ -271,7 +266,7 @@ export default class WebView {
this.$webview.addEventListener("dom-ready", () => {
this.loading = false;
this.props.switchLoading(false, this.props.url);
this.properties.switchLoading(false, this.properties.url);
this.show();
});
@@ -280,24 +275,29 @@ export default class WebView {
SystemUtil.connectivityError.includes(errorDescription);
if (hasConnectivityError) {
console.error("error", errorDescription);
if (!this.props.url.includes("network.html")) {
this.props.onNetworkError(this.props.index);
if (!this.properties.url.includes("network.html")) {
this.properties.onNetworkError(this.properties.index);
}
}
});
this.$webview.addEventListener("did-start-loading", () => {
this.props.switchLoading(true, this.props.url);
this.properties.switchLoading(true, this.properties.url);
});
this.$webview.addEventListener("did-stop-loading", () => {
this.props.switchLoading(false, this.props.url);
this.properties.switchLoading(false, this.properties.url);
});
this.$unsupportedDismiss.addEventListener("click", () => {
this.unsupportedDismissed = true;
this.$unsupported.hidden = true;
});
webContents.on("zoom-changed", (event, zoomDirection) => {
if (zoomDirection === "in") this.zoomIn();
else if (zoomDirection === "out") this.zoomOut();
});
}
private getBadgeCount(title: string): number {
@@ -307,7 +307,7 @@ export default class WebView {
private show(): void {
// Do not show WebView if another tab was selected and this tab should be in background.
if (!this.props.isActive()) {
if (!this.properties.isActive()) {
return;
}
@@ -316,7 +316,7 @@ export default class WebView {
this.$pane.classList.add("active");
this.focus();
this.props.onTitleChange();
this.properties.onTitleChange();
// Injecting preload css in webview to override some css rules
(async () => this.getWebContents().insertCSS(preloadCss))();

View File

@@ -1,16 +1,17 @@
import {EventEmitter} from "events"; // eslint-disable-line unicorn/prefer-node-protocol
import {EventEmitter} from "node:events";
import type {ClipboardDecrypter} from "./clipboard-decrypter.js";
import {ClipboardDecrypterImpl} from "./clipboard-decrypter.js";
import type {NotificationData} from "./notification/index.js";
import {newNotification} from "./notification/index.js";
import {
type ClipboardDecrypter,
ClipboardDecrypterImplementation,
} from "./clipboard-decrypter.js";
import {type NotificationData, newNotification} from "./notification/index.js";
import {ipcRenderer} from "./typed-ipc-renderer.js";
type ListenerType = (...args: any[]) => void;
type ListenerType = (...arguments_: any[]) => void;
/* eslint-disable @typescript-eslint/naming-convention */
export type ElectronBridge = {
send_event: (eventName: string | symbol, ...args: unknown[]) => boolean;
send_event: (eventName: string | symbol, ...arguments_: unknown[]) => boolean;
on_event: (eventName: string, listener: ListenerType) => void;
new_notification: (
title: string,
@@ -31,12 +32,12 @@ let idle = false;
// Indicates the time at which user was last active
let lastActive = Date.now();
export const bridgeEvents = new EventEmitter();
export const bridgeEvents = new EventEmitter(); // eslint-disable-line unicorn/prefer-event-target
/* eslint-disable @typescript-eslint/naming-convention */
const electron_bridge: ElectronBridge = {
send_event: (eventName: string | symbol, ...args: unknown[]): boolean =>
bridgeEvents.emit(eventName, ...args),
send_event: (eventName: string | symbol, ...arguments_: unknown[]): boolean =>
bridgeEvents.emit(eventName, ...arguments_),
on_event(eventName: string, listener: ListenerType): void {
bridgeEvents.on(eventName, listener);
@@ -60,7 +61,7 @@ const electron_bridge: ElectronBridge = {
},
decrypt_clipboard: (version: number): ClipboardDecrypter =>
new ClipboardDecrypterImpl(version),
new ClipboardDecrypterImplementation(version),
};
/* eslint-enable @typescript-eslint/naming-convention */

View File

@@ -5,7 +5,7 @@ import url from "node:url";
import {Menu, app, dialog, session} from "@electron/remote";
import * as remote from "@electron/remote";
import * as Sentry from "@sentry/electron";
import * as Sentry from "@sentry/electron/renderer";
import type {Config} from "../../common/config-util.js";
import * as ConfigUtil from "../../common/config-util.js";
@@ -16,7 +16,11 @@ import * as LinkUtil from "../../common/link-util.js";
import Logger from "../../common/logger-util.js";
import * as Messages from "../../common/messages.js";
import {bundlePath, bundleUrl} from "../../common/paths.js";
import type {NavItem, ServerConf, TabData} from "../../common/types.js";
import type {
NavigationItem,
ServerConfig,
TabData,
} from "../../common/types.js";
import defaultIcon from "../img/icon.png";
import FunctionalTab from "./components/functional-tab.js";
@@ -156,12 +160,12 @@ export class ServerManagerView {
ConfigUtil.getConfigItem("useSystemProxy", false)
? {mode: "system"}
: ConfigUtil.getConfigItem("useManualProxy", false)
? {
pacScript: ConfigUtil.getConfigItem("proxyPAC", ""),
proxyRules: ConfigUtil.getConfigItem("proxyRules", ""),
proxyBypassRules: ConfigUtil.getConfigItem("proxyBypass", ""),
}
: {mode: "direct"},
? {
pacScript: ConfigUtil.getConfigItem("proxyPAC", ""),
proxyRules: ConfigUtil.getConfigItem("proxyRules", ""),
proxyBypassRules: ConfigUtil.getConfigItem("proxyBypass", ""),
}
: {mode: "direct"},
);
}
@@ -248,8 +252,8 @@ export class ServerManagerView {
// promise of addition resolves in both cases, but we consider it rejected
// if the resolved value is false
try {
const serverConf = await DomainUtil.checkDomain(domain);
await DomainUtil.addDomain(serverConf);
const serverConfig = await DomainUtil.checkDomain(domain);
await DomainUtil.addDomain(serverConfig);
return true;
} catch (error: unknown) {
logger.error(error);
@@ -325,11 +329,14 @@ export class ServerManagerView {
for (const [i, server] of servers.entries()) {
const tab = this.initServer(server, i);
(async () => {
const serverConf = await DomainUtil.updateSavedServer(server.url, i);
tab.setName(serverConf.alias);
tab.setIcon(DomainUtil.iconAsUrl(serverConf.icon));
const serverConfig = await DomainUtil.updateSavedServer(
server.url,
i,
);
tab.setName(serverConfig.alias);
tab.setIcon(DomainUtil.iconAsUrl(serverConfig.icon));
(await tab.webview).setUnsupportedMessage(
DomainUtil.getUnsupportedMessage(serverConf),
DomainUtil.getUnsupportedMessage(serverConfig),
);
})();
}
@@ -364,7 +371,7 @@ export class ServerManagerView {
}
}
initServer(server: ServerConf, index: number): ServerTab {
initServer(server: ServerConfig, index: number): ServerTab {
const tabIndex = this.getTabIndex();
const tab = new ServerTab({
role: "server",
@@ -398,7 +405,7 @@ export class ServerManagerView {
const tab = this.tabs[this.activeTabIndex];
this.showLoading(
tab instanceof ServerTab &&
this.loading.has((await tab.webview).props.url),
this.loading.has((await tab.webview).properties.url),
);
},
onNetworkError: async (index: number) => {
@@ -481,7 +488,7 @@ export class ServerManagerView {
async getCurrentActiveServer(): Promise<string> {
const tab = this.tabs[this.activeTabIndex];
return tab instanceof ServerTab ? (await tab.webview).props.url : "";
return tab instanceof ServerTab ? (await tab.webview).properties.url : "";
}
displayInitialCharLogo($img: HTMLImageElement, index: number): void {
@@ -550,36 +557,36 @@ export class ServerManagerView {
this.$serverIconTooltip[index].style.display = "none";
}
async openFunctionalTab(tabProps: {
async openFunctionalTab(tabProperties: {
name: string;
materialIcon: string;
makeView: () => Promise<Element>;
destroyView: () => void;
}): Promise<void> {
if (this.functionalTabs.has(tabProps.name)) {
await this.activateTab(this.functionalTabs.get(tabProps.name)!);
if (this.functionalTabs.has(tabProperties.name)) {
await this.activateTab(this.functionalTabs.get(tabProperties.name)!);
return;
}
const index = this.tabs.length;
this.functionalTabs.set(tabProps.name, index);
this.functionalTabs.set(tabProperties.name, index);
const tabIndex = this.getTabIndex();
const $view = await tabProps.makeView();
const $view = await tabProperties.makeView();
this.$webviewsContainer.append($view);
this.tabs.push(
new FunctionalTab({
role: "function",
materialIcon: tabProps.materialIcon,
name: tabProps.name,
materialIcon: tabProperties.materialIcon,
name: tabProperties.name,
$root: this.$tabsContainer,
index,
tabIndex,
onClick: this.activateTab.bind(this, index),
onDestroy: async () => {
await this.destroyTab(tabProps.name, index);
tabProps.destroyView();
await this.destroyTab(tabProperties.name, index);
tabProperties.destroyView();
},
$view,
}),
@@ -589,10 +596,12 @@ export class ServerManagerView {
// closed when the functional tab DOM is ready, handled in webview.js
this.$webviewsContainer.classList.remove("loaded");
await this.activateTab(this.functionalTabs.get(tabProps.name)!);
await this.activateTab(this.functionalTabs.get(tabProperties.name)!);
}
async openSettings(nav: NavItem = "General"): Promise<void> {
async openSettings(
navigationItem: NavigationItem = "General",
): Promise<void> {
await this.openFunctionalTab({
name: "Settings",
materialIcon: "settings",
@@ -607,7 +616,7 @@ export class ServerManagerView {
},
});
this.$settingsButton.classList.add("active");
this.preferenceView!.handleNavigation(nav);
this.preferenceView!.handleNavigation(navigationItem);
}
async openAbout(): Promise<void> {
@@ -646,13 +655,13 @@ export class ServerManagerView {
// Returns this.tabs in an way that does
// not crash app when this.tabs is passed into
// ipcRenderer. Something about webview, and props.webview
// ipcRenderer. Something about webview, and properties.webview
// properties in ServerTab causes the app to crash.
get tabsForIpc(): TabData[] {
return this.tabs.map((tab) => ({
role: tab.props.role,
name: tab.props.name,
index: tab.props.index,
role: tab.properties.role,
name: tab.properties.name,
index: tab.properties.index,
}));
}
@@ -670,8 +679,8 @@ export class ServerManagerView {
if (hideOldTab) {
// If old tab is functional tab Settings, remove focus from the settings icon at sidebar bottom
if (
this.tabs[this.activeTabIndex].props.role === "function" &&
this.tabs[this.activeTabIndex].props.name === "Settings"
this.tabs[this.activeTabIndex].properties.role === "function" &&
this.tabs[this.activeTabIndex].properties.name === "Settings"
) {
this.$settingsButton.classList.remove("active");
}
@@ -695,7 +704,7 @@ export class ServerManagerView {
this.showLoading(
tab instanceof ServerTab &&
this.loading.has((await tab.webview).props.url),
this.loading.has((await tab.webview).properties.url),
);
ipcRenderer.send("update-menu", {
@@ -704,7 +713,7 @@ export class ServerManagerView {
tabs: this.tabsForIpc,
activeTabIndex: this.activeTabIndex,
// Following flag controls whether a menu item should be enabled or not
enableMenu: tab.props.role === "server",
enableMenu: tab.properties.role === "server",
});
}
@@ -721,7 +730,7 @@ export class ServerManagerView {
await tab.destroy();
delete this.tabs[index];
delete this.tabs[index]; // eslint-disable-line @typescript-eslint/no-array-delete
this.functionalTabs.delete(name);
// Issue #188: If the functional tab was not focused, do not activate another tab.
@@ -746,7 +755,7 @@ export class ServerManagerView {
async reloadView(): Promise<void> {
// Save and remember the index of last active tab so that we can use it later
const lastActiveTab = this.tabs[this.activeTabIndex].props.index;
const lastActiveTab = this.tabs[this.activeTabIndex].properties.index;
ConfigUtil.setConfigItem("lastActiveTab", lastActiveTab);
// Destroy the current view and re-initiate it
@@ -924,7 +933,7 @@ export class ServerManagerView {
ipcRenderer.on(
"permission-request",
async (
event: Event,
event,
{
webContentsId,
origin,
@@ -946,7 +955,7 @@ export class ServerManagerView {
const webview = await tab.webview;
return (
webview.webContentsId === webContentsId &&
webview.props.hasPermission?.(origin, permission)
webview.properties.hasPermission?.(origin, permission)
);
}),
)
@@ -973,10 +982,7 @@ export class ServerManagerView {
await LinkUtil.openBrowser(new URL("https://zulip.com/help/"));
});
ipcRenderer.on(
"reload-viewer",
this.reloadView.bind(this, this.tabs[this.activeTabIndex].props.index),
);
ipcRenderer.on("reload-viewer", this.reloadView.bind(this));
ipcRenderer.on("reload-current-viewer", this.reloadCurrentView.bind(this));
@@ -984,7 +990,7 @@ export class ServerManagerView {
ipcRenderer.send("reload-full-app");
});
ipcRenderer.on("switch-server-tab", async (event: Event, index: number) => {
ipcRenderer.on("switch-server-tab", async (event, index: number) => {
await this.activateLastTab(index);
});
@@ -992,7 +998,7 @@ export class ServerManagerView {
await this.openSettings("AddServer");
});
ipcRenderer.on("reload-proxy", async (event: Event, showAlert: boolean) => {
ipcRenderer.on("reload-proxy", async (event, showAlert: boolean) => {
await this.loadProxy();
if (showAlert) {
await dialog.showMessageBox({
@@ -1003,12 +1009,12 @@ export class ServerManagerView {
}
});
ipcRenderer.on("toggle-sidebar", async (event: Event, show: boolean) => {
ipcRenderer.on("toggle-sidebar", async (event, show: boolean) => {
// Toggle the left sidebar
this.toggleSidebar(show);
});
ipcRenderer.on("toggle-silent", async (event: Event, state: boolean) =>
ipcRenderer.on("toggle-silent", async (event, state: boolean) =>
Promise.all(
this.tabs.map(async (tab) => {
if (tab instanceof ServerTab)
@@ -1019,7 +1025,7 @@ export class ServerManagerView {
ipcRenderer.on(
"toggle-autohide-menubar",
async (event: Event, autoHideMenubar: boolean, updateMenu: boolean) => {
async (event, autoHideMenubar: boolean, updateMenu: boolean) => {
if (updateMenu) {
ipcRenderer.send("update-menu", {
tabs: this.tabsForIpc,
@@ -1031,11 +1037,7 @@ export class ServerManagerView {
ipcRenderer.on(
"toggle-dnd",
async (
event: Event,
state: boolean,
newSettings: Partial<DndSettings>,
) => {
async (event, state: boolean, newSettings: Partial<DndSettings>) => {
this.toggleDndButton(state);
ipcRenderer.send(
"forward-message",
@@ -1047,7 +1049,7 @@ export class ServerManagerView {
ipcRenderer.on(
"update-realm-name",
(event: Event, serverURL: string, realmName: string) => {
(event, serverURL: string, realmName: string) => {
for (const [index, domain] of DomainUtil.getDomains().entries()) {
if (domain.url === serverURL) {
const tab = this.tabs[index];
@@ -1066,7 +1068,7 @@ export class ServerManagerView {
ipcRenderer.on(
"update-realm-icon",
async (event: Event, serverURL: string, iconURL: string) => {
async (event, serverURL: string, iconURL: string) => {
await Promise.all(
DomainUtil.getDomains().map(async (domain, index) => {
if (domain.url === serverURL) {
@@ -1091,61 +1093,56 @@ export class ServerManagerView {
this.$fullscreenPopup.classList.remove("show");
});
ipcRenderer.on(
"focus-webview-with-id",
async (event: Event, webviewId: number) =>
Promise.all(
this.tabs.map(async (tab) => {
if (
tab instanceof ServerTab &&
(await tab.webview).webContentsId === webviewId
) {
const concurrentTab: HTMLButtonElement = document.querySelector(
`div[data-tab-id="${CSS.escape(`${tab.props.tabIndex}`)}"]`,
)!;
concurrentTab.click();
}
}),
),
ipcRenderer.on("focus-webview-with-id", async (event, webviewId: number) =>
Promise.all(
this.tabs.map(async (tab) => {
if (
tab instanceof ServerTab &&
(await tab.webview).webContentsId === webviewId
) {
const concurrentTab: HTMLButtonElement = document.querySelector(
`div[data-tab-id="${CSS.escape(`${tab.properties.tabIndex}`)}"]`,
)!;
concurrentTab.click();
}
}),
),
);
ipcRenderer.on(
"render-taskbar-icon",
(event: Event, messageCount: number) => {
// Create a canvas from unread message counts
function createOverlayIcon(messageCount: number): HTMLCanvasElement {
const canvas = document.createElement("canvas");
canvas.height = 128;
canvas.width = 128;
canvas.style.letterSpacing = "-5px";
const ctx = canvas.getContext("2d")!;
ctx.fillStyle = "#f42020";
ctx.beginPath();
ctx.ellipse(64, 64, 64, 64, 0, 0, 2 * Math.PI);
ctx.fill();
ctx.textAlign = "center";
ctx.fillStyle = "white";
if (messageCount > 99) {
ctx.font = "65px Helvetica";
ctx.fillText("99+", 64, 85);
} else if (messageCount < 10) {
ctx.font = "90px Helvetica";
ctx.fillText(String(Math.min(99, messageCount)), 64, 96);
} else {
ctx.font = "85px Helvetica";
ctx.fillText(String(Math.min(99, messageCount)), 64, 90);
}
return canvas;
ipcRenderer.on("render-taskbar-icon", (event, messageCount: number) => {
// Create a canvas from unread message counts
function createOverlayIcon(messageCount: number): HTMLCanvasElement {
const canvas = document.createElement("canvas");
canvas.height = 128;
canvas.width = 128;
canvas.style.letterSpacing = "-5px";
const context = canvas.getContext("2d")!;
context.fillStyle = "#f42020";
context.beginPath();
context.ellipse(64, 64, 64, 64, 0, 0, 2 * Math.PI);
context.fill();
context.textAlign = "center";
context.fillStyle = "white";
if (messageCount > 99) {
context.font = "65px Helvetica";
context.fillText("99+", 64, 85);
} else if (messageCount < 10) {
context.font = "90px Helvetica";
context.fillText(String(Math.min(99, messageCount)), 64, 96);
} else {
context.font = "85px Helvetica";
context.fillText(String(Math.min(99, messageCount)), 64, 90);
}
ipcRenderer.send(
"update-taskbar-icon",
createOverlayIcon(messageCount).toDataURL(),
String(messageCount),
);
},
);
return canvas;
}
ipcRenderer.send(
"update-taskbar-icon",
createOverlayIcon(messageCount).toDataURL(),
String(messageCount),
);
});
ipcRenderer.on("copy-zulip-url", async () => {
clipboard.writeText(await this.getCurrentActiveServer());

View File

@@ -18,10 +18,10 @@ export function newNotification(
): NotificationData {
const notification = new Notification(title, {...options, silent: true});
for (const type of ["click", "close", "error", "show"]) {
notification.addEventListener(type, (ev: Event) => {
notification.addEventListener(type, (event) => {
if (type === "click") ipcRenderer.send("focus-this-webview");
if (!dispatch(type, ev)) {
ev.preventDefault();
if (!dispatch(type, event)) {
event.preventDefault();
}
});
}

View File

@@ -1,17 +1,16 @@
import type {Html} from "../../../../common/html.js";
import {html} from "../../../../common/html.js";
import {type Html, html} from "../../../../common/html.js";
import {generateNodeFromHtml} from "../../components/base.js";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
type BaseSectionProps = {
type BaseSectionProperties = {
$element: HTMLElement;
disabled?: boolean;
value: boolean;
clickHandler: () => void;
};
export function generateSettingOption(props: BaseSectionProps): void {
const {$element, disabled, value, clickHandler} = props;
export function generateSettingOption(properties: BaseSectionProperties): void {
const {$element, disabled, value, clickHandler} = properties;
$element.textContent = "";
@@ -30,8 +29,7 @@ export function generateOptionHtml(
disabled?: boolean,
): Html {
const labelHtml = disabled
? // eslint-disable-next-line unicorn/template-indent
html`<label
? html`<label
class="disallowed"
title="Setting locked by system administrator."
></label>`

View File

@@ -7,13 +7,13 @@ import {reloadApp} from "./base-section.js";
import {initFindAccounts} from "./find-accounts.js";
import {initServerInfoForm} from "./server-info-form.js";
type ConnectedOrgSectionProps = {
type ConnectedOrgSectionProperties = {
$root: Element;
};
export function initConnectedOrgSection({
$root,
}: ConnectedOrgSectionProps): void {
}: ConnectedOrgSectionProperties): void {
$root.textContent = "";
const servers = DomainUtil.getDomains();

View File

@@ -3,7 +3,7 @@ import * as LinkUtil from "../../../../common/link-util.js";
import * as t from "../../../../common/translation-util.js";
import {generateNodeFromHtml} from "../../components/base.js";
type FindAccountsProps = {
type FindAccountsProperties = {
$root: Element;
};
@@ -19,7 +19,7 @@ async function findAccounts(url: string): Promise<void> {
await LinkUtil.openBrowser(new URL("/accounts/find", url));
}
export function initFindAccounts(props: FindAccountsProps): void {
export function initFindAccounts(properties: FindAccountsProperties): void {
const $findAccounts = generateNodeFromHtml(html`
<div class="settings-card certificate-card">
<div class="certificate-input">
@@ -33,7 +33,7 @@ export function initFindAccounts(props: FindAccountsProps): void {
</div>
</div>
`);
props.$root.append($findAccounts);
properties.$root.append($findAccounts);
const $findAccountsButton = $findAccounts.querySelector(
"#find-accounts-button",
)!;

View File

@@ -20,11 +20,11 @@ import {generateSelectHtml, generateSettingOption} from "./base-section.js";
const currentBrowserWindow = remote.getCurrentWindow();
type GeneralSectionProps = {
type GeneralSectionProperties = {
$root: Element;
};
export function initGeneralSection({$root}: GeneralSectionProps): void {
export function initGeneralSection({$root}: GeneralSectionProperties): void {
$root.innerHTML = html`
<div class="settings-pane">
<div class="title">${t.__("Appearance")}</div>
@@ -356,7 +356,8 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
const newValue = !ConfigUtil.getConfigItem("silent", true);
ConfigUtil.setConfigItem("silent", newValue);
updateSilentOption();
ipcRenderer.sendTo(
ipcRenderer.send(
"forward-to",
currentBrowserWindow.webContents.id,
"toggle-silent",
newValue,
@@ -460,9 +461,8 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
filters: [{name: "CSS file", extensions: ["css"]}],
};
const {filePaths, canceled} = await dialog.showOpenDialog(
showDialogOptions,
);
const {filePaths, canceled} =
await dialog.showOpenDialog(showDialogOptions);
if (!canceled) {
ConfigUtil.setConfigItem("customCSS", filePaths[0]);
ipcRenderer.send("forward-message", "hard-reload");
@@ -529,9 +529,8 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
properties: ["openDirectory"],
};
const {filePaths, canceled} = await dialog.showOpenDialog(
showDialogOptions,
);
const {filePaths, canceled} =
await dialog.showOpenDialog(showDialogOptions);
if (!canceled) {
ConfigUtil.setConfigItem("downloadsPath", filePaths[0]);
const downloadFolderPath: HTMLElement = $root.querySelector(

View File

@@ -1,19 +1,18 @@
import type {Html} from "../../../../common/html.js";
import {html} from "../../../../common/html.js";
import {type Html, html} from "../../../../common/html.js";
import * as t from "../../../../common/translation-util.js";
import type {NavItem} from "../../../../common/types.js";
import type {NavigationItem} from "../../../../common/types.js";
import {generateNodeFromHtml} from "../../components/base.js";
type PreferenceNavProps = {
type PreferenceNavigationProperties = {
$root: Element;
onItemSelected: (navItem: NavItem) => void;
onItemSelected: (navigationItem: NavigationItem) => void;
};
export default class PreferenceNav {
navItems: NavItem[];
export default class PreferenceNavigation {
navigationItems: NavigationItem[];
$el: Element;
constructor(private readonly props: PreferenceNavProps) {
this.navItems = [
constructor(private readonly properties: PreferenceNavigationProperties) {
this.navigationItems = [
"General",
"Network",
"AddServer",
@@ -22,15 +21,17 @@ export default class PreferenceNav {
];
this.$el = generateNodeFromHtml(this.templateHtml());
this.props.$root.append(this.$el);
this.properties.$root.append(this.$el);
this.registerListeners();
}
templateHtml(): Html {
const navItemsHtml = html``.join(
this.navItems.map(
(navItem) => html`
<div class="nav" id="nav-${navItem}">${t.__(navItem)}</div>
const navigationItemsHtml = html``.join(
this.navigationItems.map(
(navigationItem) => html`
<div class="nav" id="nav-${navigationItem}">
${t.__(navigationItem)}
</div>
`,
),
);
@@ -38,37 +39,39 @@ export default class PreferenceNav {
return html`
<div>
<div id="settings-header">${t.__("Settings")}</div>
<div id="nav-container">${navItemsHtml}</div>
<div id="nav-container">${navigationItemsHtml}</div>
</div>
`;
}
registerListeners(): void {
for (const navItem of this.navItems) {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navItem)}`)!;
for (const navigationItem of this.navigationItems) {
const $item = this.$el.querySelector(
`#nav-${CSS.escape(navigationItem)}`,
)!;
$item.addEventListener("click", () => {
this.props.onItemSelected(navItem);
this.properties.onItemSelected(navigationItem);
});
}
}
select(navItemToSelect: NavItem): void {
for (const navItem of this.navItems) {
if (navItem === navItemToSelect) {
this.activate(navItem);
select(navigationItemToSelect: NavigationItem): void {
for (const navigationItem of this.navigationItems) {
if (navigationItem === navigationItemToSelect) {
this.activate(navigationItem);
} else {
this.deactivate(navItem);
this.deactivate(navigationItem);
}
}
}
activate(navItem: NavItem): void {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navItem)}`)!;
activate(navigationItem: NavigationItem): void {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navigationItem)}`)!;
$item.classList.add("active");
}
deactivate(navItem: NavItem): void {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navItem)}`)!;
deactivate(navigationItem: NavigationItem): void {
const $item = this.$el.querySelector(`#nav-${CSS.escape(navigationItem)}`)!;
$item.classList.remove("active");
}
}

View File

@@ -5,11 +5,11 @@ import {ipcRenderer} from "../../typed-ipc-renderer.js";
import {generateSettingOption} from "./base-section.js";
type NetworkSectionProps = {
type NetworkSectionProperties = {
$root: Element;
};
export function initNetworkSection({$root}: NetworkSectionProps): void {
export function initNetworkSection({$root}: NetworkSectionProperties): void {
$root.innerHTML = html`
<div class="settings-pane">
<div class="title">${t.__("Proxy")}</div>

View File

@@ -7,12 +7,15 @@ import {generateNodeFromHtml} from "../../components/base.js";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
import * as DomainUtil from "../../utils/domain-util.js";
type NewServerFormProps = {
type NewServerFormProperties = {
$root: Element;
onChange: () => void;
};
export function initNewServerForm({$root, onChange}: NewServerFormProps): void {
export function initNewServerForm({
$root,
onChange,
}: NewServerFormProperties): void {
const $newServerForm = generateNodeFromHtml(html`
<div class="server-input-container">
<div class="title">${t.__("Organization URL")}</div>
@@ -58,9 +61,9 @@ export function initNewServerForm({$root, onChange}: NewServerFormProps): void {
async function submitFormHandler(): Promise<void> {
$saveServerButton.textContent = "Connecting...";
let serverConf;
let serverConfig;
try {
serverConf = await DomainUtil.checkDomain($newServerUrl.value.trim());
serverConfig = await DomainUtil.checkDomain($newServerUrl.value.trim());
} catch (error: unknown) {
$saveServerButton.textContent = "Connect";
await dialog.showMessageBox({
@@ -74,7 +77,7 @@ export function initNewServerForm({$root, onChange}: NewServerFormProps): void {
return;
}
await DomainUtil.addDomain(serverConf);
await DomainUtil.addDomain(serverConfig);
onChange();
}

View File

@@ -1,8 +1,9 @@
import type {IpcRendererEvent} from "electron/renderer";
import process from "node:process";
import type {DndSettings} from "../../../../common/dnd-util.js";
import {bundleUrl} from "../../../../common/paths.js";
import type {NavItem} from "../../../../common/types.js";
import type {NavigationItem} from "../../../../common/types.js";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
import {initConnectedOrgSection} from "./connected-org-section.js";
@@ -25,7 +26,7 @@ export class PreferenceView {
private readonly $shadow: ShadowRoot;
private readonly $settingsContainer: Element;
private readonly nav: Nav;
private navItem: NavItem = "General";
private navigationItem: NavigationItem = "General";
private constructor(templateHtml: string) {
this.$view = document.createElement("div");
@@ -46,13 +47,13 @@ export class PreferenceView {
ipcRenderer.on("toggle-autohide-menubar", this.handleToggleMenubar);
ipcRenderer.on("toggle-dnd", this.handleToggleDnd);
this.handleNavigation(this.navItem);
this.handleNavigation(this.navigationItem);
}
handleNavigation = (navItem: NavItem): void => {
this.navItem = navItem;
this.nav.select(navItem);
switch (navItem) {
handleNavigation = (navigationItem: NavigationItem): void => {
this.navigationItem = navigationItem;
this.nav.select(navigationItem);
switch (navigationItem) {
case "AddServer": {
initServersSection({
$root: this.$settingsContainer,
@@ -87,13 +88,9 @@ export class PreferenceView {
});
break;
}
default: {
((n: never) => n)(navItem);
}
}
window.location.hash = `#${navItem}`;
window.location.hash = `#${navigationItem}`;
};
handleToggleTray(state: boolean) {
@@ -115,16 +112,22 @@ export class PreferenceView {
}
}
private readonly handleToggleSidebar = (_event: Event, state: boolean) => {
private readonly handleToggleSidebar = (
_event: IpcRendererEvent,
state: boolean,
) => {
this.handleToggle("sidebar-option", state);
};
private readonly handleToggleMenubar = (_event: Event, state: boolean) => {
private readonly handleToggleMenubar = (
_event: IpcRendererEvent,
state: boolean,
) => {
this.handleToggle("menubar-option", state);
};
private readonly handleToggleDnd = (
_event: Event,
_event: IpcRendererEvent,
_state: boolean,
newSettings: Partial<DndSettings>,
) => {

View File

@@ -3,35 +3,35 @@ import {dialog} from "@electron/remote";
import {html} from "../../../../common/html.js";
import * as Messages from "../../../../common/messages.js";
import * as t from "../../../../common/translation-util.js";
import type {ServerConf} from "../../../../common/types.js";
import type {ServerConfig} from "../../../../common/types.js";
import {generateNodeFromHtml} from "../../components/base.js";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
import * as DomainUtil from "../../utils/domain-util.js";
type ServerInfoFormProps = {
type ServerInfoFormProperties = {
$root: Element;
server: ServerConf;
server: ServerConfig;
index: number;
onChange: () => void;
};
export function initServerInfoForm(props: ServerInfoFormProps): void {
export function initServerInfoForm(properties: ServerInfoFormProperties): void {
const $serverInfoForm = generateNodeFromHtml(html`
<div class="settings-card">
<div class="server-info-left">
<img
class="server-info-icon"
src="${DomainUtil.iconAsUrl(props.server.icon)}"
src="${DomainUtil.iconAsUrl(properties.server.icon)}"
/>
<div class="server-info-row">
<span class="server-info-alias">${props.server.alias}</span>
<span class="server-info-alias">${properties.server.alias}</span>
<i class="material-icons open-tab-button">open_in_new</i>
</div>
</div>
<div class="server-info-right">
<div class="server-info-row server-url">
<span class="server-url-info" title="${props.server.url}"
>${props.server.url}</span
<span class="server-url-info" title="${properties.server.url}"
>${properties.server.url}</span
>
</div>
<div class="server-info-row">
@@ -48,7 +48,7 @@ export function initServerInfoForm(props: ServerInfoFormProps): void {
".server-delete-action",
)!;
const $openServerButton = $serverInfoForm.querySelector(".open-tab-button")!;
props.$root.append($serverInfoForm);
properties.$root.append($serverInfoForm);
$deleteServerButton.addEventListener("click", async () => {
const {response} = await dialog.showMessageBox({
@@ -58,11 +58,11 @@ export function initServerInfoForm(props: ServerInfoFormProps): void {
message: t.__("Are you sure you want to disconnect this organization?"),
});
if (response === 0) {
if (DomainUtil.removeDomain(props.index)) {
if (DomainUtil.removeDomain(properties.index)) {
ipcRenderer.send("reload-full-app");
} else {
const {title, content} = Messages.orgRemovalError(
DomainUtil.getDomain(props.index).url,
DomainUtil.getDomain(properties.index).url,
);
dialog.showErrorBox(title, content);
}
@@ -70,14 +70,14 @@ export function initServerInfoForm(props: ServerInfoFormProps): void {
});
$openServerButton.addEventListener("click", () => {
ipcRenderer.send("forward-message", "switch-server-tab", props.index);
ipcRenderer.send("forward-message", "switch-server-tab", properties.index);
});
$serverInfoAlias.addEventListener("click", () => {
ipcRenderer.send("forward-message", "switch-server-tab", props.index);
ipcRenderer.send("forward-message", "switch-server-tab", properties.index);
});
$serverIcon.addEventListener("click", () => {
ipcRenderer.send("forward-message", "switch-server-tab", props.index);
ipcRenderer.send("forward-message", "switch-server-tab", properties.index);
});
}

View File

@@ -4,11 +4,11 @@ import * as t from "../../../../common/translation-util.js";
import {reloadApp} from "./base-section.js";
import {initNewServerForm} from "./new-server-form.js";
type ServersSectionProps = {
type ServersSectionProperties = {
$root: Element;
};
export function initServersSection({$root}: ServersSectionProps): void {
export function initServersSection({$root}: ServersSectionProperties): void {
$root.innerHTML = html`
<div class="add-server-modal">
<div class="modal-container">

View File

@@ -4,12 +4,14 @@ import {html} from "../../../../common/html.js";
import * as LinkUtil from "../../../../common/link-util.js";
import * as t from "../../../../common/translation-util.js";
type ShortcutsSectionProps = {
type ShortcutsSectionProperties = {
$root: Element;
};
// eslint-disable-next-line complexity
export function initShortcutsSection({$root}: ShortcutsSectionProps): void {
export function initShortcutsSection({
$root,
}: ShortcutsSectionProperties): void {
const cmdOrCtrl = process.platform === "darwin" ? "⌘" : "Ctrl";
$root.innerHTML = html`

View File

@@ -1,5 +1,4 @@
import type {NativeImage} from "electron/common";
import {nativeImage} from "electron/common";
import {type NativeImage, nativeImage} from "electron/common";
import type {Tray as ElectronTray} from "electron/main";
import path from "node:path";
import process from "node:process";
@@ -64,8 +63,8 @@ const config = {
thick: process.platform === "win32",
};
const renderCanvas = function (arg: number): HTMLCanvasElement {
config.unreadCount = arg;
const renderCanvas = function (argument: number): HTMLCanvasElement {
config.unreadCount = argument;
const size = config.size * config.pixelRatio;
const padding = size * 0.05;
@@ -79,30 +78,34 @@ const renderCanvas = function (arg: number): HTMLCanvasElement {
const canvas = document.createElement("canvas");
canvas.width = size;
canvas.height = size;
const ctx = canvas.getContext("2d")!;
const context = canvas.getContext("2d")!;
// Circle
// If (!config.thick || config.thick && hasCount) {
ctx.beginPath();
ctx.arc(center, center, size / 2 - padding, 0, 2 * Math.PI, false);
ctx.fillStyle = backgroundColor;
ctx.fill();
ctx.lineWidth = size / (config.thick ? 10 : 20);
ctx.strokeStyle = backgroundColor;
ctx.stroke();
context.beginPath();
context.arc(center, center, size / 2 - padding, 0, 2 * Math.PI, false);
context.fillStyle = backgroundColor;
context.fill();
context.lineWidth = size / (config.thick ? 10 : 20);
context.strokeStyle = backgroundColor;
context.stroke();
// Count or Icon
if (hasCount) {
ctx.fillStyle = color;
ctx.textAlign = "center";
context.fillStyle = color;
context.textAlign = "center";
if (config.unreadCount > 99) {
ctx.font = `${config.thick ? "bold " : ""}${size * 0.4}px Helvetica`;
ctx.fillText("99+", center, center + size * 0.15);
context.font = `${config.thick ? "bold " : ""}${size * 0.4}px Helvetica`;
context.fillText("99+", center, center + size * 0.15);
} else if (config.unreadCount < 10) {
ctx.font = `${config.thick ? "bold " : ""}${size * 0.5}px Helvetica`;
ctx.fillText(String(config.unreadCount), center, center + size * 0.2);
context.font = `${config.thick ? "bold " : ""}${size * 0.5}px Helvetica`;
context.fillText(String(config.unreadCount), center, center + size * 0.2);
} else {
ctx.font = `${config.thick ? "bold " : ""}${size * 0.5}px Helvetica`;
ctx.fillText(String(config.unreadCount), center, center + size * 0.15);
context.font = `${config.thick ? "bold " : ""}${size * 0.5}px Helvetica`;
context.fillText(
String(config.unreadCount),
center,
center + size * 0.15,
);
}
}
@@ -114,12 +117,12 @@ const renderCanvas = function (arg: number): HTMLCanvasElement {
* @param arg: Unread count
* @return the native image
*/
const renderNativeImage = function (arg: number): NativeImage {
const renderNativeImage = function (argument: number): NativeImage {
if (process.platform === "win32") {
return nativeImage.createFromPath(winUnreadTrayIconPath());
}
const canvas = renderCanvas(arg);
const canvas = renderCanvas(argument);
const pngData = nativeImage
.createFromDataURL(canvas.toDataURL("image/png"))
.toPNG();
@@ -130,7 +133,7 @@ const renderNativeImage = function (arg: number): NativeImage {
function sendAction<Channel extends keyof RendererMessage>(
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void {
const win = BrowserWindow.getAllWindows()[0];
@@ -138,7 +141,7 @@ function sendAction<Channel extends keyof RendererMessage>(
win.restore();
}
ipcRenderer.sendTo(win.webContents.id, channel, ...args);
ipcRenderer.send("forward-to", win.webContents.id, channel, ...arguments_);
}
const createTray = function (): void {
@@ -176,7 +179,7 @@ const createTray = function (): void {
};
export function initializeTray(serverManagerView: ServerManagerView) {
ipcRenderer.on("destroytray", (_event: Event) => {
ipcRenderer.on("destroytray", () => {
if (!tray) {
return;
}
@@ -189,22 +192,22 @@ export function initializeTray(serverManagerView: ServerManagerView) {
}
});
ipcRenderer.on("tray", (_event: Event, arg: number): void => {
ipcRenderer.on("tray", (_event, argument: number): void => {
if (!tray) {
return;
}
// We don't want to create tray from unread messages on macOS since it already has dock badges.
if (process.platform === "linux" || process.platform === "win32") {
if (arg === 0) {
unread = arg;
if (argument === 0) {
unread = argument;
tray.setImage(iconPath());
tray.setToolTip("No unread messages");
} else {
unread = arg;
const image = renderNativeImage(arg);
unread = argument;
const image = renderNativeImage(argument);
tray.setImage(image);
tray.setToolTip(`${arg} unread messages`);
tray.setToolTip(`${argument} unread messages`);
}
}
});

View File

@@ -1,5 +1,5 @@
import type {IpcRendererEvent} from "electron/renderer";
import {
type IpcRendererEvent,
ipcRenderer as untypedIpcRenderer, // eslint-disable-line no-restricted-imports
} from "electron/renderer";
@@ -10,8 +10,8 @@ import type {
} from "../../common/typed-ipc.js";
type RendererListener<Channel extends keyof RendererMessage> =
RendererMessage[Channel] extends (...args: infer Args) => void
? (event: IpcRendererEvent, ...args: Args) => void
RendererMessage[Channel] extends (...arguments_: infer Arguments) => void
? (event: IpcRendererEvent, ...arguments_: Arguments) => void
: never;
export const ipcRenderer: {
@@ -35,19 +35,25 @@ export const ipcRenderer: {
send<Channel extends keyof RendererMessage>(
channel: "forward-message",
rendererChannel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void;
send<Channel extends keyof RendererMessage>(
channel: "forward-to",
webContentsId: number,
rendererChannel: Channel,
...arguments_: Parameters<RendererMessage[Channel]>
): void;
send<Channel extends keyof MainMessage>(
channel: Channel,
...args: Parameters<MainMessage[Channel]>
...arguments_: Parameters<MainMessage[Channel]>
): void;
invoke<Channel extends keyof MainCall>(
channel: Channel,
...args: Parameters<MainCall[Channel]>
...arguments_: Parameters<MainCall[Channel]>
): Promise<ReturnType<MainCall[Channel]>>;
sendSync<Channel extends keyof MainMessage>(
channel: Channel,
...args: Parameters<MainMessage[Channel]>
...arguments_: Parameters<MainMessage[Channel]>
): ReturnType<MainMessage[Channel]>;
postMessage<Channel extends keyof MainMessage>(
channel: Channel,
@@ -56,13 +62,8 @@ export const ipcRenderer: {
: never,
transfer?: MessagePort[],
): void;
sendTo<Channel extends keyof RendererMessage>(
webContentsId: number,
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
): void;
sendToHost<Channel extends keyof RendererMessage>(
channel: Channel,
...args: Parameters<RendererMessage[Channel]>
...arguments_: Parameters<RendererMessage[Channel]>
): void;
} = untypedIpcRenderer;

View File

@@ -2,7 +2,7 @@ import fs from "node:fs";
import path from "node:path";
import {app, dialog} from "@electron/remote";
import * as Sentry from "@sentry/electron";
import * as Sentry from "@sentry/electron/renderer";
import {JsonDB} from "node-json-db";
import {DataError} from "node-json-db/dist/lib/Errors";
import {z} from "zod";
@@ -11,7 +11,7 @@ import * as EnterpriseUtil from "../../../common/enterprise-util.js";
import Logger from "../../../common/logger-util.js";
import * as Messages from "../../../common/messages.js";
import * as t from "../../../common/translation-util.js";
import type {ServerConf} from "../../../common/types.js";
import type {ServerConfig} from "../../../common/types.js";
import defaultIcon from "../../img/icon.png";
import {ipcRenderer} from "../typed-ipc-renderer.js";
@@ -23,7 +23,7 @@ const logger = new Logger({
// missing icon; it does not change with the actual icon location.
export const defaultIconSentinel = "../renderer/img/icon.png";
const serverConfSchema = z.object({
const serverConfigSchema = z.object({
url: z.string().url(),
alias: z.string(),
icon: z.string(),
@@ -31,45 +31,49 @@ const serverConfSchema = z.object({
zulipFeatureLevel: z.number().default(0),
});
let db!: JsonDB;
let database!: JsonDB;
reloadDb();
reloadDatabase();
// Migrate from old schema
try {
const oldDomain = db.getObject<unknown>("/domain");
const oldDomain = database.getObject<unknown>("/domain");
if (typeof oldDomain === "string") {
(async () => {
await addDomain({
alias: "Zulip",
url: oldDomain,
});
db.delete("/domain");
database.delete("/domain");
})();
}
} catch (error: unknown) {
if (!(error instanceof DataError)) throw error;
}
export function getDomains(): ServerConf[] {
reloadDb();
export function getDomains(): ServerConfig[] {
reloadDatabase();
try {
return serverConfSchema.array().parse(db.getObject<unknown>("/domains"));
return serverConfigSchema
.array()
.parse(database.getObject<unknown>("/domains"));
} catch (error: unknown) {
if (!(error instanceof DataError)) throw error;
return [];
}
}
export function getDomain(index: number): ServerConf {
reloadDb();
return serverConfSchema.parse(db.getObject<unknown>(`/domains[${index}]`));
export function getDomain(index: number): ServerConfig {
reloadDatabase();
return serverConfigSchema.parse(
database.getObject<unknown>(`/domains[${index}]`),
);
}
export function updateDomain(index: number, server: ServerConf): void {
reloadDb();
serverConfSchema.parse(server);
db.push(`/domains[${index}]`, server, true);
export function updateDomain(index: number, server: ServerConfig): void {
reloadDatabase();
serverConfigSchema.parse(server);
database.push(`/domains[${index}]`, server, true);
}
export async function addDomain(server: {
@@ -80,20 +84,20 @@ export async function addDomain(server: {
if (server.icon) {
const localIconUrl = await saveServerIcon(server.icon);
server.icon = localIconUrl;
serverConfSchema.parse(server);
db.push("/domains[]", server, true);
reloadDb();
serverConfigSchema.parse(server);
database.push("/domains[]", server, true);
reloadDatabase();
} else {
server.icon = defaultIconSentinel;
serverConfSchema.parse(server);
db.push("/domains[]", server, true);
reloadDb();
serverConfigSchema.parse(server);
database.push("/domains[]", server, true);
reloadDatabase();
}
}
export function removeDomains(): void {
db.delete("/domains");
reloadDb();
database.delete("/domains");
reloadDatabase();
}
export function removeDomain(index: number): boolean {
@@ -101,8 +105,8 @@ export function removeDomain(index: number): boolean {
return false;
}
db.delete(`/domains[${index}]`);
reloadDb();
database.delete(`/domains[${index}]`);
reloadDatabase();
return true;
}
@@ -115,7 +119,7 @@ export function duplicateDomain(domain: string): boolean {
export async function checkDomain(
domain: string,
silent = false,
): Promise<ServerConf> {
): Promise<ServerConfig> {
if (!silent && duplicateDomain(domain)) {
// Do not check duplicate in silent mode
throw new Error("This server has been added.");
@@ -130,7 +134,7 @@ export async function checkDomain(
}
}
async function getServerSettings(domain: string): Promise<ServerConf> {
async function getServerSettings(domain: string): Promise<ServerConfig> {
return ipcRenderer.invoke("get-server-settings", domain);
}
@@ -144,29 +148,29 @@ export async function saveServerIcon(iconURL: string): Promise<string> {
export async function updateSavedServer(
url: string,
index: number,
): Promise<ServerConf> {
): Promise<ServerConfig> {
// Does not promise successful update
const serverConf = getDomain(index);
const oldIcon = serverConf.icon;
const serverConfig = getDomain(index);
const oldIcon = serverConfig.icon;
try {
const newServerConf = await checkDomain(url, true);
const localIconUrl = await saveServerIcon(newServerConf.icon);
const newServerConfig = await checkDomain(url, true);
const localIconUrl = await saveServerIcon(newServerConfig.icon);
if (!oldIcon || localIconUrl !== defaultIconSentinel) {
newServerConf.icon = localIconUrl;
updateDomain(index, newServerConf);
reloadDb();
newServerConfig.icon = localIconUrl;
updateDomain(index, newServerConfig);
reloadDatabase();
}
return newServerConf;
return newServerConfig;
} catch (error: unknown) {
logger.log("Could not update server icon.");
logger.log(error);
Sentry.captureException(error);
return serverConf;
return serverConfig;
}
}
function reloadDb(): void {
function reloadDatabase(): void {
const domainJsonPath = path.join(
app.getPath("userData"),
"config/domain.json",
@@ -188,7 +192,7 @@ function reloadDb(): void {
}
}
db = new JsonDB(domainJsonPath, true, true);
database = new JsonDB(domainJsonPath, true, true);
}
export function formatUrl(domain: string): string {
@@ -203,7 +207,9 @@ export function formatUrl(domain: string): string {
return `https://${domain}`;
}
export function getUnsupportedMessage(server: ServerConf): string | undefined {
export function getUnsupportedMessage(
server: ServerConfig,
): string | undefined {
if (server.zulipFeatureLevel < 65 /* Zulip Server 4.0 */) {
const realm = new URL(server.url).hostname;
return t.__(

View File

@@ -15,7 +15,7 @@ export default class ReconnectUtil {
fibonacciBackoff: backoff.Backoff;
constructor(webview: WebView) {
this.url = webview.props.url;
this.url = webview.properties.url;
this.alreadyReloaded = false;
this.fibonacciBackoff = backoff.fibonacci({
initialDelay: 5000,

View File

@@ -1,7 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en" class="responsive desktop">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'none'; connect-src 'self'; font-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' 'unsafe-inline'"
/>
<meta name="viewport" content="width=device-width" />
<title>Zulip</title>
<link rel="stylesheet" href="css/fonts.css" />

View File

@@ -1,7 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en" class="responsive desktop">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'none'; connect-src 'self'; img-src 'self'; script-src 'self'; style-src 'self'"
/>
<meta name="viewport" content="width=device-width" />
<title>Zulip - Network Troubleshooting</title>
<link

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<meta charset="UTF-8" />
<link rel="stylesheet" href="css/fonts.css" />
<link rel="stylesheet" href="css/preference.css" />

View File

@@ -2,6 +2,59 @@
All notable changes to the Zulip desktop app are documented in this file.
### v5.11.0 --2024-03-22
**Fixes**:
- Removed the popup dialog for certificate errors when loading subresources such as images.
- Allowed hiding the window from full screen mode on macOS.
**Enhancements**:
- Enabled zooming with Ctrl+mouse wheel on Linux and Windows.
**Dependencies**:
- Upgraded all dependencies, including Electron 29.1.5.
### v5.10.5 --2024-01-25
**Dependencies**:
- Upgraded all dependencies, including Electron 28.2.0.
**Enhancements**:
- Improved security hardening by setting a Content-Security-Policy for the app UI.
### v5.10.4 --2024-01-09
**Dependencies**:
- Upgraded all dependencies, including Electron 28.1.1.
### v5.10.3 --2023-09-30
**Fixes**:
- Fixed an error in the third-party `gatemaker` library that broke the display of notifications for completed downloads.
**Dependencies**:
- Upgraded all dependencies, including Electron 25.8.4.
### v5.10.2 --2023-09-14
**Dependencies**:
- Downgraded Electron to 25.8.1 to avoid a renderer process crash on Linux.
### v5.10.1 --2023-09-13
**Dependencies**:
- Upgraded all dependencies, including Electron 26.2.1.
### v5.10.0 --2023-05-05
**Removed features**:

7237
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
{
"name": "zulip",
"productName": "Zulip",
"version": "5.10.0",
"version": "5.11.0",
"main": "./dist-electron",
"description": "Zulip Desktop App",
"license": "Apache-2.0",
@@ -28,7 +28,7 @@
"lint-css": "stylelint \"app/**/*.css\"",
"lint-html": "htmlhint \"app/**/*.html\"",
"lint-js": "xo",
"prettier-non-js": "prettier --check --loglevel=warn . \"!**/*.{js,ts}\"",
"prettier-non-js": "prettier --check --log-level=warn . \"!**/*.{js,ts}\"",
"test": "tsc && npm run lint-html && npm run lint-css && npm run lint-js && npm run prettier-non-js",
"test-e2e": "vite build && tape \"tests/**/*.js\"",
"pack": "vite build && electron-builder --dir",
@@ -39,7 +39,6 @@
"test"
],
"build": {
"afterSign": "./scripts/notarize.js",
"appId": "org.zulip.zulip-electron",
"asar": true,
"asarUnpack": [
@@ -68,7 +67,10 @@
}
],
"darkModeSupport": true,
"artifactName": "${productName}-${version}-${arch}.${ext}"
"artifactName": "${productName}-${version}-${arch}.${ext}",
"notarize": {
"teamId": "66KHCWMEYB"
}
},
"linux": {
"category": "Chat;GNOME;GTK;Network;InstantMessaging",
@@ -141,48 +143,46 @@
"InstantMessaging"
],
"dependencies": {
"gatemaker": "^1.0.0"
"gatemaker": "https://github.com/andersk/gatemaker/archive/d31890ae1cb293faabcb1e4e465c673458f6eed2.tar.gz"
},
"devDependencies": {
"@electron/notarize": "^1.2.3",
"@electron/remote": "^2.0.8",
"@sentry/core": "^7.94.1",
"@sentry/electron": "^4.1.2",
"@types/adm-zip": "^0.5.0",
"@types/auto-launch": "^5.0.2",
"@types/backoff": "^2.5.2",
"@types/i18n": "^0.13.1",
"@types/node": "^18.16.5",
"@types/node": "^20.11.30",
"@types/requestidlecallback": "^0.3.4",
"@types/yaireo__tagify": "^4.3.2",
"@yaireo/tagify": "^4.5.0",
"adm-zip": "^0.5.5",
"auto-launch": "^5.0.5",
"backoff": "^2.5.0",
"dotenv": "^16.0.0",
"electron": "^24.2.0",
"electron-builder": "^23.0.3",
"electron-log": "^4.3.5",
"electron-updater": "^5.0.1",
"electron": "^29.1.5",
"electron-builder": "^24.6.4",
"electron-log": "^5.0.3",
"electron-updater": "^6.1.4",
"electron-window-state": "^5.0.3",
"escape-goat": "^4.0.0",
"get-stream": "^6.0.1",
"htmlhint": "^1.1.2",
"i18n": "^0.15.1",
"iso-639-1": "^2.1.9",
"iso-639-1": "^3.1.0",
"medium": "^1.2.0",
"node-json-db": "^1.3.0",
"playwright-core": "^1.30.0-alpha-jan-3-2023",
"playwright-core": "^1.41.0-alpha-jan-9-2024",
"pre-commit": "^1.2.2",
"prettier": "^2.3.2",
"prettier": "^3.0.3",
"rimraf": "^5.0.0",
"semver": "^7.3.5",
"stylelint": "^15.6.1",
"stylelint-config-standard": "^33.0.0",
"stylelint": "^16.1.0",
"stylelint-config-standard": "^36.0.0",
"tape": "^5.2.2",
"typescript": "^5.0.4",
"vite": "^4.1.1",
"vite-plugin-electron": "^0.11.1",
"xo": "^0.54.2",
"vite": "^5.0.11",
"vite-plugin-electron": "^0.28.0",
"xo": "^0.58.0",
"zod": "^3.5.1"
},
"prettier": {
@@ -240,6 +240,10 @@
"error",
{
"paths": [
{
"name": "@sentry/electron",
"message": "Use @sentry/electron/main, @sentry/electron/renderer, or @sentry/core."
},
{
"name": "electron",
"message": "Use electron/main, electron/renderer, or electron/common."
@@ -257,6 +261,10 @@
"ipcRenderer"
],
"message": "Use typed-ipc-renderer."
},
{
"name": "electron-log",
"message": "Use electron-log/main or electron-log/renderer."
}
]
}

127
public/translations/be.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "Пра Zulip",
"Actual Size": "Сапраўдны памер",
"Add Organization": "Дадаць арганізацыю",
"Add a Zulip organization": "Дадаць арганізацыю Zulip",
"Add custom CSS": "Дадаць свой CSS",
"AddServer": "Дадаць сэрвер",
"Advanced": "Пашыраныя",
"All the connected organizations will appear here.": "Тут з'явяцца ўсе звязаныя арганізацыі.",
"Always start minimized": "Заўсёды адкрываць згорнутым",
"App Updates": "Абнаўленні праграмы",
"App language (requires restart)": "Мова праграмы (патрабуецца перазапуск)",
"Appearance": "Выгляд",
"Application Shortcuts": "Спалучэнні клавішаў",
"Are you sure you want to disconnect this organization?": "Вы ўпэўненыя, што хочаце адключыць гэту арганізацыю?",
"Ask where to save files before downloading": "Спытаць, куды захоўваць файлы перад сцягваннем",
"Auto hide Menu bar": "Аўтаматычна хаваць радок меню",
"Auto hide menu bar (Press Alt key to display)": "Аўтаматычна хаваць радок меню (для выявы націсніце клавішу Alt)",
"Back": "Назад",
"Bounce dock on new private message": "Подпрыгваючы dock пры новым асабістым паведамленні",
"Change": "Змяніць",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Змяніце мову ў: Сістэмныя налады → Клавіятура → Тэкст → Правапіс.",
"Check for Updates": "Праверыць наяўнасць абнаўленняў",
"Close": "Закрыць",
"Connect": "Падлучыць",
"Connect to another organization": "Падлучыць да іншай арганізацыі",
"Connected organizations": "Падлучаныя арганізацыі",
"Copy": "Капіяваць",
"Copy Zulip URL": "Капіяваць Zulip URL",
"Create a new organization": "Стварыць новую арганізацыю",
"Cut": "Выразаць",
"Default download location": "Месца сцягвання па змаўчанні",
"Delete": "Выдаліць",
"Desktop Notifications": "Апавяшчэнні для ПК",
"Desktop Settings": "Налады для ПК",
"Disconnect": "Адлучыць",
"Download App Logs": "Сцягнуць журналы праграмаў",
"Edit": "Рэдагаваць",
"Edit Shortcuts": "Рэдагаваць cпалучэнні клавішаў",
"Emoji & Symbols": "Эмодзі і сімвалы",
"Enable auto updates": "Увамкнуць аўтаматычнае абнаўленне",
"Enable error reporting (requires restart)": "Увамкнуць справаздачу аб памылках (патрабуецца перазапуск)",
"Enable spellchecker (requires restart)": "Увамкнуць праверку правапісу (патрабуецца перазапуск)",
"Enter Full Screen": "Пераход у поўнаэкранны рэжым",
"Factory Reset": "Аднаўленне заводскіх наладаў",
"Factory Reset Data": "Аднаўленне даных да заводскіх наладаў",
"File": "Файл",
"Find accounts": "Знайсці ўліковыя запісы",
"Find accounts by email": "Знайсці ўліковыя запісы паводле email",
"Flash taskbar on new message": "Успыхваць на панэлі заданняў пры новым асабістым паведамленні ",
"Forward": "Пераадрасаваць",
"Functionality": "Функцыянальнасць",
"General": "Агульныя",
"Get beta updates": "Атрымлівць бэта-абнаўленні",
"Hard Reload": "Апаратнае пераладаванне",
"Help": "Даведка",
"Help Center": "Цэнтр даведак",
"Hide": "Схаваць",
"Hide Others": "Схаваць іншыя",
"Hide Zulip": "Схаваць Zulip",
"History": "Гісторыя",
"History Shortcuts": "Гісторыя cпалучэнняў клавішаў",
"Keyboard Shortcuts": "Спалучэнні клавішаў",
"Log Out": "Выйсці з уліковага запісу",
"Log Out of Organization": "Выйсці з уліковага запісу арганізацыі",
"Manual proxy configuration": "Ручная налада проксі",
"Minimize": "Згарнуць",
"Mute all sounds from Zulip": "Адключыць усе гукі з Zulip",
"NO": "NO",
"Network": "Сетка",
"Network and Proxy Settings": "Налады сеткі і проксі",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "У macOS выкарыстоўваецца сістэмная праверка правапісу.",
"Organization URL": "URL арганізацыі",
"Organizations": "Арганізацыі",
"Paste": "Уставіць",
"Paste and Match Style": "Уставіць і ўзгадніць стыль",
"Proxy": "Проксі",
"Proxy bypass rules": "Правілы абыходу проксі",
"Proxy rules": "Правілы проксі",
"Quit": "Выйсці",
"Quit Zulip": "Выйсці з Zulip",
"Quit when the window is closed": "Выйсці, калі акно зачыненае",
"Redo": "Узнавіць",
"Release Notes": "Заўвагі да выпуску",
"Reload": "Пераладаваць",
"Report an Issue": "Паведаміць аб праблеме",
"Reset App Settings": "Скінуць налады праграмы",
"Reset the application, thus deleting all the connected organizations and accounts.": "Скінуць усю праграму, выдаліўшы такім чынам усе звязаныя арганізацыі і ўліковыя запісы.",
"Save": "Захаваць",
"Select All": "Выбраць усё",
"Services": "Сэрвісы",
"Settings": "Налады",
"Shortcuts": "Спалучэнні клавішаў",
"Show app icon in system tray": "Паказаць значок праграмы ў вобласці паведамленняў",
"Show app unread badge": "Паказваць значок непрачытаных паведамленняў",
"Show desktop notifications": "Паказваць апавяшчэнні на працоўным стале",
"Show sidebar": "Паказваць бакавую панэль",
"Spellchecker Languages": "Мовы для праверкі правапісу",
"Start app at login": "Запусціць праграму пры ўваходзе ва ўліковы запіс",
"Switch to Next Organization": "Пераключыцца на наступную арганізацыю",
"Switch to Previous Organization": "Пераключыцца на папярэднюю арганізацыю",
"These desktop app shortcuts extend the Zulip webapp's": "Гэтыя спалучэнні клавішаў пашыраюць магчымасці Zulip",
"Tip": "Парада",
"Toggle DevTools for Active Tab": "Увамкнуць DevTools для актыўнай укладкі",
"Toggle DevTools for Zulip App": "Перамкнуць DevTools для праграмы Zulip",
"Toggle Do Not Disturb": "Перамкнуць рэжым \"Не турбаваць\"",
"Toggle Full Screen": "Перамкнуць \"На ўвесь экран\"",
"Toggle Sidebar": "Перамкнуць бакавую панэль",
"Toggle Tray Icon": "Перамкнуць значок у вобласці паведамленняў",
"Tools": "Інструменты",
"Undo": "Адрабіць",
"Unhide": "Зрабіць бачным",
"Upload": "Заладаваць",
"Use system proxy settings (requires restart)": "Выкарыстоўваць сістэмныя налады проксі (патрабуе перазапуск)",
"View": "Прагляд",
"View Shortcuts": "Спалучэнні клавішаў прагляду",
"Window": "Акно",
"Window Shortcuts": "Спалучэнні клавішаў акна",
"YES": "ТАК",
"You can select a maximum of 3 languages for spellchecking.": "Вы можаце выбраць максімум 3 мовы для праверкі правапісу.",
"Zoom In": "Павялічыць",
"Zoom Out": "Паменшыць",
"keyboard shortcuts": "спалучэнні клавішаў",
"script": "скрыпт",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "На {{{server}}} працуе састарэлая версія сервера Zulip {{{version}}}. У гэтай праграме ён можа працаваць часткова."
}

127
public/translations/bn.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "যুলিপ সম্পর্কে ",
"Actual Size": "প্রকৃত সাইজ ",
"Add Organization": "সংস্থা যুক্ত করুন",
"Add a Zulip organization": "একটি যুলিপ প্রতিষ্ঠান যুক্ত করুন",
"Add custom CSS": "কাস্টম সিএসএস যুক্ত করুন",
"AddServer": "এড সার্ভার ",
"Advanced": "অগ্রসর ",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "সব সময় মিনিমাইজড ভাবে শুরু করুন ",
"App Updates": "অ্যাপ আপডেট",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "প্রকাশ",
"Application Shortcuts": "অ্যাপ্লিকেশান শর্টকাট ",
"Are you sure you want to disconnect this organization?": "আপনি কি নিশ্চিত যে আপনি এই সংস্থার সংযোগ বিচ্ছিন্ন করতে চান ?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "অটো মেনুবার হাইড করুন ",
"Auto hide menu bar (Press Alt key to display)": "অটো মেনুবার হাইড করুন (দেখার জন্য অল্টার কি চাপুন)",
"Back": "পেছন",
"Bounce dock on new private message": "ব্যাক্তিগত মেসেজে ডক বাউন্স করুন ",
"Change": "পরিবর্তন",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "ভাষা পরিবর্তন করতে সিস্টেম প্রেফারেন্স → কীবোর্ড → টেক্সট → স্পেলিং এ যান ",
"Check for Updates": "আপডেট চেক করুন",
"Close": "বন্ধ করুন",
"Connect": "সংযুক্ত করুন",
"Connect to another organization": "অন্য একটি সংস্থার সাথে সংযুক্ত করুন",
"Connected organizations": "সংযুক্ত সংস্থা সমূহ ",
"Copy": "কপি",
"Copy Zulip URL": "যুলিপ ইউআরএল কপি করুন ",
"Create a new organization": "নতুন সংস্থা তৈরি করুন ",
"Cut": "কাট ",
"Default download location": "Default download location",
"Delete": "ডিলিট",
"Desktop Notifications": "ডেস্কটপ নোটিফিকেশান ",
"Desktop Settings": "ডেস্কটপ সেটিংস",
"Disconnect": "সংযোগ বিছিন্ন করুন",
"Download App Logs": "অ্যাপ লগ ডাউনলোড করুন ",
"Edit": "এডিট",
"Edit Shortcuts": "শর্টকাটগুলো এডিট করুন ",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "অটো আপডেট চালু করুন",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "ফ্যাক্টরি রিসেট",
"Factory Reset Data": "Factory Reset Data",
"File": "ফাইল",
"Find accounts": "অ্যাকাউন্ট খুজুন",
"Find accounts by email": "ইমেইল ব্যাবহার করে অ্যাকাউন্ট খুজুন",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "ফরওয়ার্ড",
"Functionality": "Functionality",
"General": "সাধারন",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "সাহায্য",
"Help Center": "সাহায্য কেন্দ্র",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "ইতিহাস",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "লগ আউট",
"Log Out of Organization": "সংস্থা থেকে লগ আউট করুন",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "ছোট করুন",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "না",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "অথবা",
"On macOS, the OS spellchecker is used.": "ম্যাক ওএস এ , ওএস এর স্পেলচেকার ব্যাবহার করা হয় ।",
"Organization URL": "Organization URL",
"Organizations": "সংস্থাসমূহ",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "সেভ",
"Select All": "Select All",
"Services": "Services",
"Settings": "সেটিংস",
"Shortcuts": "শর্টকাট সমূহ",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "টিপ",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "অ্যান্ডু ",
"Unhide": "Unhide",
"Upload": "আপলোড",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "হ্যাঁ",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "জুম আউট",
"keyboard shortcuts": "keyboard shortcuts",
"script": "স্ক্রিপ্ট ",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "ālêštkâri",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "bastên",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "pāk kerdên",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "ālêšt",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "fāyl",
"Find accounts": "jostên hêsāvā mêntori",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "zaft kerdên",
"Select All": "Select All",
"Services": "Services",
"Settings": "sāmovā",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "Přidat vlastní CSS",
"AddServer": "Přidat server",
"Advanced": "Rozšířené",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "Všechny připojené organizace se objeví zde.",
"Always start minimized": "Vždy spouštět minimalizované",
"App Updates": "Aktualizace aplikace",
"App language (requires restart)": "Jazyk programu (vyžaduje opětovné spuštění programu)",
@@ -37,11 +37,11 @@
"Download App Logs": "Stáhnout záznamy programu",
"Edit": "Upravit",
"Edit Shortcuts": "Upravit zkratky",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "Obrázečky a zvláštní znaky",
"Enable auto updates": "Povolit automatické aktualizace",
"Enable error reporting (requires restart)": "Povolit hlášení chyb (vyžaduje opětovné spuštění programu)",
"Enable spellchecker (requires restart)": "Povolit kontrolu pravopisu (vyžaduje opětovné spuštění programu)",
"Enter Full Screen": "Enter Full Screen",
"Enter Full Screen": "Vstoupit na celou obrazovku",
"Factory Reset": "Obnovení do továrního nastavení",
"Factory Reset Data": "Obnovení dat do továrního nastavení",
"File": "Soubor",
@@ -57,7 +57,7 @@
"Help Center": "Centrum nápovědy",
"Hide": "Skrýt",
"Hide Others": "Skrýt jiné",
"Hide Zulip": "Hide Zulip",
"Hide Zulip": "Skrýt Zulip",
"History": "Historie",
"History Shortcuts": "Zkratky pro historii",
"Keyboard Shortcuts": "Klávesové zkratky",
@@ -68,7 +68,7 @@
"Mute all sounds from Zulip": "Ztlumit všechny zvuky ze Zulipu",
"NO": "NE",
"Network": "Síť",
"Network and Proxy Settings": "Network and Proxy Settings",
"Network and Proxy Settings": "Nastavení sítě a proxy serveru",
"OR": "NEBO",
"On macOS, the OS spellchecker is used.": "Na macOS se používá kontrola pravopisu OS.",
"Organization URL": "Adresa organizace",
@@ -86,7 +86,7 @@
"Reload": "Nahrát znovu",
"Report an Issue": "Nahlásit problém",
"Reset App Settings": "Obnovit výchozí nastavení programu",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset the application, thus deleting all the connected organizations and accounts.": "Obnovit program do výchozího nastavení. čili smazat všechny připojené organizace a účty.",
"Save": "Uložit",
"Select All": "Vybrat vše",
"Services": "Služby",
@@ -123,5 +123,5 @@
"Zoom Out": "Oddálit",
"keyboard shortcuts": "klávesové zkratky",
"script": "skript",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} používá zastaralou verzi serveru Zulip {{{verze}}}. V této aplikaci nemusí plně pracovat."
}

127
public/translations/cy.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "Am Zulip",
"Actual Size": "Maint Gwirioneddol",
"Add Organization": "Ychwanegu Sefydliad",
"Add a Zulip organization": "Ychwanegwch sefydliad Zulip",
"Add custom CSS": "Ychwanegwch CSS wedi'i ddylunio'n benodol",
"AddServer": "AddServer",
"Advanced": "Uwch",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Dechreuwch gyn lleied â phosibl bob amser",
"App Updates": "Diweddariadau Ap",
"App language (requires restart)": "Iaith ap (angen ailgychwyn)",
"Appearance": "Ymddangosiad",
"Application Shortcuts": "Llwybrau Byr yr Ap",
"Are you sure you want to disconnect this organization?": "Ydych chi'n siŵr eich bod chi am ddatgysylltu'r sefydliad hwn?",
"Ask where to save files before downloading": "Gofynnwch ble i arbed ffeiliau cyn eu lawrlwytho",
"Auto hide Menu bar": "Cuddiwch y bar dewislen yn awtomatig",
"Auto hide menu bar (Press Alt key to display)": "Cuddiwch y bar dewislen yn awtomatig (Pwyswch Alt i'w harddangos)",
"Back": "Yn ôl",
"Bounce dock on new private message": "Sbonciwch doc ar neges breifat newydd",
"Change": "Newid",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Newid yr iaith o Dewisiadau System → Bysellfwrdd → Testun → Sillafu.",
"Check for Updates": "Chwiliwch am Ddiweddariadau",
"Close": "Cau",
"Connect": "Cysylltu",
"Connect to another organization": "Cysylltu â sefydliad arall",
"Connected organizations": "Sefydliadau cysylltiedig",
"Copy": "Copi",
"Copy Zulip URL": "Copïwch URL Zulip",
"Create a new organization": "Creu sefydliad newydd",
"Cut": "Torri",
"Default download location": "Lleoliad lawrlwytho diofyn",
"Delete": "Dileu",
"Desktop Notifications": "Hysbysiadau Penbwrdd",
"Desktop Settings": "Gosodiadau Penbwrdd",
"Disconnect": "Datgysylltwch",
"Download App Logs": "Lawrlwythwch Logiau Ap",
"Edit": "Golygu",
"Edit Shortcuts": "Golygu Llwybrau Byr",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Galluogi diweddariadau yn awtomatig",
"Enable error reporting (requires restart)": "Galluogi adrodd am wallau (angen ailgychwyn)",
"Enable spellchecker (requires restart)": "Galluogi gwiriwr sillafu (angen ailgychwyn)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Ailosod Ffatri",
"Factory Reset Data": "Ailosod Data Ffatri",
"File": "Ffeil",
"Find accounts": "Dewch o hyd i gyfrifon",
"Find accounts by email": "Dewch o hyd i gyfrifon trwy e-bost",
"Flash taskbar on new message": "Fflachia'r bar tasgau ar neges newydd",
"Forward": "Ymlaen",
"Functionality": "Ymarferoldeb",
"General": "Cyffredinol",
"Get beta updates": "Cael diweddariadau beta",
"Hard Reload": "Ail-lwytho Caled",
"Help": "Cymorth",
"Help Center": "Canolfan Gymorth",
"Hide": "Cuddio",
"Hide Others": "Cuddio Eraill",
"Hide Zulip": "Hide Zulip",
"History": "Hanes",
"History Shortcuts": "Hanes Llwybrau Byr ",
"Keyboard Shortcuts": "Llwybrau Byr Bysellfwrdd",
"Log Out": "Allgofnodi",
"Log Out of Organization": "Allgofnodi Sefydliad",
"Manual proxy configuration": "Cyfluniad dirprwy â llaw",
"Minimize": "Lleihau",
"Mute all sounds from Zulip": "Tawelwch pob sain o Zulip",
"NO": "NA",
"Network": "Rhwydwaith",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "NEU",
"On macOS, the OS spellchecker is used.": "Ar macOS, defnyddir gwiriwr sillafu OS.",
"Organization URL": "URL y sefydliad",
"Organizations": "Sefydliadau",
"Paste": "Gludo",
"Paste and Match Style": "Arddull Gludo a Paru ",
"Proxy": "Dirprwy",
"Proxy bypass rules": "Rheolau ffordd osgoi dirprwy",
"Proxy rules": "Rheolau dirprwy",
"Quit": "Ymadael",
"Quit Zulip": "Ymadael Zulip",
"Quit when the window is closed": "Cau pan fydd y ffenestr ar gau",
"Redo": "Ail-wneud",
"Release Notes": "Nodiadau ar y datganiad hwn",
"Reload": "Ail-lwytho",
"Report an Issue": "Adroddiwch mater",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Cadw",
"Select All": "Dewiswch Bobeth",
"Services": "Gwasanaethau",
"Settings": "Gosodiadau",
"Shortcuts": "Llwybrau byr",
"Show app icon in system tray": "Dangos eicon ap yn yr hambwrdd system",
"Show app unread badge": "Dangos bathodyn heb ei ddarllen ",
"Show desktop notifications": "Dangos hysbysiadau bwrdd gwaith",
"Show sidebar": "Dangos bar ochr",
"Spellchecker Languages": "Ieithoedd Sillafu",
"Start app at login": "Dechreuwch yr ap wrth fewngofnodi",
"Switch to Next Organization": "Newid i'r Sefydliad Nesaf",
"Switch to Previous Organization": "Newid i Sefydliad Blaenorol",
"These desktop app shortcuts extend the Zulip webapp's": "Mae'r llwybrau byr ap bwrdd gwaith hyn yn ymestyn y webap-iau Zulip",
"Tip": "Awgrym",
"Toggle DevTools for Active Tab": "Toglo DevTools ar gyfer Tab Gweithredol",
"Toggle DevTools for Zulip App": "Toglo DevTools ar gyfer Ap Zulip Ap",
"Toggle Do Not Disturb": "Toglo Peidiwch â Tharfu",
"Toggle Full Screen": "Toglo Sgrin Lawn",
"Toggle Sidebar": "Toglo Bar Ochr",
"Toggle Tray Icon": "Toglo Eicon Hambwrdd",
"Tools": "Offer",
"Undo": "Dadwneud",
"Unhide": "Dad-guddio",
"Upload": "Fyny-lwytho",
"Use system proxy settings (requires restart)": "Defnyddiwch osodiadau dirprwy system (angen ailgychwyn)",
"View": "Gweld",
"View Shortcuts": "Gweld y Llwybrau Byr",
"Window": "Ffenestr",
"Window Shortcuts": "Llwybrau Byr Ffenestri",
"YES": "YDY",
"You can select a maximum of 3 languages for spellchecking.": "Gallwch ddewis uchafswm o 3 iaith ar gyfer gwirio sillafu.",
"Zoom In": "Chwyddo Mewn",
"Zoom Out": "Chwyddo allan",
"keyboard shortcuts": "llwybrau byr bysellfwrdd",
"script": "sgript",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "Eigenes CSS hinzufügen",
"AddServer": "ServerHinzufügen",
"Advanced": "Erweitert",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "Alle verbundenen Organisationen werden hier angezeigt.",
"Always start minimized": "Immer minimiert öffnen",
"App Updates": "App Updates",
"App language (requires restart)": "Sprache der App (benötigt Neustart)",
@@ -37,11 +37,11 @@
"Download App Logs": "Logdateien der App herunterladen",
"Edit": "Bearbeiten",
"Edit Shortcuts": "Tastenkürzel bearbeiten",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "Emoji & Symbole",
"Enable auto updates": "Automatisch aktualisieren",
"Enable error reporting (requires restart)": "Fehlerberichte aktivieren (erfordert Neustart)",
"Enable spellchecker (requires restart)": "Rechtschreibprüfung aktivieren (erfordert Neustart)",
"Enter Full Screen": "Enter Full Screen",
"Enter Full Screen": "Vollbildschirm aktivieren",
"Factory Reset": "Alle Einstellungen auf Standardwerte zurücksetzen",
"Factory Reset Data": "Auf Werkseinstellung zurücksetzen",
"File": "Datei",
@@ -57,7 +57,7 @@
"Help Center": "Hilfe-Zentrum",
"Hide": "Verbergen",
"Hide Others": "Andere verbergen",
"Hide Zulip": "Hide Zulip",
"Hide Zulip": "Zulip verbergen",
"History": "Verlauf",
"History Shortcuts": "Kurzbefehle für Verlauf",
"Keyboard Shortcuts": "Tastenkürzel",
@@ -68,7 +68,7 @@
"Mute all sounds from Zulip": "Alle Zulip-Klänge stummschalten",
"NO": "NEIN",
"Network": "Netzwerk",
"Network and Proxy Settings": "Network and Proxy Settings",
"Network and Proxy Settings": "Netzwerk- und Proxy-Einstellungen",
"OR": "ODER",
"On macOS, the OS spellchecker is used.": "In macOS wird die OS Rechtschreibprüfung verwendet.",
"Organization URL": "URL der Organisation",
@@ -86,7 +86,7 @@
"Reload": "Neu laden",
"Report an Issue": "Ein Problem melden",
"Reset App Settings": "Einstellungen der App zurücksetzen",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset the application, thus deleting all the connected organizations and accounts.": "Die Anwendung zurücksetzen. Dabei werden alle verbundenen Organisationen und Konten gelöscht.",
"Save": "Speichern",
"Select All": "Alles auswählen",
"Services": "Dienste",
@@ -123,5 +123,5 @@
"Zoom Out": "Verkleinern",
"keyboard shortcuts": "Tastenkürzel",
"script": "Skript",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "Auf {{{server}}} läuft die nicht mehr aktuelle Version {{{version}}} von Zulip Server. Es kann sein, dass diese Anwendung damit nicht vollständig funktioniert."
}

View File

@@ -1,127 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"About Zulip": "Σχετικά με το Zulip",
"Actual Size": "Πραγματικό μέγεθος",
"Add Organization": "Προσθήκη Οργανισμού",
"Add a Zulip organization": "Προσθήκη οργανισμού Zulip",
"Add custom CSS": "Προσθήκη χειροποίητης CSS.",
"AddServer": "ΠροσθήκηServer",
"Advanced": "Για προχωρημένους",
"All the connected organizations will appear here.": "Όλοι οι συνδεδεμένοι οργανισμοί θα εμφανίζονται εδώ.",
"Always start minimized": "Να ξεκινά πάντα ελαχιστοποιημένο",
"App Updates": "Ενημερώσεις Εφαρμογής",
"App language (requires restart)": "Γλώσσα εφαρμογής (χρειάζεται επανεκκίνηση)",
"Appearance": "Εμφάνιση",
"Application Shortcuts": "Συντομεύσεις εφαρμογής",
"Are you sure you want to disconnect this organization?": "Είστε σίγουροι ότι θέλετε να αποσυνδέσετε αυτό τον οργανισμό;",
"Ask where to save files before downloading": "Να ερωτούμαι πού να αποθηκευτούν τα αρχεία προτού κατεβούν.",
"Auto hide Menu bar": "Αυτόματη απόκρυψη γραμμής Μενού",
"Auto hide menu bar (Press Alt key to display)": "Αυτόματη απόκρυψη γραμμής Μενού (Πατήστε Alt για να εμφανιστεί)",
"Back": "Πίσω",
"Bounce dock on new private message": "Να χοροπηδάει το σχετικό εικονίδιο κατά τη λήψη ιδιωτικού μηνύματος",
"Change": "Αλλαγή",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Αλλάξτε τη γλώσσα από τις Επιλογές Συστήματος → Πληκτρολόγιο → Κείμενο → Γραφή",
"Check for Updates": "Έλεγχος για Ενημερώσεις",
"Close": "Κλείσιμο",
"Connect": "Σύνδεση",
"Connect to another organization": "Σύνδεση με άλλο οργανισμό",
"Connected organizations": "Συνδεδεμένοι οργανισμοί",
"Copy": "Αντιγραφή",
"Copy Zulip URL": "Αντιγραφή διεύθυνσης URL Zulip",
"Create a new organization": "Δημιουργία νέου οργανισμού",
"Cut": "Αποκοπή",
"Default download location": "Προεπιλεγμένη τοποθεσία λήψης",
"Delete": "Διαγραφή",
"Desktop Notifications": "Ειδοποιήσεις στην Επιφάνεια Εργασίας",
"Desktop Settings": "Ρυθμίσεις Επιφάνειας Εργασίας",
"Disconnect": "Αποσύνδεση",
"Download App Logs": "Λήψη Logs Εφαρμογής",
"Edit": "Τροποποίηση",
"Edit Shortcuts": "Τροποποίηση Συντομεύσεων",
"Emoji & Symbols": "Φατσούλες Ιμότζι και Σύμβολα",
"Enable auto updates": "Ενεργοποίηση αυτόματων ενημερώσεων",
"Enable error reporting (requires restart)": "Ενεργοποίηση αναφοράς λαθών (χρειάζεται επανεκκίνηση)",
"Enable spellchecker (requires restart)": "Ενεργοποίηση ελέγχου ορθογραφίας (χρειάζεται επανεκκίνηση)",
"Enter Full Screen": "Μετάβαση σε Πλήρη Οθόνη",
"Factory Reset": "Επαναφορά Εργοστασιακών Ρυθμίσεων",
"Factory Reset Data": "Επαναφορά εργοστασιακών ρυθμίσεων - Δεδομένα",
"File": "Αρχείο",
"Find accounts": "Εϋρεση λογαριασμών",
"Find accounts by email": "Εύρεση λογαριασμών βάσει email",
"Flash taskbar on new message": "Αναλαμπή γραμμής εργασιών κατά τη λήψη νέου μηνύματος",
"Forward": "Μπροστά",
"Functionality": "Λειτουργία",
"General": "Γενικά",
"Get beta updates": "Λήψη beta - δοκιμαστικών ενημερώσεων",
"Hard Reload": "Ολική επαναφόρτωση",
"Help": "Βοήθεια",
"Help Center": "Κέντρο Βοήθειας",
"Hide": "Απόκρυψη",
"Hide Others": "Απόκρυψη των υπολοίπων",
"Hide Zulip": "Απόκρυψη του Zulip",
"History": "Ιστορικό",
"History Shortcuts": "Συντομεύσεις Ιστορικού",
"Keyboard Shortcuts": "Συντομεύσεις Πληκτρολογίου",
"Log Out": "Αποσύνδεση",
"Log Out of Organization": "Αποσύνδεση από Οργανισμό",
"Manual proxy configuration": "Χειροκίνητη παραμετροποίηση proxy",
"Minimize": "Ελαχιστοποίηση",
"Mute all sounds from Zulip": "Σίγαση όλων των ήχων του Zulip",
"NO": "ΟΧΙ",
"Network": "Δίκτυο",
"Network and Proxy Settings": "Ρυθμίσεις Δικτύου και Proxy",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"On macOS, the OS spellchecker is used.": "Στο macOS, χρησιμοποιείται ο έμφυτος έλεγχος ορθογραφίας του.",
"Organization URL": "URL Οργανισμού",
"Organizations": "Οργανισμοί",
"Paste": "Επικόλληση",
"Paste and Match Style": "Επικόλληση και υιοθέτηση στυλ προορισμού",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"Proxy bypass rules": "Κανόνες παράκαμψης Proxy",
"Proxy rules": "Κανόνες Proxy",
"Quit": "Έξοδος",
"Quit Zulip": "Έξοδος από Zulip",
"Quit when the window is closed": "Έξοδος όταν κλείνει το παράθυρο",
"Redo": "Ακύρωση αναίρεσης",
"Release Notes": "Σημειώσεις έκδοσης",
"Reload": "Επαναφόρτωση",
"Report an Issue": "Αναφορά ενός προβλήματος",
"Reset App Settings": "Επαναφορά Ρυθμίσεων Εφαρμογής",
"Reset the application, thus deleting all the connected organizations and accounts.": "Επαναφορά της εφαρμογής, με διαγραφή όλων των συνδεδεμένων οργανισμών και λογαριασμών.",
"Save": "Αποθήκευση",
"Select All": "Επιλογή Όλων",
"Services": "Υπηρεσίες",
"Settings": "Ρυθμίσεις",
"Shortcuts": "Συντομεύσεις",
"Show app icon in system tray": "Εμφάνιση εικονιδίου στη γραμμή εργασιών",
"Show app unread badge": "Εμφάνιση ένδειξης μη αναγνωσμένων μηνυμάτων",
"Show desktop notifications": "Εμφάνιση ειδοποιήσεων στην Επιφάνεια Εργασίας",
"Show sidebar": "Εμφάνιση πλευρικής γραμμής εργαλείων",
"Spellchecker Languages": "Γλώσσες Ορθογραφικού Ελέγχου",
"Start app at login": "Έναρξη εφαρμογής κατά τη σύνδεση",
"Switch to Next Organization": "Μετάβαση σε Επόμενο Οργανισμό",
"Switch to Previous Organization": "Μετάβαση σε Προηγούμενο Οργανισμό",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Tip": "Συμβουλή",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"Toggle Full Screen": "Ενεργοποίηση/ Απενεργοποίηση Πλήρους Οθόνης",
"Toggle Sidebar": "Εμφάνιση/Απόκρυψη πλευρικής γραμμής εργαλείων",
"Toggle Tray Icon": "Εμφάνιση/Απόκρυψη εικονιδίου γραμμής εργασιών",
"Tools": "Εργαλεία",
"Undo": "Αναίρεση",
"Unhide": "Επανεμφάνιση",
"Upload": "Ανέβασμα",
"Use system proxy settings (requires restart)": "Χρήση ρυθμίσεων proxy συστήματος (χρειάζεται επανεκκίνηση)",
"View": "Προβολή",
"View Shortcuts": "Εμφάνιση Συντομεύσεων",
"Window": "Παράθυρο",
"Window Shortcuts": "Συντομεύσεις Παραθύρου",
"YES": "ΝΑΙ",
"You can select a maximum of 3 languages for spellchecking.": "Μπορούν να επιλεγούν μέχρι 3 γλώσσες ορθογραφικού ελέγχου.",
"Zoom In": "Ζουμ εγγύτερα",
"Zoom Out": "Ζουμ μακρύτερα",
"keyboard shortcuts": "συντομεύσεις πληκτρολογίου",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "All the connected organisations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
@@ -86,7 +86,7 @@
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organisations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",

127
public/translations/eo.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -4,124 +4,124 @@
"Add Organization": "اضافه کردن سازمان",
"Add a Zulip organization": "اضافه کردن سازمان Zulip",
"Add custom CSS": "اضافه کردن CSS دلخواه",
"AddServer": "AddServer",
"AddServer": "افزودن سرور",
"Advanced": "پیشرفته",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "همه سازمان‌های مرتبط در اینجا ظاهر می‌شوند.",
"Always start minimized": "همواره به صورت کوچک شده اجرا شو",
"App Updates": "به‌روزرسانی‌های برنامه",
"App language (requires restart)": "App language (requires restart)",
"App language (requires restart)": "زبان برنامه (نیاز به راه اندازی مجدد)",
"Appearance": "شمایل",
"Application Shortcuts": "میانبرهای برنامه",
"Are you sure you want to disconnect this organization?": "آیا از قطع ارتباط از سازمان اطمینان دارید؟",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Ask where to save files before downloading": "قبل از دانلود بپرس که کجا ذخیره شود.",
"Auto hide Menu bar": "مخفی‌سازی خودکار نوار منو",
"Auto hide menu bar (Press Alt key to display)": "مخفی‌سازی خودکار نوار منو (برای نمایش دکمه Alt را بزنید)",
"Back": "عقب",
"Bounce dock on new private message": "Bounce dock on new private message",
"Bounce dock on new private message": "جهش پرش در پیام خصوصی جدید",
"Change": "تغییر دادن",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "زبان را از تنظیمات سیستم ← صفحه کلید ← متن ← املا تغییر دهید.",
"Check for Updates": "بررسی برای به‌روز‌رسانی",
"Close": "بستن",
"Connect": "اتصال",
"Connect to another organization": "اتصال به یک سازمان دیگر",
"Connected organizations": "سازمان‌های وصل شده",
"Copy": "رونوشت",
"Copy Zulip URL": "رونوشت از Zulip URL",
"Copy Zulip URL": "کپی از Zulip URL",
"Create a new organization": "ایجاد سازمان جدید",
"Cut": "بریدن",
"Default download location": "محل پیش‌فرض دانلود",
"Delete": "حذف",
"Desktop Notifications": "اطلاع‌رسانی‌های دسکتاپ",
"Desktop Settings": "تنظیمات دسکتاپ",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Disconnect": "قطع اتصال",
"Download App Logs": "دانلود لاگ های اپلیکیشن",
"Edit": "ویرایش",
"Edit Shortcuts": "ویرایش میانبرها",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"Emoji & Symbols": "ایموجی ها و نمادها",
"Enable auto updates": "فعال کردن بروزرسانی خودکار",
"Enable error reporting (requires restart)": "فعال کردن گزارش خطا (نیاز به راه اندازی مجدد)",
"Enable spellchecker (requires restart)": "فعال کردن غلط‌گیر املا (نیاز به راه‌اندازی مجدد)",
"Enter Full Screen": "ورود به حالت تمام صفحه",
"Factory Reset": "تنظیم مجدد کارخانه",
"Factory Reset Data": "بازگشت به تنظیمات کارخانه",
"File": "فایل",
"Find accounts": "پیدا کردن حساب های کاربری ",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"Find accounts by email": "اکانت ها را از طریق ایمیل پیدا کنید",
"Flash taskbar on new message": "فلش نوار وظیفه در پیام جدید",
"Forward": "فوروارد",
"Functionality": "عملکرد",
"General": "عمومی",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Get beta updates": "دریافت بروز رسانی بتا",
"Hard Reload": "بارگذاری مجدد",
"Help": "کمک",
"Help Center": "مرکز کمک",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"Hide": "مخفی کردن",
"Hide Others": "پنهان کردن دیگران",
"Hide Zulip": "پنهان کردن زولیپ",
"History": "تاریخچه ",
"History Shortcuts": "تاریخچه میانبرها",
"Keyboard Shortcuts": "میانبرهای صفحه‌کلید",
"Log Out": "خروج",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"Log Out of Organization": "خروج از سازمان",
"Manual proxy configuration": "پیکربندی دستی پروکسی",
"Minimize": "کوچک کردن",
"Mute all sounds from Zulip": "غیرفعال کردن همه صداها در زولیپ",
"NO": "خیر",
"Network": "شبکه",
"Network and Proxy Settings": "تنظیمات شبکه و پروکسی",
"OR": "یا",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"On macOS, the OS spellchecker is used.": "در macOS از غلط‌گیر املای سیستم‌عامل استفاده می‌شود.",
"Organization URL": "URL سازمان",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Organizations": "سازمان ها",
"Paste": "جایگذاری",
"Paste and Match Style": "جایگذاری و تطابق استایل",
"Proxy": "پروکسی",
"Proxy bypass rules": "قوانین دور زدن پروکسی",
"Proxy rules": "قوانین پروکسی",
"Quit": "خروج",
"Quit Zulip": "خروج از زولیپ",
"Quit when the window is closed": "وقتی پنجره بسته است از آن خارج شوید",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Release Notes": "یادداشت های انتشار",
"Reload": "بارگذاری مجدد",
"Report an Issue": "گزارش یک مشکل",
"Reset App Settings": "بازنشانی تنظیمات برنامه",
"Reset the application, thus deleting all the connected organizations and accounts.": "برنامه را بازنشانی کنید، بنابراین تمام سازمان ها و حساب های متصل حذف می شوند.",
"Save": "ذخیره",
"Select All": "Select All",
"Services": "Services",
"Select All": "انتخاب همه",
"Services": "خدمات",
"Settings": "تنظیمات",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Shortcuts": "میانبرها",
"Show app icon in system tray": "نمایش نماد برنامه در ناحیه اعلان سیستم",
"Show app unread badge": "نشان برنامه خوانده نشده نمایش داده شود",
"Show desktop notifications": "نمایش اعلان های دسکتاپ",
"Show sidebar": "نمایش ستون کناری",
"Spellchecker Languages": "غلط یاب املایی زبان ها",
"Start app at login": "برنامه را در هنگام ورود شروع کنید",
"Switch to Next Organization": "جابجایی به سازمان بعدی",
"Switch to Previous Organization": "جابجایی به سازمان قبلی",
"These desktop app shortcuts extend the Zulip webapp's": "این میانبرهای برنامه دسکتاپ، برنامه وب Zulip را گسترش می دهند",
"Tip": "نکته",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Sidebar": "تغییر نوار کناری",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Tools": "ابزارها",
"Undo": "بازگشت به عقب",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"Upload": "آپلود",
"Use system proxy settings (requires restart)": "استفاده از تنظیمات پراکسی سیستم (نیاز به راه اندازی مجدد)",
"View": "مشاهده",
"View Shortcuts": "مشاهده میانبرها",
"Window": "پنجره",
"Window Shortcuts": "میانبرهای پنجره",
"YES": "بله",
"You can select a maximum of 3 languages for spellchecking.": "شما می توانید حداکثر 3 زبان را برای بررسی املا انتخاب کنید.",
"Zoom In": "بزرگنمایی",
"Zoom Out": "کوچک نمایی",
"keyboard shortcuts": "میانبرهای صفحه کلید",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} نسخه {{{version}}} سرور Zulip قدیمی را اجرا می‌کند. ممکن است به طور کامل در این برنامه کار نکند."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "Ajouter un CSS spécifique",
"AddServer": "AjouterServeur",
"Advanced": "Avancé",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "Toutes les organisations connectées apparaitront ici.",
"Always start minimized": "Toujours démarrer en fenêtre réduite",
"App Updates": "Mises à jour de l'application",
"App language (requires restart)": "Langue de l'application (nécessite redémarrage)",
@@ -37,11 +37,11 @@
"Download App Logs": "Télécharger le journal de l'application",
"Edit": "Modifier",
"Edit Shortcuts": "Modifier les raccourcis",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "Emojis & symboles",
"Enable auto updates": "Activer la mise à jour automatique",
"Enable error reporting (requires restart)": "Activer le rapport d'erreur (redémarrage nécessaire)",
"Enable spellchecker (requires restart)": "Activer le correcteur orthographique (redémarrage nécessaire)",
"Enter Full Screen": "Enter Full Screen",
"Enter Full Screen": "Accéder au plein écran",
"Factory Reset": "Réinitialiser aux paramètres par défaut",
"Factory Reset Data": "Factory Reset Data",
"File": "Fichier",
@@ -57,7 +57,7 @@
"Help Center": "Centre d'aide",
"Hide": "Masquer",
"Hide Others": "Masquer les autres",
"Hide Zulip": "Hide Zulip",
"Hide Zulip": "Cacher Zulip",
"History": "Historique",
"History Shortcuts": "Historique des raccourcis",
"Keyboard Shortcuts": "Raccourcis clavier",
@@ -68,7 +68,7 @@
"Mute all sounds from Zulip": "Couper tous les sons de Zulip",
"NO": "Non",
"Network": "Réseau",
"Network and Proxy Settings": "Network and Proxy Settings",
"Network and Proxy Settings": "Paramètres réseau et proxy",
"OR": "OU",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "URL de l'organisation",
@@ -86,7 +86,7 @@
"Reload": "Recharger",
"Report an Issue": "Rapporter un problème",
"Reset App Settings": "Réinitialiser les paramètres de l'application",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset the application, thus deleting all the connected organizations and accounts.": "Réinitialiser l'application, supprimant ainsi toutes les organisations et tous les comptes connectés.",
"Save": "Sauvegarder",
"Select All": "Sélectionner tout",
"Services": "Services",

127
public/translations/gu.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

127
public/translations/id.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "Tentang Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Ubah",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Tutup",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Temukan akun",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "URL Organisasi",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Simpan",
"Select All": "Select All",
"Services": "Services",
"Settings": "Pengaturan",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "Aggiungi codice CSS personalizzato",
"AddServer": "AddServer",
"Advanced": "Avanzate",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "Tutte le organizzazioni collegate appariranno qui.",
"Always start minimized": "Avvia sempre minimizzato",
"App Updates": "Aggiornamenti App",
"App language (requires restart)": "Lingua applicazione (richiede riavvio)",
@@ -37,11 +37,11 @@
"Download App Logs": "Scarica Log Applicativi",
"Edit": "Modifica",
"Edit Shortcuts": "Edita Scorciatoie",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "Emoji e simboli",
"Enable auto updates": "Abilita aggiornamenti automatici",
"Enable error reporting (requires restart)": "Abilita segnalazione errori (richiede riavvio)",
"Enable spellchecker (requires restart)": "Abilita correttore ortografico (richiede riavvio)",
"Enter Full Screen": "Enter Full Screen",
"Enter Full Screen": "Accedi a Schermo intero",
"Factory Reset": "Reset di fabbrica",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
@@ -57,7 +57,7 @@
"Help Center": "Centro di aiuto",
"Hide": "Nascondi",
"Hide Others": "Nascondi gli altri",
"Hide Zulip": "Hide Zulip",
"Hide Zulip": "Nascondi Zulip",
"History": "Storico",
"History Shortcuts": "Cronologia Scorciatoie",
"Keyboard Shortcuts": "Scorciatoie Tastiera",
@@ -68,7 +68,7 @@
"Mute all sounds from Zulip": "Silenzia tutti i suoni di Zulip",
"NO": "NO",
"Network": "Rete",
"Network and Proxy Settings": "Network and Proxy Settings",
"Network and Proxy Settings": "Impostazioni di rete e proxy",
"OR": "O",
"On macOS, the OS spellchecker is used.": "Su macOS, è usato il correttore ortografico di sistema.",
"Organization URL": "URL dell'organizzazione",
@@ -86,7 +86,7 @@
"Reload": "Ricarica",
"Report an Issue": "Segnala Un Problema",
"Reset App Settings": "Resetta Impostazioni Applicazione",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset the application, thus deleting all the connected organizations and accounts.": "Ripristina l'applicazione, eliminando così tutte le organizzazioni e gli account collegati.",
"Save": "Salva",
"Select All": "Seleziona Tutto",
"Services": "Servizi",
@@ -123,5 +123,5 @@
"Zoom Out": "Riduci",
"keyboard shortcuts": "scorciatoie tastiera",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} esegue una versione obsoleta di Zulip Server {{{version}}}. Potrebbe non funzionare completamente in questa app."
}

View File

@@ -37,7 +37,7 @@
"Download App Logs": "アプリログをダウンロード",
"Edit": "編集",
"Edit Shortcuts": "ショートカットを編集",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "絵文字と記号",
"Enable auto updates": "自動更新を有効にする",
"Enable error reporting (requires restart)": "エラー報告を有効にする (再起動が必要です)",
"Enable spellchecker (requires restart)": "スペルチェックを有効にする (再起動が必要です)",

127
public/translations/lv.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "Par Zulip",
"Actual Size": "Patiesais izmērs",
"Add Organization": "Pievienot Organizāciju",
"Add a Zulip organization": "Pievienot Zulip organizāciju",
"Add custom CSS": "Pievienot pielāgotu CSS",
"AddServer": "Pievienot serveri",
"Advanced": "Papildus",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Vienmēr palaist samazinātu",
"App Updates": "Programmas atjauninājumi",
"App language (requires restart)": "Programmas valoda (nepieciešama restartēšana)",
"Appearance": "Izskats",
"Application Shortcuts": "Programmas īsinājumtaustiņi",
"Are you sure you want to disconnect this organization?": "Vai tiešām vēlaties atvienoties no šīs organizācijas?",
"Ask where to save files before downloading": "Pirms lejupielādes jautāt, kur saglabāt failus",
"Auto hide Menu bar": "Automātiski slēpt izvēļņu joslu",
"Auto hide menu bar (Press Alt key to display)": "Automātiski slēpt izvēļņu joslu (lai parādītu, nospiediet taustiņu Alt)",
"Back": "Atpakaļ",
"Bounce dock on new private message": "Tirināt doka ikonu, kad saņemts jauns privāts ziņojums",
"Change": "Mainīt",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Mainīt valodu var zem System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Pārbaudīt, vai ir pieejami atjauninājumi",
"Close": "Aizvērt",
"Connect": "Pievienoties",
"Connect to another organization": "Pievienoties citai organizācijai",
"Connected organizations": "Organizācijas, kurā esmu pievienojies",
"Copy": "Kopēt",
"Copy Zulip URL": "Kopēt Zulip URL",
"Create a new organization": "Izveidot jaunu organizāciju",
"Cut": "Izgriezt",
"Default download location": "Noklusētā lejupielādes mape",
"Delete": "Dzēst",
"Desktop Notifications": "Darbvirsmas paziņojumi",
"Desktop Settings": "Darbvirsmas iestatījumi",
"Disconnect": "Atvienot",
"Download App Logs": "Lejupielādēt programmas žurnālus",
"Edit": "Rediģēt",
"Edit Shortcuts": "Rediģēt īsinājumtaustiņi",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Iespējot automātisko atjaunināšanu",
"Enable error reporting (requires restart)": "Iespējot kļūdu ziņošanu (nepieciešama restartēšana)",
"Enable spellchecker (requires restart)": "Iespējot pareizrakstības pārbaudi (nepieciešama restartēšana)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Atiestatīt programmu",
"Factory Reset Data": "Programmas datu atiestatīšana",
"File": "Fails",
"Find accounts": "Meklēt kontus",
"Find accounts by email": "Meklēt kontus, izmantojot e-pastu",
"Flash taskbar on new message": "Zibsnīt uzdevumjoslu, kad saņemts jauns ziņojums",
"Forward": "Uz priekšu",
"Functionality": "Funkcionalitāte",
"General": "Vispārīgie",
"Get beta updates": "Saņemt beta atjauninājumus",
"Hard Reload": "Pārlādēt piespiedu",
"Help": "Palīgs",
"Help Center": "Palīdzības centrs",
"Hide": "Paslēpt",
"Hide Others": "Paslēpt pārējos",
"Hide Zulip": "Hide Zulip",
"History": "Vēsture",
"History Shortcuts": "Vēstures īsinājumtaustiņi",
"Keyboard Shortcuts": "Tastatūras īsinājumtaustiņi",
"Log Out": "Atteikties",
"Log Out of Organization": "Atteikties no organizācijas",
"Manual proxy configuration": "Manuālā starpniekservera konfigurācija",
"Minimize": "Minimizēt",
"Mute all sounds from Zulip": "Izslēgt visas Zulip skaņas",
"NO": "NĒ",
"Network": "Tīkls",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "VAI",
"On macOS, the OS spellchecker is used.": "Operētājsistēmā macOS tiek izmantota OS pareizrakstības pārbaude.",
"Organization URL": "Organizācijas URL",
"Organizations": "Organizācijas",
"Paste": "Ielīmēt",
"Paste and Match Style": "Ielīmēt un saskaņot stilu",
"Proxy": "Starpniekserveris",
"Proxy bypass rules": "Starpniekservera apiešanas noteikumi",
"Proxy rules": "Starpniekservera noteikumi",
"Quit": "Aizvērt",
"Quit Zulip": "Aizvērt Zulip programmu",
"Quit when the window is closed": "Aizvērt programmu, kad logs tiek aizvērts",
"Redo": "Atsaukt atsaukto",
"Release Notes": "Izlaiduma piezīmes - Izmaiņu žurnāls",
"Reload": "Pārlādēt",
"Report an Issue": "Ziņot par problēmu",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Saglabāt",
"Select All": "Atlasīt visu",
"Services": "Pakalpojumi",
"Settings": "Iestatījumi",
"Shortcuts": "Īsinājumtaustiņi",
"Show app icon in system tray": "Rādīt programmas ikonu sistēmas teknē",
"Show app unread badge": "Rādīt programmas nelasīto emblēmu",
"Show desktop notifications": "Rādīt darbvirsmas paziņojumus",
"Show sidebar": "Rādīt sānjoslu",
"Spellchecker Languages": "Pareizrakstības pārbaudes valodas",
"Start app at login": "Palaist programmu pie pieteikšanās",
"Switch to Next Organization": "Pārslēgties uz nākamo organizāciju",
"Switch to Previous Organization": "Pārslēgties uz iepriekšējo organizāciju",
"These desktop app shortcuts extend the Zulip webapp's": "Šie darbvirsmas programmu īsinājumtaustiņi paplašina Zulip tīmekļa lietotnes",
"Tip": "Padoms",
"Toggle DevTools for Active Tab": "Paslēpt/Parādīt Izstrādātāja rīkus aktīvājā cilnē",
"Toggle DevTools for Zulip App": "Paslēpt/Parādīt Izstrādātāja rīkus Zulip programmā",
"Toggle Do Not Disturb": "Pārslēgt Netraucēt mani",
"Toggle Full Screen": "Pārslēgties uz/Iziet no pilnekrāna režīmu",
"Toggle Sidebar": "Paslēpt/Parādīt sānjoslu",
"Toggle Tray Icon": "Paslēpt/Parādīt teknes ikonu",
"Tools": "Rīki",
"Undo": "Atsaukt",
"Unhide": "Parādīt",
"Upload": "Augšupielādēt",
"Use system proxy settings (requires restart)": "Izmantot sistēmas starpniekservera iestatījumus (nepieciešama restartēšana)",
"View": "Skatīt",
"View Shortcuts": "Skatīt īsinājumtaustiņi",
"Window": "Logs",
"Window Shortcuts": "Logu īsinājumtaustiņi",
"YES": "JĀ",
"You can select a maximum of 3 languages for spellchecking.": "Pareizrakstības pārbaudei varat atlasīt ne vairāk kā 3 valodas.",
"Zoom In": "Pietuvināt",
"Zoom Out": "Attālināt",
"keyboard shortcuts": "īsinājumtaustiņus",
"script": "skripts",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

127
public/translations/mn.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "Тухай",
"Actual Size": "Багтаамж",
"Add Organization": "Бүлэг нэмэх",
"Add a Zulip organization": "Чат бүлэг нэмэх",
"Add custom CSS": "Нэмэлт CSS нэмэх",
"AddServer": "Сервер нэмэх",
"Advanced": "Нарийвчилсан",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Minimized байдлаар эхлэнэ",
"App Updates": "App шинэчлэлт",
"App language (requires restart)": "Хэл (Унтрааж асаах шаарлагатай)",
"Appearance": "Харагдах байдал",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Та энэ бүлгээс гарахдаа итгэлтэй байна уу?",
"Ask where to save files before downloading": "Файл хаана татагдахыг асуух",
"Auto hide Menu bar": "Цэс автоматаар нуух",
"Auto hide menu bar (Press Alt key to display)": "Цэс автоматаар нуух ( Alt товч даран харна уу)",
"Back": "Буцах",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Өөрчлөа",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Хэл солих бол System preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Шинэчлэлт шалгах",
"Close": "Хаах",
"Connect": "Холбогдох",
"Connect to another organization": "Өөр бүлэгт Холбогдох",
"Connected organizations": "Холбогдсон бүлгүүд",
"Copy": "Хуулах",
"Copy Zulip URL": "Оффис чатын холбоос хуулах",
"Create a new organization": "Шинэ бүлэг үүсгэх",
"Cut": "Бүр мөсөн хуулах",
"Default download location": "Үндсэн татах байршил",
"Delete": "Устгах",
"Desktop Notifications": "Desktop Мэдэгдэл",
"Desktop Settings": "Desktop тохиргоо",
"Disconnect": "Холболт салгах",
"Download App Logs": "Download App Лог",
"Edit": "Засах",
"Edit Shortcuts": "Холбоос засах",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Авто шинэчлэлт идэвхижүүлэх",
"Enable error reporting (requires restart)": "Алдаа мэдэгдэгч идэвхижүүлэх (Унтрааж асаах шаарлагатай)",
"Enable spellchecker (requires restart)": "Дүрэм шалгагч идэвхижүүлэх (Унтрааж асаах шаарлагатай)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Бүх датаг цэвэрлэж дахин эхлүүлэх",
"Factory Reset Data": "Бүх датаг цэвэрлэж дахин эхлүүлэх",
"File": "файл",
"Find accounts": "Хаяг хайх",
"Find accounts by email": "Имэйлээр нь хайх",
"Flash taskbar on new message": "Мэссэж мэдэгдэх",
"Forward": "Дамжуулах",
"Functionality": "Үйлдэлүүд",
"General": "Үндсэн",
"Get beta updates": "Бэта шинэчлэлт авах",
"Hard Reload": "Дахин ачааллуулах",
"Help": "Тусламж",
"Help Center": "Тусламжийн хэсэн",
"Hide": "Нуух",
"Hide Others": "Бусдаас нуух",
"Hide Zulip": "Hide Zulip",
"History": "Ашиглалтийн түүх",
"History Shortcuts": "Холбоосын түүх",
"Keyboard Shortcuts": "Keyboard холбоос",
"Log Out": "Гарах",
"Log Out of Organization": "Бүлгээс гарах",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Бүх дууг хаах",
"NO": "NO",
"Network": "Сүлжээ",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": ".",
"Organization URL": "Бүлгийн холбоос",
"Organizations": "Бүлгүүд",
"Paste": "Хуулж тавих",
"Paste and Match Style": "Хуулж тавих",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass дүрмүүд",
"Proxy rules": "Proxy дүрмүүд",
"Quit": "Хаах",
"Quit Zulip": "Чатыг хаах",
"Quit when the window is closed": "Цонх хаагдахад гарах",
"Redo": "Дахин хийх",
"Release Notes": "Release Notes",
"Reload": "Дахин ачааллах",
"Report an Issue": "Алдааг мэдэгдэх",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Хадгалах",
"Select All": "Бүгдийн идэвхижүүлэх",
"Services": "Үйлчилгээ",
"Settings": "Тохиргоо",
"Shortcuts": "Холбоос",
"Show app icon in system tray": "Жижиг icon харуулах",
"Show app unread badge": "Уншаагүй мэдэгдэл харуулах",
"Show desktop notifications": "Мэдэгдэл харуулах",
"Show sidebar": "Хажуугын цэсийг харуулах",
"Spellchecker Languages": "Дүрэм шалгах хэлүүд",
"Start app at login": "Нэвтрэхэд ачааллуулах",
"Switch to Next Organization": "Дараагийн бүлэг",
"Switch to Previous Organization": "Өмнөх бүлэг",
"These desktop app shortcuts extend the Zulip webapp's": "Browser-оор холбогдох холбоос",
"Tip": "зөвлөгөө",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Үйлдэлээ буцаах",
"Unhide": "Нуухаа болих",
"Upload": "Файл хуулах",
"Use system proxy settings (requires restart)": "Proxy систем ашиглах (Унтрааж асаах шаарлагатай)",
"View": "Харах",
"View Shortcuts": "Холбоос харах",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "Хамгийн ихдээ 3 хэл дүрэм шалгахад ашиглана.",
"Zoom In": "Сунгах",
"Zoom Out": "Жижигрүүлэх",
"keyboard shortcuts": "keyboard холбоос",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

127
public/translations/my.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

127
public/translations/no.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

127
public/translations/pa.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "Adicionar CSS personalizado",
"AddServer": "AddServer",
"Advanced": "Avançado",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "Todas as organizações conectadas aparecerão aqui.",
"Always start minimized": "Começar sempre minimizado",
"App Updates": "Atualizações de aplicativos",
"App language (requires restart)": "App language (requires restart)",
@@ -37,11 +37,11 @@
"Download App Logs": "Download de registros de aplicativos",
"Edit": "Editar",
"Edit Shortcuts": "Editar atalhos",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "Emojis e Símbolos",
"Enable auto updates": "Ativar atualizações automáticas",
"Enable error reporting (requires restart)": "Ativar relatório de erros (requer reinicialização)",
"Enable spellchecker (requires restart)": "Ativar verificação ortográfica (requer reinicialização)",
"Enter Full Screen": "Enter Full Screen",
"Enter Full Screen": "Abrir em Tela Cheia",
"Factory Reset": "Restauração de fábrica",
"Factory Reset Data": "Factory Reset Data",
"File": "Arquivo",
@@ -57,7 +57,7 @@
"Help Center": "Centro de ajuda",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"Hide Zulip": "Ocultar o Zulip",
"History": "História",
"History Shortcuts": "Atalhos da História",
"Keyboard Shortcuts": "Atalhos do teclado",
@@ -68,7 +68,7 @@
"Mute all sounds from Zulip": "Silencie todos os sons de Zulip",
"NO": "NÃO",
"Network": "Rede",
"Network and Proxy Settings": "Network and Proxy Settings",
"Network and Proxy Settings": "Configurações de Rede e Proxy",
"OR": "OU",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "URL da organização",
@@ -85,8 +85,8 @@
"Release Notes": "Notas de Lançamento",
"Reload": "recarregar",
"Report an Issue": "Comunicar um problema",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset App Settings": "Restaurar Configurações da Aplicação",
"Reset the application, thus deleting all the connected organizations and accounts.": "Restaurar a aplicação, dessa forma removendo todas as e organizações e contas conectadas.",
"Save": "Salve ",
"Select All": "Selecionar tudo",
"Services": "Services",
@@ -123,5 +123,5 @@
"Zoom Out": "Reduzir o zoom",
"keyboard shortcuts": "atalhos do teclado",
"script": "roteiro",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} está executando a versão {{{version}}} do Servidor Zulip, que está desatualizada. Talvez não funcione corretamente nesta aplicação."
}

View File

@@ -0,0 +1,127 @@
{
"About Zulip": "Acerca do Zulip",
"Actual Size": "Tamanho Original",
"Add Organization": "Adicionar Organização",
"Add a Zulip organization": "Adicionar uma organização Zulip",
"Add custom CSS": "Adicionar CSS próprio",
"AddServer": "AddServer",
"Advanced": "Avançadas",
"All the connected organizations will appear here.": "Todas as organizações conectadas aparecerão aqui.",
"Always start minimized": "Iniciar minimizado",
"App Updates": "Atualizações da App",
"App language (requires restart)": "Idioma da App (requer reinício)",
"Appearance": "Aspecto",
"Application Shortcuts": "Atalhos da App",
"Are you sure you want to disconnect this organization?": "Tem certeza de que quer desconectar esta organização?",
"Ask where to save files before downloading": "Perguntar onde guardar ficheiros antes de transferir",
"Auto hide Menu bar": "Auto-ocultar barra de Menu",
"Auto hide menu bar (Press Alt key to display)": "Auto-ocultar barra de menu (Premir Alt para exibir)",
"Back": "Voltar",
"Bounce dock on new private message": "Saltitar a dock em nova mensagem privada",
"Change": "Alterar",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Alterar idioma de Preferências de Sistema → Teclado → Texto → Ortografia.",
"Check for Updates": "Procurar Atualizações",
"Close": "Fechar",
"Connect": "Conectar",
"Connect to another organization": "Conectar a outra organização",
"Connected organizations": "Organizações conectadas",
"Copy": "Copiar",
"Copy Zulip URL": "Copiar URL do Zulip",
"Create a new organization": "Criar uma nova organização",
"Cut": "Cortar",
"Default download location": "Pasta de transferências predefinida",
"Delete": "Apagar",
"Desktop Notifications": "Notificações de Desktop",
"Desktop Settings": "Definições de Desktop",
"Disconnect": "Desconectar",
"Download App Logs": "Transferir Relatórios da App",
"Edit": "Editar",
"Edit Shortcuts": "Editar Atalhos",
"Emoji & Symbols": "Emoji e Símbolos",
"Enable auto updates": "Permitir atualizações automáticas",
"Enable error reporting (requires restart)": "Ativar relato de erros (requer reinício)",
"Enable spellchecker (requires restart)": "Ativar corretor ortográfico (requer reinício)",
"Enter Full Screen": "Entrar em Ecrã Inteiro",
"Factory Reset": "Restauro de Fábrica",
"Factory Reset Data": "Restauro de Dados",
"File": "Ficheiro",
"Find accounts": "Encontrar contas",
"Find accounts by email": "Encontrar contas por e-mail",
"Flash taskbar on new message": "Piscar a barra de tarefas ao receber nova mensagem",
"Forward": "Avançar",
"Functionality": "Funcionalidade",
"General": "Geral",
"Get beta updates": "Atualizações de Betas",
"Hard Reload": "Recarregar Forçado",
"Help": "Ajuda",
"Help Center": "Centro de Ajuda",
"Hide": "Ocultar",
"Hide Others": "Ocultar Outros",
"Hide Zulip": "Ocultar o Zulip",
"History": "Histórico",
"History Shortcuts": "Atalhos de Histórico",
"Keyboard Shortcuts": "Atalhos de Teclado",
"Log Out": "Terminar Sessão",
"Log Out of Organization": "Terminar Sessão na Organização",
"Manual proxy configuration": "Configurar proxy manualmente",
"Minimize": "Minimizar",
"Mute all sounds from Zulip": "Silenciar Sons do Zulip",
"NO": "NÃO",
"Network": "Rede",
"Network and Proxy Settings": "Definições de Rede e Proxy",
"OR": "OU",
"On macOS, the OS spellchecker is used.": "No macOS é usado o corretor ortográfico do sistema.",
"Organization URL": "URL da Organização",
"Organizations": "Organizações",
"Paste": "Colar",
"Paste and Match Style": "Colar com formatação de destino",
"Proxy": "Proxy",
"Proxy bypass rules": "Regras de bypass de proxy",
"Proxy rules": "Regras de proxy",
"Quit": "Sair",
"Quit Zulip": "Sair do Zulip",
"Quit when the window is closed": "Sair quando a janela é fechada",
"Redo": "Refazer",
"Release Notes": "Notas de publicação",
"Reload": "Recarregar",
"Report an Issue": "Comunicar um Problema",
"Reset App Settings": "Restaurar Definições da App",
"Reset the application, thus deleting all the connected organizations and accounts.": "Restaurar a aplicação, assim apagando todas as organizações e contas conectadas.",
"Save": "Guardar",
"Select All": "Seleccionar Tudo",
"Services": "Serviços",
"Settings": "Definições",
"Shortcuts": "Atalhos",
"Show app icon in system tray": "Ver ícone da app na bandeja de sistema",
"Show app unread badge": "Ver emblema de mensagens não lidas",
"Show desktop notifications": "Ver notificações de desktop",
"Show sidebar": "Ver barra lateral",
"Spellchecker Languages": "Idiomas com Verificação Ortográfica",
"Start app at login": "Iniciar App com o sistema",
"Switch to Next Organization": "Trocar para Organização Seguinte",
"Switch to Previous Organization": "Trocar para Organização Anterior",
"These desktop app shortcuts extend the Zulip webapp's": "Estes atalhos da app desktop expandem os da webapp do Zulip",
"Tip": "Dica",
"Toggle DevTools for Active Tab": "DevTools para o Separador Ativo",
"Toggle DevTools for Zulip App": "DevTools para a App Zulip",
"Toggle Do Not Disturb": "Não Incomodar",
"Toggle Full Screen": "Ecrã Completo",
"Toggle Sidebar": "Barra Lateral",
"Toggle Tray Icon": "Ícone da bandeja de sistema",
"Tools": "Ferramentas",
"Undo": "Desfazer",
"Unhide": "Revelar",
"Upload": "Carregar",
"Use system proxy settings (requires restart)": "Usar definições de proxy do sistema (requer reinício)",
"View": "Ver",
"View Shortcuts": "Atalhos de Visualização",
"Window": "Janela",
"Window Shortcuts": "Atalhos de Janela",
"YES": "SIM",
"You can select a maximum of 3 languages for spellchecking.": "Pode seleccionar um máximo de 3 idiomas para correção ortográfica.",
"Zoom In": "Ampliar",
"Zoom Out": "Reduzir",
"keyboard shortcuts": "atalhos de teclado",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} está a correr uma versão ultrapassada do Servidor Zulip {{{version}}}. Pode não funcionar completamente nesta app."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "Добавить собственный CSS",
"AddServer": "Добавить Сервер",
"Advanced": "Дополнительно",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "Все связанные организации будут появляться здесь.",
"Always start minimized": "Запускать свернутым",
"App Updates": "Обновления",
"App language (requires restart)": "Язык приложения (требует перезапуска)",
@@ -37,11 +37,11 @@
"Download App Logs": "Скачать логи приложения",
"Edit": "Изменить",
"Edit Shortcuts": "Редактировать горячие клавиши",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "Эмодзи и символы",
"Enable auto updates": "Включить автообновление",
"Enable error reporting (requires restart)": "Включить сообщения об ошибках (потребуется перезапуск)",
"Enable spellchecker (requires restart)": "Включить проверку орфографии (потребуется перезапуск)",
"Enter Full Screen": "Enter Full Screen",
"Enter Full Screen": "Войти в полноэкранный режим",
"Factory Reset": "Сброс настроек",
"Factory Reset Data": "Сброс данных приложения",
"File": "Файл",
@@ -57,7 +57,7 @@
"Help Center": "Центр поддержки",
"Hide": "Скрыть",
"Hide Others": "Скрыть другие",
"Hide Zulip": "Hide Zulip",
"Hide Zulip": "Скрыть Zulip",
"History": "История",
"History Shortcuts": "Горячие клавишы по истории",
"Keyboard Shortcuts": "Горячие клавишы",
@@ -68,7 +68,7 @@
"Mute all sounds from Zulip": "Выключить все звуки Zulip",
"NO": "НЕТ",
"Network": "Сеть",
"Network and Proxy Settings": "Network and Proxy Settings",
"Network and Proxy Settings": "Настройки сети и прокси",
"OR": "ИЛИ",
"On macOS, the OS spellchecker is used.": "На macOS используется орфографический корректор ОС.",
"Organization URL": "URL организации",
@@ -86,7 +86,7 @@
"Reload": "Перезагрузить",
"Report an Issue": "Сообщить об ошибке",
"Reset App Settings": "Сбросить настройки приложения",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset the application, thus deleting all the connected organizations and accounts.": "Сбросить все настройки приложения, и удалить все подключенные организации и учетные записи.",
"Save": "Сохранить",
"Select All": "Выделить все",
"Services": "Сервисы",
@@ -123,5 +123,5 @@
"Zoom Out": "Уменьшить масштаб",
"keyboard shortcuts": "Горячие клавиши",
"script": "скрипт",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} использует устаревшую версию Zulip {{{version}}}. Приложение может работать не полностью."
}

127
public/translations/si.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "සුලිප් පිළිබඳව",
"Actual Size": "සැබෑ ප්‍රමාණය",
"Add Organization": "සංවිධානය එක්කරන්න",
"Add a Zulip organization": "සුලිප් සංවිධානයක් එක්කරන්න",
"Add custom CSS": "අභිරුචි සීඑස්එස් යොදන්න",
"AddServer": "සේවාදායකය එක්කරන්න",
"Advanced": "වැඩිදුර",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "හකුළුවා දියත් කරන්න",
"App Updates": "යෙදුමේ යාවත්කාල",
"App language (requires restart)": "යෙදුමේ භාෂාව (යළි ඇරඹීම අවශ්‍යයි)",
"Appearance": "පෙනුම",
"Application Shortcuts": "යෙදුමේ කෙටිමං",
"Are you sure you want to disconnect this organization?": "ඔබට මෙම සංවිධානය විසන්ධි කිරීමට අවශ්‍ය බව විශ්වාසද?",
"Ask where to save files before downloading": "බාගැනීමට පෙර සුරැකිය යුතු ස්ථානය අසන්න",
"Auto hide Menu bar": "වට්ටෝරු තීරුව ස්වයං සැඟවීම",
"Auto hide menu bar (Press Alt key to display)": "වට්ටෝරු තීරුව ස්වයං සැඟවීම (දැකීමට Alt ඔබන්න)",
"Back": "ආපසු",
"Bounce dock on new private message": "නව පණිවිඩ ලැබෙන විට නිරූපකය සෙලවීම",
"Change": "සංශෝධනය",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "යාවත්කාල බලන්න",
"Close": "වසන්න",
"Connect": "සබඳින්න",
"Connect to another organization": "වෙනත් සංවිධානයකට සබැඳින්න",
"Connected organizations": "සම්බන්ධිත සංවිධාන",
"Copy": "පිටපතක්",
"Copy Zulip URL": "සුලිප් ඒ.ස.නි. පිටපතක්",
"Create a new organization": "නව සංවිධානයක් සාදන්න",
"Cut": "කපන්න",
"Default download location": "පෙරනිමි බාගැනීමේ ස්ථානය",
"Delete": "මකන්න",
"Desktop Notifications": "වැඩතල දැනුම්දීම්",
"Desktop Settings": "වැඩතල සැකසුම්",
"Disconnect": "විසන්ධි කරන්න",
"Download App Logs": "යෙදුමේ සටහන් බාගන්න",
"Edit": "සංස්කරණය",
"Edit Shortcuts": "කෙටිමං සංස්කරණය",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "ස්වයං යාවත්කාල සබලකරන්න",
"Enable error reporting (requires restart)": "දෝෂ වාර්තාව සබලකරන්න (යළි ඇරඹීම අවශ්‍යයි)",
"Enable spellchecker (requires restart)": "අකුරු වින්‍යාසය පරීක්‍ෂාව (යළි අරඹන්න)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "ගොනුව",
"Find accounts": "ගිණුම් සොයාගන්න",
"Find accounts by email": "වි-තැපෑලෙන් ගිණුම් සොයාගන්න",
"Flash taskbar on new message": "නව පණිවිඩ සඳහා කාර්යතීරුව දිදුලන්න",
"Forward": "හරවන්න",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "බීටා යාවත්කාල ගන්න",
"Hard Reload": "Hard Reload",
"Help": "උදව්",
"Help Center": "උදව් මධ්‍යස්ථානය",
"Hide": "සඟවන්න",
"Hide Others": "අන් අය සඟවන්න",
"Hide Zulip": "Hide Zulip",
"History": "ඉතිහාසය",
"History Shortcuts": "ඉතිහාස කෙටිමං",
"Keyboard Shortcuts": "යතුරුපුවරුවේ කෙටිමං",
"Log Out": "නික්මෙන්න",
"Log Out of Organization": "සංවිධානයෙන් නික්මෙන්න",
"Manual proxy configuration": "අතින් ප්‍රතියුක්තය වින්‍යාසය",
"Minimize": "හකුළන්න",
"Mute all sounds from Zulip": "සියළුම සුලිප් ශබ්ද නිහඬකරන්න",
"NO": "නැහැ",
"Network": "ජාලය",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "හෝ",
"On macOS, the OS spellchecker is used.": "මැක්ඕඑස් හි, මෙ. පද්. අකුරු පරීක්‍ෂාව භාවිතයි.",
"Organization URL": "සංවිධානයේ ඒ.ස.නි.",
"Organizations": "සංවිධාන",
"Paste": "අලවන්න",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "ප්‍රතියුක්තය",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "ප්‍රතියුක්තයේ නීති",
"Quit": "ඉවත් වන්න",
"Quit Zulip": "සුලිප් වෙතින් ඉවත්වන්න",
"Quit when the window is closed": "කවුළුව වැසූ විට ඉවත් වන්න",
"Redo": "පසුසේ",
"Release Notes": "නිකුතු සටහන්",
"Reload": "යළි පූරණය",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "සුරකින්න",
"Select All": "සියල්ල තෝරන්න",
"Services": "සේවා",
"Settings": "සැකසුම්",
"Shortcuts": "කෙටිමං",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "වැඩතලයෙහි දැනුම්දීම් පෙන්වන්න",
"Show sidebar": "පැති තීරුව පෙන්වන්න",
"Spellchecker Languages": "අකුරු වින්‍යාසය පරීක්‍ෂාවට භාෂා",
"Start app at login": "Start app at login",
"Switch to Next Organization": "ඊළඟ සංවිධානයට මාරුවන්න",
"Switch to Previous Organization": "කලින් සංවිධානයට මාරුවන්න",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "මෙවලම්",
"Undo": "පෙරසේ",
"Unhide": "නොසඟවන්න",
"Upload": "උඩුගත කරන්න",
"Use system proxy settings (requires restart)": "පද්ධතියේ ප්‍රතියුක්තය භාවිතය (යළි ඇරඹිය යුතුය)",
"View": "බලන්න",
"View Shortcuts": "කෙටිමං බලන්න",
"Window": "කවුළුව",
"Window Shortcuts": "කවුළුවේ කෙටිමං",
"YES": "ඔව්",
"You can select a maximum of 3 languages for spellchecking.": "අකුරු වින්‍යාසය පරීක්‍ෂාව සඳහා උපරිම භාෂා 3 ක් තේරීමට හැකිය.",
"Zoom In": "විශාලනය",
"Zoom Out": "කුඩාලනය",
"keyboard shortcuts": "යතුරුපුවරුවේ කෙටිමං",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

127
public/translations/te.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "జులిప్ గురించి",
"Actual Size": "వాస్తవ పరిమాణం",
"Add Organization": "సంస్థను జోడించు",
"Add a Zulip organization": "జులిప్ సంస్థను జోడించు",
"Add custom CSS": "అనుకూల CSS ను జోడించు",
"AddServer": "సర్వర్ జోడించు",
"Advanced": "ఉన్నతస్థాయి",
"All the connected organizations will appear here.": "కనెక్ట్ చేయబడిన అన్ని సంస్థలు ఇక్కడ కనిపిస్తాయి.",
"Always start minimized": "ఎల్లప్పుడూ తగ్గించబడి ప్రారంభించండి",
"App Updates": "యాప్ అప్‌డేట్‌లు",
"App language (requires restart)": "యాప్ భాష (పునఃప్రారంభం అవసరం)",
"Appearance": "ప్రదర్శన",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

127
public/translations/tl.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Antas na Mataas",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Baguhin",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Mga Itinakda",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "Özel CSS Ekle",
"AddServer": "SunucuEkle",
"Advanced": "İleri Düzey",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "Eklenen organizasyonlar burada gözükücektir.",
"Always start minimized": "Her zaman simge durumunda başla",
"App Updates": "Güncellemeleri Ekle",
"App language (requires restart)": "Uygulama dili (yeniden başlatma gerekir)",
@@ -17,7 +17,7 @@
"Auto hide Menu bar": "Menü çubuğunu otomatik olarak gizle",
"Auto hide menu bar (Press Alt key to display)": "Menü çubuğunu otomatik olarak gizle (ALT tuşuna basarak göster)",
"Back": "Geri",
"Bounce dock on new private message": "Yeni özel iletilerde simgeyi hareket ettir",
"Bounce dock on new private message": "Yeni özel mesajlarda simgeyi hareket ettir",
"Change": "Değiştir",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Sistem Seçenekleri → Klavye → Metin → Kelime Denetimi üzerinden dili değiştirin.",
"Check for Updates": "Güncellemeleri Kontrol Et",
@@ -37,17 +37,17 @@
"Download App Logs": "Uygulama Kütüklerini İndir",
"Edit": "Düzenle",
"Edit Shortcuts": "Kestirmeleri Düzenle",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "Emoji & Semboller",
"Enable auto updates": "Otomatik güncellemeleri etkinleştir",
"Enable error reporting (requires restart)": "Hata raporlamasını etkinleştir (yeniden başlatma gerekli)",
"Enable spellchecker (requires restart)": "Sözcük denetimini etkinleştir (yeniden başlatma gerekir)",
"Enter Full Screen": "Enter Full Screen",
"Enter Full Screen": "Büyük Ekrana Geç",
"Factory Reset": "Fabrika Ayarlarına Dön",
"Factory Reset Data": "Fabrika Verilerine Sıfırla",
"File": "Dosya",
"Find accounts": "Hesapları bul",
"Find accounts by email": "E-posta ile hesapları bul",
"Flash taskbar on new message": "Yeni iletilerde görev çubuğunu aydınlat",
"Flash taskbar on new message": "Yeni mesajlarda görev çubuğunu aydınlat",
"Forward": "Yönlendir",
"Functionality": "Fonksiyonellik",
"General": "Genel",
@@ -57,7 +57,7 @@
"Help Center": "Yardım Merkezi",
"Hide": "Gizle",
"Hide Others": "Diğerlerini Gizle",
"Hide Zulip": "Hide Zulip",
"Hide Zulip": "Zulip'i Sakla",
"History": "Tarihçe",
"History Shortcuts": "Tarihçe Kestirmeleri",
"Keyboard Shortcuts": "Klavye Kestirmeleri",
@@ -68,8 +68,8 @@
"Mute all sounds from Zulip": "Tüm Zulip seslerini sessize al",
"NO": "HAYIR",
"Network": "Ağ",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"Network and Proxy Settings": "Ağ ve Proxy Ayarları",
"OR": "VEYA",
"On macOS, the OS spellchecker is used.": "macOS için, İşletim Sistemi kelime denetimi kullanılır.",
"Organization URL": "Organizasyon URL'si",
"Organizations": "Organizasyonlar",
@@ -86,7 +86,7 @@
"Reload": "Yeniden Yükle",
"Report an Issue": "Hata Bildir",
"Reset App Settings": "Uygulama Ayarlarını Sıfırla",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset the application, thus deleting all the connected organizations and accounts.": "Uygulamayı sıfırla, bütün organizasyonlar ve hesaplar silinir.",
"Save": "Kaydet",
"Select All": "Hepsini Seç",
"Services": "Servisler",
@@ -123,5 +123,5 @@
"Zoom Out": "Küçült",
"keyboard shortcuts": "klavye kısa yolları",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} eski Zulip versionu kullanıyor {{{version}}}. Bu uygulamada kullanılamayabilir."
}

127
public/translations/ur.json Normal file
View File

@@ -0,0 +1,127 @@
{
"About Zulip": "About Zulip",
"Actual Size": "Actual Size",
"Add Organization": "Add Organization",
"Add a Zulip organization": "Add a Zulip organization",
"Add custom CSS": "Add custom CSS",
"AddServer": "AddServer",
"Advanced": "Advanced",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"Always start minimized": "Always start minimized",
"App Updates": "App Updates",
"App language (requires restart)": "App language (requires restart)",
"Appearance": "Appearance",
"Application Shortcuts": "Application Shortcuts",
"Are you sure you want to disconnect this organization?": "Are you sure you want to disconnect this organization?",
"Ask where to save files before downloading": "Ask where to save files before downloading",
"Auto hide Menu bar": "Auto hide Menu bar",
"Auto hide menu bar (Press Alt key to display)": "Auto hide menu bar (Press Alt key to display)",
"Back": "Back",
"Bounce dock on new private message": "Bounce dock on new private message",
"Change": "Change",
"Change the language from System Preferences → Keyboard → Text → Spelling.": "Change the language from System Preferences → Keyboard → Text → Spelling.",
"Check for Updates": "Check for Updates",
"Close": "Close",
"Connect": "Connect",
"Connect to another organization": "Connect to another organization",
"Connected organizations": "Connected organizations",
"Copy": "Copy",
"Copy Zulip URL": "Copy Zulip URL",
"Create a new organization": "Create a new organization",
"Cut": "Cut",
"Default download location": "Default download location",
"Delete": "Delete",
"Desktop Notifications": "Desktop Notifications",
"Desktop Settings": "Desktop Settings",
"Disconnect": "Disconnect",
"Download App Logs": "Download App Logs",
"Edit": "Edit",
"Edit Shortcuts": "Edit Shortcuts",
"Emoji & Symbols": "Emoji & Symbols",
"Enable auto updates": "Enable auto updates",
"Enable error reporting (requires restart)": "Enable error reporting (requires restart)",
"Enable spellchecker (requires restart)": "Enable spellchecker (requires restart)",
"Enter Full Screen": "Enter Full Screen",
"Factory Reset": "Factory Reset",
"Factory Reset Data": "Factory Reset Data",
"File": "File",
"Find accounts": "Find accounts",
"Find accounts by email": "Find accounts by email",
"Flash taskbar on new message": "Flash taskbar on new message",
"Forward": "Forward",
"Functionality": "Functionality",
"General": "General",
"Get beta updates": "Get beta updates",
"Hard Reload": "Hard Reload",
"Help": "Help",
"Help Center": "Help Center",
"Hide": "Hide",
"Hide Others": "Hide Others",
"Hide Zulip": "Hide Zulip",
"History": "History",
"History Shortcuts": "History Shortcuts",
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Log Out": "Log Out",
"Log Out of Organization": "Log Out of Organization",
"Manual proxy configuration": "Manual proxy configuration",
"Minimize": "Minimize",
"Mute all sounds from Zulip": "Mute all sounds from Zulip",
"NO": "NO",
"Network": "Network",
"Network and Proxy Settings": "Network and Proxy Settings",
"OR": "OR",
"On macOS, the OS spellchecker is used.": "On macOS, the OS spellchecker is used.",
"Organization URL": "Organization URL",
"Organizations": "Organizations",
"Paste": "Paste",
"Paste and Match Style": "Paste and Match Style",
"Proxy": "Proxy",
"Proxy bypass rules": "Proxy bypass rules",
"Proxy rules": "Proxy rules",
"Quit": "Quit",
"Quit Zulip": "Quit Zulip",
"Quit when the window is closed": "Quit when the window is closed",
"Redo": "Redo",
"Release Notes": "Release Notes",
"Reload": "Reload",
"Report an Issue": "Report an Issue",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Save": "Save",
"Select All": "Select All",
"Services": "Services",
"Settings": "Settings",
"Shortcuts": "Shortcuts",
"Show app icon in system tray": "Show app icon in system tray",
"Show app unread badge": "Show app unread badge",
"Show desktop notifications": "Show desktop notifications",
"Show sidebar": "Show sidebar",
"Spellchecker Languages": "Spellchecker Languages",
"Start app at login": "Start app at login",
"Switch to Next Organization": "Switch to Next Organization",
"Switch to Previous Organization": "Switch to Previous Organization",
"These desktop app shortcuts extend the Zulip webapp's": "These desktop app shortcuts extend the Zulip webapp's",
"Tip": "Tip",
"Toggle DevTools for Active Tab": "Toggle DevTools for Active Tab",
"Toggle DevTools for Zulip App": "Toggle DevTools for Zulip App",
"Toggle Do Not Disturb": "Toggle Do Not Disturb",
"Toggle Full Screen": "Toggle Full Screen",
"Toggle Sidebar": "Toggle Sidebar",
"Toggle Tray Icon": "Toggle Tray Icon",
"Tools": "Tools",
"Undo": "Undo",
"Unhide": "Unhide",
"Upload": "Upload",
"Use system proxy settings (requires restart)": "Use system proxy settings (requires restart)",
"View": "View",
"View Shortcuts": "View Shortcuts",
"Window": "Window",
"Window Shortcuts": "Window Shortcuts",
"YES": "YES",
"You can select a maximum of 3 languages for spellchecking.": "You can select a maximum of 3 languages for spellchecking.",
"Zoom In": "Zoom In",
"Zoom Out": "Zoom Out",
"keyboard shortcuts": "keyboard shortcuts",
"script": "script",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
}

View File

@@ -6,7 +6,7 @@
"Add custom CSS": "添加自定义 CSS",
"AddServer": "添加服务器",
"Advanced": "高级",
"All the connected organizations will appear here.": "All the connected organizations will appear here.",
"All the connected organizations will appear here.": "所有已连接的组织都会在此显示。",
"Always start minimized": "总是最小化启动",
"App Updates": "应用更新",
"App language (requires restart)": "应用语言 (需要重启)",
@@ -37,11 +37,11 @@
"Download App Logs": "下载应用日志",
"Edit": "编辑",
"Edit Shortcuts": "编辑快捷键",
"Emoji & Symbols": "Emoji & Symbols",
"Emoji & Symbols": "Emoji和符号",
"Enable auto updates": "启用自动更新",
"Enable error reporting (requires restart)": "启用错误报告(需要重启)",
"Enable spellchecker (requires restart)": "启用拼写检查(需要重启)",
"Enter Full Screen": "Enter Full Screen",
"Enter Full Screen": "进入全屏",
"Factory Reset": "恢复出厂设置",
"Factory Reset Data": "恢复出厂设置与重置数据",
"File": "文件",
@@ -57,7 +57,7 @@
"Help Center": "帮助中心",
"Hide": "隐藏",
"Hide Others": "隐藏其他",
"Hide Zulip": "Hide Zulip",
"Hide Zulip": "隐藏Zulip",
"History": "历史消息",
"History Shortcuts": "历史快捷键",
"Keyboard Shortcuts": "快捷键",
@@ -68,7 +68,7 @@
"Mute all sounds from Zulip": "将 Zulip 中的所有声音静音",
"NO": "否",
"Network": "网络",
"Network and Proxy Settings": "Network and Proxy Settings",
"Network and Proxy Settings": "网络和代理设置",
"OR": "或",
"On macOS, the OS spellchecker is used.": "在 macOS 上,使用操作系统的拼写检查器。",
"Organization URL": "组织网址",
@@ -85,8 +85,8 @@
"Release Notes": "发行说明",
"Reload": "重新加载",
"Report an Issue": "反馈问题",
"Reset App Settings": "Reset App Settings",
"Reset the application, thus deleting all the connected organizations and accounts.": "Reset the application, thus deleting all the connected organizations and accounts.",
"Reset App Settings": "重置应用设置",
"Reset the application, thus deleting all the connected organizations and accounts.": "重置应用程序,将删除所有已连接的组织、帐户和证书。",
"Save": "保存",
"Select All": "全选",
"Services": "服务",
@@ -123,5 +123,5 @@
"Zoom Out": "缩小",
"keyboard shortcuts": "快捷键",
"script": "脚本",
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app."
"{{{server}}} runs an outdated Zulip Server version {{{version}}}. It may not fully work in this app.": "{{{server}}}在过时的{{{version}}}版Zulip服务器上运行。在该应用中可能无法正常运作。"
}

View File

@@ -1,25 +0,0 @@
"use strict";
const path = require("node:path");
const process = require("node:process");
const {notarize} = require("@electron/notarize");
const dotenv = require("dotenv");
dotenv.config({path: path.join(__dirname, "/../.env")});
exports.default = async function (context) {
const {electronPlatformName, appOutDir} = context;
if (electronPlatformName !== "darwin") {
return;
}
const appName = context.packager.appInfo.productFilename;
return notarize({
appBundleId: "org.zulip.zulip-electron",
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASS,
ascProvider: process.env.ASC_PROVIDER, // Team short name
});
};

View File

@@ -10,7 +10,7 @@ const testsPkg = require("./package.json");
module.exports = {
createApp,
endTest,
resetTestDataDir,
resetTestDataDir: resetTestDataDirectory,
};
// Runs Zulip Desktop.
@@ -26,7 +26,7 @@ async function endTest(app) {
await app.close();
}
function getAppDataDir() {
function getAppDataDirectory() {
let base;
switch (process.platform) {
@@ -56,7 +56,7 @@ function getAppDataDir() {
}
// Resets the test directory, containing domain.json, window-state.json, etc
function resetTestDataDir() {
const appDataDir = getAppDataDir();
rimraf.sync(appDataDir);
function resetTestDataDirectory() {
const appDataDirectory = getAppDataDirectory();
rimraf.sync(appDataDirectory);
}

View File

@@ -3,7 +3,7 @@
"noEmit": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"esModuleInterop": true,
"resolveJsonModule": true,
"strict": true,

6
typings.d.ts vendored
View File

@@ -1,9 +1,3 @@
declare namespace Electron {
// https://github.com/electron/typescript-definitions/issues/170
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface IncomingMessage extends NodeJS.ReadableStream {}
}
declare module "zulip:remote" {
export const {
app,

View File

@@ -5,15 +5,6 @@ import * as path from "node:path";
import {defineConfig} from "vite";
import electron from "vite-plugin-electron";
let resolvePreload: () => void;
let resolveRenderer: () => void;
const whenPreload = new Promise<void>((resolve) => {
resolvePreload = resolve;
});
const whenRenderer = new Promise<void>((resolve) => {
resolveRenderer = resolve;
});
export default defineConfig({
plugins: [
electron([
@@ -21,11 +12,6 @@ export default defineConfig({
entry: {
index: "app/main",
},
async onstart({startup}) {
await whenPreload;
await whenRenderer;
await startup();
},
vite: {
build: {
sourcemap: true,
@@ -48,9 +34,6 @@ export default defineConfig({
entry: {
preload: "app/renderer/js/preload.ts",
},
onstart() {
resolvePreload();
},
vite: {
build: {
sourcemap: "inline",
@@ -64,9 +47,6 @@ export default defineConfig({
entry: {
renderer: "app/renderer/js/main.ts",
},
onstart() {
resolveRenderer();
},
vite: {
build: {
sourcemap: true,