bb-relay 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FileContent-BWulmcoi.d.mts → FileContent-CXlulSZq.d.mts} +1 -0
- package/dist/{FileContent-BWulmcoi.d.ts → FileContent-CXlulSZq.d.ts} +1 -0
- package/dist/{Locale-DvFwr_9k.d.mts → Locale-DnNmuMZq.d.mts} +2 -0
- package/dist/{Locale-DvFwr_9k.d.ts → Locale-DnNmuMZq.d.ts} +2 -0
- package/dist/{RequestReturn-xCEiRgI1.d.ts → RequestReturn-Clb_WcNj.d.ts} +1 -1
- package/dist/{RequestReturn-ClPSkigo.d.mts → RequestReturn-Dahl-hde.d.mts} +1 -1
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/editor.d.mts +3 -2
- package/dist/editor.d.ts +3 -2
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +10 -3
- package/dist/index.mjs +10 -3
- package/dist/locale.d.mts +2 -2
- package/dist/locale.d.ts +2 -2
- package/dist/locale.js +6 -2
- package/dist/locale.mjs +6 -2
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/package.json +1 -1
- package/src/locales/en-GB.ts +168 -166
- package/src/locales/fr-FR.ts +171 -169
- package/src/relay/registerEvent.ts +8 -3
- package/src/relay/subscribe.ts +4 -1
- package/src/types/api/EventParam.ts +1 -1
- package/src/types/editor/FileContent.ts +10 -6
- package/src/types/editor/Manifest.ts +1 -0
- package/src/types/editor/Settings.ts +44 -43
package/dist/api.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as RelayEvent, a as RelayRequest } from './RequestReturn-
|
|
2
|
-
export { E as EventReturn, b as RequestReturn } from './RequestReturn-
|
|
3
|
-
import './FileContent-
|
|
1
|
+
import { R as RelayEvent, a as RelayRequest } from './RequestReturn-Dahl-hde.mjs';
|
|
2
|
+
export { E as EventReturn, b as RequestReturn } from './RequestReturn-Dahl-hde.mjs';
|
|
3
|
+
import './FileContent-CXlulSZq.mjs';
|
|
4
4
|
|
|
5
5
|
type EventParam<K extends keyof RelayEvent> = {
|
|
6
6
|
type: K;
|
|
7
|
-
source: "event";
|
|
7
|
+
source: "event" | "unsubscribe";
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
type RequestParam<K extends keyof RelayRequest> = {
|
package/dist/api.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as RelayEvent, a as RelayRequest } from './RequestReturn-
|
|
2
|
-
export { E as EventReturn, b as RequestReturn } from './RequestReturn-
|
|
3
|
-
import './FileContent-
|
|
1
|
+
import { R as RelayEvent, a as RelayRequest } from './RequestReturn-Clb_WcNj.js';
|
|
2
|
+
export { E as EventReturn, b as RequestReturn } from './RequestReturn-Clb_WcNj.js';
|
|
3
|
+
import './FileContent-CXlulSZq.js';
|
|
4
4
|
|
|
5
5
|
type EventParam<K extends keyof RelayEvent> = {
|
|
6
6
|
type: K;
|
|
7
|
-
source: "event";
|
|
7
|
+
source: "event" | "unsubscribe";
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
type RequestParam<K extends keyof RelayRequest> = {
|
package/dist/editor.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { C as Commit } from './Commit-PdsjrKSG.mjs';
|
|
2
2
|
export { a as FileStat, F as FolderContent, b as FolderStat } from './FolderStat-Bhmwwc0t.mjs';
|
|
3
|
-
export { F as FileContent } from './FileContent-
|
|
4
|
-
import { L as Language, a as Locale } from './Locale-
|
|
3
|
+
export { F as FileContent } from './FileContent-CXlulSZq.mjs';
|
|
4
|
+
import { L as Language, a as Locale } from './Locale-DnNmuMZq.mjs';
|
|
5
5
|
export { R as Result } from './Result-BLbZLEgX.mjs';
|
|
6
6
|
|
|
7
7
|
type CopyArg = {
|
|
@@ -52,6 +52,7 @@ type Settings = {
|
|
|
52
52
|
trashBehaviour: "permanent" | "trash";
|
|
53
53
|
shortcuts: Shortcut[];
|
|
54
54
|
theme: string;
|
|
55
|
+
isDev: boolean;
|
|
55
56
|
/**
|
|
56
57
|
* { [fileExtension: string]: pluginId }
|
|
57
58
|
*/
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { C as Commit } from './Commit-PdsjrKSG.js';
|
|
2
2
|
export { a as FileStat, F as FolderContent, b as FolderStat } from './FolderStat-Bhmwwc0t.js';
|
|
3
|
-
export { F as FileContent } from './FileContent-
|
|
4
|
-
import { L as Language, a as Locale } from './Locale-
|
|
3
|
+
export { F as FileContent } from './FileContent-CXlulSZq.js';
|
|
4
|
+
import { L as Language, a as Locale } from './Locale-DnNmuMZq.js';
|
|
5
5
|
export { R as Result } from './Result-BLbZLEgX.js';
|
|
6
6
|
|
|
7
7
|
type CopyArg = {
|
|
@@ -52,6 +52,7 @@ type Settings = {
|
|
|
52
52
|
trashBehaviour: "permanent" | "trash";
|
|
53
53
|
shortcuts: Shortcut[];
|
|
54
54
|
theme: string;
|
|
55
|
+
isDev: boolean;
|
|
55
56
|
/**
|
|
56
57
|
* { [fileExtension: string]: pluginId }
|
|
57
58
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FileContent } from './FileContent-
|
|
1
|
+
import { F as FileContent } from './FileContent-CXlulSZq.mjs';
|
|
2
2
|
export { R as Result } from './Result-BLbZLEgX.mjs';
|
|
3
3
|
import { P as Plugin } from './Plugin-Db_XUKx0.mjs';
|
|
4
|
-
import { R as RelayEvent, E as EventReturn, a as RelayRequest, b as RequestReturn } from './RequestReturn-
|
|
4
|
+
import { R as RelayEvent, E as EventReturn, a as RelayRequest, b as RequestReturn } from './RequestReturn-Dahl-hde.mjs';
|
|
5
5
|
import './Wrapper-DWhYVa7F.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -26,6 +26,7 @@ type Manifest = {
|
|
|
26
26
|
path: string;
|
|
27
27
|
type: FileContent["type"];
|
|
28
28
|
extensions: string[];
|
|
29
|
+
icon?: string;
|
|
29
30
|
};
|
|
30
31
|
permissions: Permission[];
|
|
31
32
|
iconsPath?: string;
|
|
@@ -66,7 +67,7 @@ declare function validateUpload(manifest: Manifest, plugin: Plugin["doc"]): bool
|
|
|
66
67
|
type BBEventKey = keyof RelayEvent;
|
|
67
68
|
declare function postEventResponse<K extends BBEventKey>(window: Window, response: Omit<EventReturn<K>, "source" | "responseId">): void;
|
|
68
69
|
|
|
69
|
-
declare function subscribe<K extends keyof RelayEvent>(type: K, callback: (response: RelayEvent[K]["response"]) => void): void;
|
|
70
|
+
declare function subscribe<K extends keyof RelayEvent>(type: K, callback: (response: RelayEvent[K]["response"]) => void): () => void;
|
|
70
71
|
|
|
71
72
|
type BBRequestKey = keyof RelayRequest;
|
|
72
73
|
declare function postRequestResponse<K extends BBRequestKey>(window: Window, response: RequestReturn<K>): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FileContent } from './FileContent-
|
|
1
|
+
import { F as FileContent } from './FileContent-CXlulSZq.js';
|
|
2
2
|
export { R as Result } from './Result-BLbZLEgX.js';
|
|
3
3
|
import { P as Plugin } from './Plugin-t8StCIag.js';
|
|
4
|
-
import { R as RelayEvent, E as EventReturn, a as RelayRequest, b as RequestReturn } from './RequestReturn-
|
|
4
|
+
import { R as RelayEvent, E as EventReturn, a as RelayRequest, b as RequestReturn } from './RequestReturn-Clb_WcNj.js';
|
|
5
5
|
import './Wrapper-DWhYVa7F.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -26,6 +26,7 @@ type Manifest = {
|
|
|
26
26
|
path: string;
|
|
27
27
|
type: FileContent["type"];
|
|
28
28
|
extensions: string[];
|
|
29
|
+
icon?: string;
|
|
29
30
|
};
|
|
30
31
|
permissions: Permission[];
|
|
31
32
|
iconsPath?: string;
|
|
@@ -66,7 +67,7 @@ declare function validateUpload(manifest: Manifest, plugin: Plugin["doc"]): bool
|
|
|
66
67
|
type BBEventKey = keyof RelayEvent;
|
|
67
68
|
declare function postEventResponse<K extends BBEventKey>(window: Window, response: Omit<EventReturn<K>, "source" | "responseId">): void;
|
|
68
69
|
|
|
69
|
-
declare function subscribe<K extends keyof RelayEvent>(type: K, callback: (response: RelayEvent[K]["response"]) => void): void;
|
|
70
|
+
declare function subscribe<K extends keyof RelayEvent>(type: K, callback: (response: RelayEvent[K]["response"]) => void): () => void;
|
|
70
71
|
|
|
71
72
|
type BBRequestKey = keyof RelayRequest;
|
|
72
73
|
declare function postRequestResponse<K extends BBRequestKey>(window: Window, response: RequestReturn<K>): void;
|
package/dist/index.js
CHANGED
|
@@ -111,15 +111,19 @@ function postEventResponse(window2, response) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// src/relay/registerEvent.ts
|
|
114
|
-
function registerEvent(
|
|
114
|
+
function registerEvent(type, unsubscribe) {
|
|
115
115
|
if (!window) throw new Error("Window not found");
|
|
116
116
|
if (window === window.parent) throw new Error("No parent window available");
|
|
117
|
-
|
|
117
|
+
const message = {
|
|
118
|
+
type,
|
|
119
|
+
source: unsubscribe ? "unsubscribe" : "event"
|
|
120
|
+
};
|
|
121
|
+
window.parent.postMessage(message, "*");
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
// src/relay/subscribe.ts
|
|
121
125
|
function subscribe(type, callback) {
|
|
122
|
-
registerEvent(
|
|
126
|
+
registerEvent(type);
|
|
123
127
|
window.addEventListener("message", (ev) => {
|
|
124
128
|
const data = ev.data;
|
|
125
129
|
const { response } = data;
|
|
@@ -127,6 +131,9 @@ function subscribe(type, callback) {
|
|
|
127
131
|
callback(response);
|
|
128
132
|
}
|
|
129
133
|
});
|
|
134
|
+
return () => {
|
|
135
|
+
registerEvent(type, true);
|
|
136
|
+
};
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
// src/relay/postRequestResponse.ts
|
package/dist/index.mjs
CHANGED
|
@@ -111,15 +111,19 @@ function postEventResponse(window2, response) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// src/relay/registerEvent.ts
|
|
114
|
-
function registerEvent(
|
|
114
|
+
function registerEvent(type, unsubscribe) {
|
|
115
115
|
if (!window) throw new Error("Window not found");
|
|
116
116
|
if (window === window.parent) throw new Error("No parent window available");
|
|
117
|
-
|
|
117
|
+
const message = {
|
|
118
|
+
type,
|
|
119
|
+
source: unsubscribe ? "unsubscribe" : "event"
|
|
120
|
+
};
|
|
121
|
+
window.parent.postMessage(message, "*");
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
// src/relay/subscribe.ts
|
|
121
125
|
function subscribe(type, callback) {
|
|
122
|
-
registerEvent(
|
|
126
|
+
registerEvent(type);
|
|
123
127
|
window.addEventListener("message", (ev) => {
|
|
124
128
|
const data = ev.data;
|
|
125
129
|
const { response } = data;
|
|
@@ -127,6 +131,9 @@ function subscribe(type, callback) {
|
|
|
127
131
|
callback(response);
|
|
128
132
|
}
|
|
129
133
|
});
|
|
134
|
+
return () => {
|
|
135
|
+
registerEvent(type, true);
|
|
136
|
+
};
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
// src/relay/postRequestResponse.ts
|
package/dist/locale.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Language } from './Locale-
|
|
2
|
-
export { a as Locale, e as enGB } from './Locale-
|
|
1
|
+
import { L as Language } from './Locale-DnNmuMZq.mjs';
|
|
2
|
+
export { a as Locale, e as enGB } from './Locale-DnNmuMZq.mjs';
|
|
3
3
|
|
|
4
4
|
declare const frFR: {
|
|
5
5
|
[key in Language]: string;
|
package/dist/locale.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Language } from './Locale-
|
|
2
|
-
export { a as Locale, e as enGB } from './Locale-
|
|
1
|
+
import { L as Language } from './Locale-DnNmuMZq.js';
|
|
2
|
+
export { a as Locale, e as enGB } from './Locale-DnNmuMZq.js';
|
|
3
3
|
|
|
4
4
|
declare const frFR: {
|
|
5
5
|
[key in Language]: string;
|
package/dist/locale.js
CHANGED
|
@@ -152,7 +152,9 @@ var enGB = {
|
|
|
152
152
|
"app.minimise": "Minimise",
|
|
153
153
|
"app.maximise": "Maximise",
|
|
154
154
|
"app.restart": "Restart",
|
|
155
|
-
app: "App"
|
|
155
|
+
app: "App",
|
|
156
|
+
settings: "Settings",
|
|
157
|
+
preferences: "Preferences"
|
|
156
158
|
};
|
|
157
159
|
var en_GB_default = enGB;
|
|
158
160
|
|
|
@@ -310,7 +312,9 @@ var frFR = {
|
|
|
310
312
|
"app.minimise": "Minimiser",
|
|
311
313
|
"app.maximise": "Maximiser",
|
|
312
314
|
"app.restart": "Red\xE9marrer",
|
|
313
|
-
app: "App"
|
|
315
|
+
app: "App",
|
|
316
|
+
settings: "Param\xE8tres",
|
|
317
|
+
preferences: "Pr\xE9f\xE9rences"
|
|
314
318
|
};
|
|
315
319
|
var fr_FR_default = frFR;
|
|
316
320
|
|
package/dist/locale.mjs
CHANGED
|
@@ -152,7 +152,9 @@ var enGB = {
|
|
|
152
152
|
"app.minimise": "Minimise",
|
|
153
153
|
"app.maximise": "Maximise",
|
|
154
154
|
"app.restart": "Restart",
|
|
155
|
-
app: "App"
|
|
155
|
+
app: "App",
|
|
156
|
+
settings: "Settings",
|
|
157
|
+
preferences: "Preferences"
|
|
156
158
|
};
|
|
157
159
|
var en_GB_default = enGB;
|
|
158
160
|
|
|
@@ -310,7 +312,9 @@ var frFR = {
|
|
|
310
312
|
"app.minimise": "Minimiser",
|
|
311
313
|
"app.maximise": "Maximiser",
|
|
312
314
|
"app.restart": "Red\xE9marrer",
|
|
313
|
-
app: "App"
|
|
315
|
+
app: "App",
|
|
316
|
+
settings: "Param\xE8tres",
|
|
317
|
+
preferences: "Pr\xE9f\xE9rences"
|
|
314
318
|
};
|
|
315
319
|
var fr_FR_default = frFR;
|
|
316
320
|
export {
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { IconName } from 'lucide-react/dynamic';
|
|
3
3
|
import { F as FolderContent, b as FolderStat, a as FileStat } from './FolderStat-Bhmwwc0t.mjs';
|
|
4
|
-
import { F as FileContent } from './FileContent-
|
|
4
|
+
import { F as FileContent } from './FileContent-CXlulSZq.mjs';
|
|
5
5
|
import { R as Result } from './Result-BLbZLEgX.mjs';
|
|
6
6
|
import { P as Project } from './Project-9NfYlQ36.mjs';
|
|
7
7
|
import './PROJECT_CATEGORY-BivLHtB6.mjs';
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { IconName } from 'lucide-react/dynamic';
|
|
3
3
|
import { F as FolderContent, b as FolderStat, a as FileStat } from './FolderStat-Bhmwwc0t.js';
|
|
4
|
-
import { F as FileContent } from './FileContent-
|
|
4
|
+
import { F as FileContent } from './FileContent-CXlulSZq.js';
|
|
5
5
|
import { R as Result } from './Result-BLbZLEgX.js';
|
|
6
6
|
import { P as Project } from './Project-DOzeI4xi.js';
|
|
7
7
|
import './PROJECT_CATEGORY-BivLHtB6.js';
|
package/package.json
CHANGED
package/src/locales/en-GB.ts
CHANGED
|
@@ -1,166 +1,168 @@
|
|
|
1
|
-
export const enGB = {
|
|
2
|
-
"language.british_english": "British English",
|
|
3
|
-
"language.french": "French (France)",
|
|
4
|
-
"file.new": "New File",
|
|
5
|
-
"file.new.placeholder": "Press enter to add file",
|
|
6
|
-
"file.open": "Open File",
|
|
7
|
-
"file.duplicate": "Duplicate File",
|
|
8
|
-
"file.delete": "Delete File",
|
|
9
|
-
"file.rename": "Rename File",
|
|
10
|
-
"file.close": "Close File",
|
|
11
|
-
"file.cut": "Cut File",
|
|
12
|
-
"file.copy": "Copy File",
|
|
13
|
-
"file.export_html": "Export as HTML",
|
|
14
|
-
"file.export_pdf": "Export as PDF",
|
|
15
|
-
"file.print": "Print File",
|
|
16
|
-
"file.location.open": "Open File Location",
|
|
17
|
-
file: "File",
|
|
18
|
-
edit: "Edit",
|
|
19
|
-
view: "View",
|
|
20
|
-
help: "Help",
|
|
21
|
-
welcome: "Welcome to BB Desktop!",
|
|
22
|
-
"welcome.message":
|
|
23
|
-
"Get started by creating a new file or opening an existing one.",
|
|
24
|
-
"version.current": "Current Version",
|
|
25
|
-
"version.latest": "Latest Version",
|
|
26
|
-
"version.out_of_date": "An update is available!",
|
|
27
|
-
"version.up_to_date": "You are using the latest version.",
|
|
28
|
-
"update.check": "Check for Updates",
|
|
29
|
-
"update.download": "Download Update",
|
|
30
|
-
"update.release_notes": "Release Notes",
|
|
31
|
-
install_and_restart: "Install and Restart",
|
|
32
|
-
"install.version": "Install a specific version",
|
|
33
|
-
later: "Later",
|
|
34
|
-
close: "Close",
|
|
35
|
-
about: "About",
|
|
36
|
-
change_log: "Change Log",
|
|
37
|
-
documentation: "Documentation",
|
|
38
|
-
"report.issue": "Report Issue",
|
|
39
|
-
"folder.new": "New Folder",
|
|
40
|
-
"folder.new.placeholder": "Press enter to add folder",
|
|
41
|
-
"folder.open": "Open folder",
|
|
42
|
-
"folder.open.message": "You can open a folder",
|
|
43
|
-
"folder.open.description":
|
|
44
|
-
"Opening a folder allows you to create a project, and save all files in that folder",
|
|
45
|
-
"project.download": "Download Project",
|
|
46
|
-
"project.download.title": "You can download a project",
|
|
47
|
-
"project.download.description":
|
|
48
|
-
" You browse the projects that you backed up in the clouds and download them to your computer",
|
|
49
|
-
"project.select": "Select project",
|
|
50
|
-
"project.select.title": "You can select a previous project",
|
|
51
|
-
"project.select.description":
|
|
52
|
-
"Go into your file system to select a previously saved project",
|
|
53
|
-
"project.new": "New Project",
|
|
54
|
-
tags: "Tags",
|
|
55
|
-
"tag.input.placeholder": "Press enter to add tag",
|
|
56
|
-
category: "Category",
|
|
57
|
-
"category.select": "Select category",
|
|
58
|
-
"project.title": "Project Title",
|
|
59
|
-
"project.title.placeholder": "The tales of two cities",
|
|
60
|
-
"project.description": "What is your story about",
|
|
61
|
-
"project.description.placeholder": "This is a story about...",
|
|
62
|
-
email: "Email",
|
|
63
|
-
"email.placeholder": "example@email.com",
|
|
64
|
-
password: "Password",
|
|
65
|
-
"password.placeholder": "********",
|
|
66
|
-
username: "username",
|
|
67
|
-
"username.placeholder": "@bb-author",
|
|
68
|
-
"workspace.select": "Select workspace",
|
|
69
|
-
"workspace.select.description":
|
|
70
|
-
"Select a folder where all your projects will be saved",
|
|
71
|
-
"file.explorer": "File explorer",
|
|
72
|
-
"no_workspace.message":
|
|
73
|
-
"Select a workspace to start working on your next project",
|
|
74
|
-
"folder.select.placeholder": "./path/to/project",
|
|
75
|
-
"folder.select": "Select folder",
|
|
76
|
-
"folder.rename": "Rename Folder",
|
|
77
|
-
"folder.duplicate": "Duplicate Folder",
|
|
78
|
-
"folder.paste": "Paste into Folder",
|
|
79
|
-
"folder.cut": "Cut Folder",
|
|
80
|
-
"folder.copy": "Copy Folder",
|
|
81
|
-
"folder.delete": "Delete Folder",
|
|
82
|
-
folder: "Folder",
|
|
83
|
-
"folder.location.open": "Open Folder Location",
|
|
84
|
-
"checkpoint.list.header": "Checkpoints",
|
|
85
|
-
"checkpoint.placeholder": "Checkpoint message...",
|
|
86
|
-
"checkpoint.button": "Save checkpoint",
|
|
87
|
-
"git.stage.all": "Add all to stage",
|
|
88
|
-
"git.discard.all": "Discard all changes",
|
|
89
|
-
"git.stage": "Add to stage",
|
|
90
|
-
"git.discard": "Discard changes",
|
|
91
|
-
"git.discard.message": "Are you sure you want to discard all changes?",
|
|
92
|
-
"git.unstage.all": "Remove all from stage",
|
|
93
|
-
"git.unstage": "Remove from stage",
|
|
94
|
-
changes: "Changes",
|
|
95
|
-
history: "History",
|
|
96
|
-
home: "Home",
|
|
97
|
-
cancel: "Cancel",
|
|
98
|
-
confirm: "Confirm",
|
|
99
|
-
"plugin.install": "Install plugin",
|
|
100
|
-
"project.create": "Create project",
|
|
101
|
-
"checkpoint.save": "Save checkpoint",
|
|
102
|
-
"file.delete.warning":
|
|
103
|
-
"Are you sure you want to delete this file? This action cannot be undone.",
|
|
104
|
-
"folder.delete.warning":
|
|
105
|
-
"Are you sure you want to delete this folder? This action cannot be undone.",
|
|
106
|
-
delete: "Delete",
|
|
107
|
-
"placeholder.text": "This is a placeholder text",
|
|
108
|
-
"placeholder.click": "Click me",
|
|
109
|
-
"placeholder.label": "Label",
|
|
110
|
-
find: "Find",
|
|
111
|
-
replace: "Replace",
|
|
112
|
-
"replace.all": "Replace all",
|
|
113
|
-
previous: "Previous",
|
|
114
|
-
next: "Next",
|
|
115
|
-
"search.use.regex": "Use regex",
|
|
116
|
-
"search.case.sensitive": "Case sensitive",
|
|
117
|
-
"plugins.search": "Search Plugins in Marketplace",
|
|
118
|
-
install: "Install",
|
|
119
|
-
uninstall: "Uninstall",
|
|
120
|
-
repository: "Repository",
|
|
121
|
-
login: "Login",
|
|
122
|
-
logout: "Logout",
|
|
123
|
-
"projects.search": "Search projects",
|
|
124
|
-
download: "Download",
|
|
125
|
-
"project.delete.warning":
|
|
126
|
-
"Are you sure you want to delete this project? This cannot be undone",
|
|
127
|
-
"project.message.upload": "Upload project to the cloud",
|
|
128
|
-
"project.message.synced": "Project is up to date",
|
|
129
|
-
"project.message.update": "There are unsaved changes",
|
|
130
|
-
"project.message.download": "You are behind remote copy",
|
|
131
|
-
loading: "Loading...",
|
|
132
|
-
enable: "Enable",
|
|
133
|
-
disable: "Disable",
|
|
134
|
-
plugin: "Plugin",
|
|
135
|
-
plugins: "Plugins",
|
|
136
|
-
"updates.check": "Check for updates",
|
|
137
|
-
"updates.download": "Download updates",
|
|
138
|
-
"plugins.enable.all": "Enable all plugins",
|
|
139
|
-
"plugins.disable.all": "Disable all plugins",
|
|
140
|
-
"plugins.install.local": "Install local plugins",
|
|
141
|
-
"check.all": "Check all",
|
|
142
|
-
"uncheck.all": "Uncheck all",
|
|
143
|
-
"checkpoint.latest": "Go back to latest",
|
|
144
|
-
errors: "Errors",
|
|
145
|
-
"path.copy": "Copy Path",
|
|
146
|
-
general: "General",
|
|
147
|
-
appearance: "Appearance",
|
|
148
|
-
registry: "Registry",
|
|
149
|
-
shortcuts: "Shortcuts",
|
|
150
|
-
account: "Account",
|
|
151
|
-
"sidebar.toggle": "Toggle Sidebar",
|
|
152
|
-
"project.open": "Open Project",
|
|
153
|
-
quit: "Quit",
|
|
154
|
-
duplicate: "Duplicate",
|
|
155
|
-
copy: "Copy",
|
|
156
|
-
cut: "Cut",
|
|
157
|
-
paste: "Paste",
|
|
158
|
-
"en-GB": "English (UK)",
|
|
159
|
-
"fr-FR": "French (France)",
|
|
160
|
-
"app.minimise": "Minimise",
|
|
161
|
-
"app.maximise": "Maximise",
|
|
162
|
-
"app.restart": "Restart",
|
|
163
|
-
app: "App",
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
1
|
+
export const enGB = {
|
|
2
|
+
"language.british_english": "British English",
|
|
3
|
+
"language.french": "French (France)",
|
|
4
|
+
"file.new": "New File",
|
|
5
|
+
"file.new.placeholder": "Press enter to add file",
|
|
6
|
+
"file.open": "Open File",
|
|
7
|
+
"file.duplicate": "Duplicate File",
|
|
8
|
+
"file.delete": "Delete File",
|
|
9
|
+
"file.rename": "Rename File",
|
|
10
|
+
"file.close": "Close File",
|
|
11
|
+
"file.cut": "Cut File",
|
|
12
|
+
"file.copy": "Copy File",
|
|
13
|
+
"file.export_html": "Export as HTML",
|
|
14
|
+
"file.export_pdf": "Export as PDF",
|
|
15
|
+
"file.print": "Print File",
|
|
16
|
+
"file.location.open": "Open File Location",
|
|
17
|
+
file: "File",
|
|
18
|
+
edit: "Edit",
|
|
19
|
+
view: "View",
|
|
20
|
+
help: "Help",
|
|
21
|
+
welcome: "Welcome to BB Desktop!",
|
|
22
|
+
"welcome.message":
|
|
23
|
+
"Get started by creating a new file or opening an existing one.",
|
|
24
|
+
"version.current": "Current Version",
|
|
25
|
+
"version.latest": "Latest Version",
|
|
26
|
+
"version.out_of_date": "An update is available!",
|
|
27
|
+
"version.up_to_date": "You are using the latest version.",
|
|
28
|
+
"update.check": "Check for Updates",
|
|
29
|
+
"update.download": "Download Update",
|
|
30
|
+
"update.release_notes": "Release Notes",
|
|
31
|
+
install_and_restart: "Install and Restart",
|
|
32
|
+
"install.version": "Install a specific version",
|
|
33
|
+
later: "Later",
|
|
34
|
+
close: "Close",
|
|
35
|
+
about: "About",
|
|
36
|
+
change_log: "Change Log",
|
|
37
|
+
documentation: "Documentation",
|
|
38
|
+
"report.issue": "Report Issue",
|
|
39
|
+
"folder.new": "New Folder",
|
|
40
|
+
"folder.new.placeholder": "Press enter to add folder",
|
|
41
|
+
"folder.open": "Open folder",
|
|
42
|
+
"folder.open.message": "You can open a folder",
|
|
43
|
+
"folder.open.description":
|
|
44
|
+
"Opening a folder allows you to create a project, and save all files in that folder",
|
|
45
|
+
"project.download": "Download Project",
|
|
46
|
+
"project.download.title": "You can download a project",
|
|
47
|
+
"project.download.description":
|
|
48
|
+
" You browse the projects that you backed up in the clouds and download them to your computer",
|
|
49
|
+
"project.select": "Select project",
|
|
50
|
+
"project.select.title": "You can select a previous project",
|
|
51
|
+
"project.select.description":
|
|
52
|
+
"Go into your file system to select a previously saved project",
|
|
53
|
+
"project.new": "New Project",
|
|
54
|
+
tags: "Tags",
|
|
55
|
+
"tag.input.placeholder": "Press enter to add tag",
|
|
56
|
+
category: "Category",
|
|
57
|
+
"category.select": "Select category",
|
|
58
|
+
"project.title": "Project Title",
|
|
59
|
+
"project.title.placeholder": "The tales of two cities",
|
|
60
|
+
"project.description": "What is your story about",
|
|
61
|
+
"project.description.placeholder": "This is a story about...",
|
|
62
|
+
email: "Email",
|
|
63
|
+
"email.placeholder": "example@email.com",
|
|
64
|
+
password: "Password",
|
|
65
|
+
"password.placeholder": "********",
|
|
66
|
+
username: "username",
|
|
67
|
+
"username.placeholder": "@bb-author",
|
|
68
|
+
"workspace.select": "Select workspace",
|
|
69
|
+
"workspace.select.description":
|
|
70
|
+
"Select a folder where all your projects will be saved",
|
|
71
|
+
"file.explorer": "File explorer",
|
|
72
|
+
"no_workspace.message":
|
|
73
|
+
"Select a workspace to start working on your next project",
|
|
74
|
+
"folder.select.placeholder": "./path/to/project",
|
|
75
|
+
"folder.select": "Select folder",
|
|
76
|
+
"folder.rename": "Rename Folder",
|
|
77
|
+
"folder.duplicate": "Duplicate Folder",
|
|
78
|
+
"folder.paste": "Paste into Folder",
|
|
79
|
+
"folder.cut": "Cut Folder",
|
|
80
|
+
"folder.copy": "Copy Folder",
|
|
81
|
+
"folder.delete": "Delete Folder",
|
|
82
|
+
folder: "Folder",
|
|
83
|
+
"folder.location.open": "Open Folder Location",
|
|
84
|
+
"checkpoint.list.header": "Checkpoints",
|
|
85
|
+
"checkpoint.placeholder": "Checkpoint message...",
|
|
86
|
+
"checkpoint.button": "Save checkpoint",
|
|
87
|
+
"git.stage.all": "Add all to stage",
|
|
88
|
+
"git.discard.all": "Discard all changes",
|
|
89
|
+
"git.stage": "Add to stage",
|
|
90
|
+
"git.discard": "Discard changes",
|
|
91
|
+
"git.discard.message": "Are you sure you want to discard all changes?",
|
|
92
|
+
"git.unstage.all": "Remove all from stage",
|
|
93
|
+
"git.unstage": "Remove from stage",
|
|
94
|
+
changes: "Changes",
|
|
95
|
+
history: "History",
|
|
96
|
+
home: "Home",
|
|
97
|
+
cancel: "Cancel",
|
|
98
|
+
confirm: "Confirm",
|
|
99
|
+
"plugin.install": "Install plugin",
|
|
100
|
+
"project.create": "Create project",
|
|
101
|
+
"checkpoint.save": "Save checkpoint",
|
|
102
|
+
"file.delete.warning":
|
|
103
|
+
"Are you sure you want to delete this file? This action cannot be undone.",
|
|
104
|
+
"folder.delete.warning":
|
|
105
|
+
"Are you sure you want to delete this folder? This action cannot be undone.",
|
|
106
|
+
delete: "Delete",
|
|
107
|
+
"placeholder.text": "This is a placeholder text",
|
|
108
|
+
"placeholder.click": "Click me",
|
|
109
|
+
"placeholder.label": "Label",
|
|
110
|
+
find: "Find",
|
|
111
|
+
replace: "Replace",
|
|
112
|
+
"replace.all": "Replace all",
|
|
113
|
+
previous: "Previous",
|
|
114
|
+
next: "Next",
|
|
115
|
+
"search.use.regex": "Use regex",
|
|
116
|
+
"search.case.sensitive": "Case sensitive",
|
|
117
|
+
"plugins.search": "Search Plugins in Marketplace",
|
|
118
|
+
install: "Install",
|
|
119
|
+
uninstall: "Uninstall",
|
|
120
|
+
repository: "Repository",
|
|
121
|
+
login: "Login",
|
|
122
|
+
logout: "Logout",
|
|
123
|
+
"projects.search": "Search projects",
|
|
124
|
+
download: "Download",
|
|
125
|
+
"project.delete.warning":
|
|
126
|
+
"Are you sure you want to delete this project? This cannot be undone",
|
|
127
|
+
"project.message.upload": "Upload project to the cloud",
|
|
128
|
+
"project.message.synced": "Project is up to date",
|
|
129
|
+
"project.message.update": "There are unsaved changes",
|
|
130
|
+
"project.message.download": "You are behind remote copy",
|
|
131
|
+
loading: "Loading...",
|
|
132
|
+
enable: "Enable",
|
|
133
|
+
disable: "Disable",
|
|
134
|
+
plugin: "Plugin",
|
|
135
|
+
plugins: "Plugins",
|
|
136
|
+
"updates.check": "Check for updates",
|
|
137
|
+
"updates.download": "Download updates",
|
|
138
|
+
"plugins.enable.all": "Enable all plugins",
|
|
139
|
+
"plugins.disable.all": "Disable all plugins",
|
|
140
|
+
"plugins.install.local": "Install local plugins",
|
|
141
|
+
"check.all": "Check all",
|
|
142
|
+
"uncheck.all": "Uncheck all",
|
|
143
|
+
"checkpoint.latest": "Go back to latest",
|
|
144
|
+
errors: "Errors",
|
|
145
|
+
"path.copy": "Copy Path",
|
|
146
|
+
general: "General",
|
|
147
|
+
appearance: "Appearance",
|
|
148
|
+
registry: "Registry",
|
|
149
|
+
shortcuts: "Shortcuts",
|
|
150
|
+
account: "Account",
|
|
151
|
+
"sidebar.toggle": "Toggle Sidebar",
|
|
152
|
+
"project.open": "Open Project",
|
|
153
|
+
quit: "Quit",
|
|
154
|
+
duplicate: "Duplicate",
|
|
155
|
+
copy: "Copy",
|
|
156
|
+
cut: "Cut",
|
|
157
|
+
paste: "Paste",
|
|
158
|
+
"en-GB": "English (UK)",
|
|
159
|
+
"fr-FR": "French (France)",
|
|
160
|
+
"app.minimise": "Minimise",
|
|
161
|
+
"app.maximise": "Maximise",
|
|
162
|
+
"app.restart": "Restart",
|
|
163
|
+
app: "App",
|
|
164
|
+
settings: "Settings",
|
|
165
|
+
preferences: "Preferences",
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export default enGB;
|
package/src/locales/fr-FR.ts
CHANGED
|
@@ -1,169 +1,171 @@
|
|
|
1
|
-
import Language from "@/types/editor/Language";
|
|
2
|
-
|
|
3
|
-
export const frFR: { [key in Language]: string } = {
|
|
4
|
-
"language.british_english": "Anglais britannique",
|
|
5
|
-
"language.french": "Français (France)",
|
|
6
|
-
"file.new": "Nouveau fichier",
|
|
7
|
-
"file.new.placeholder": "Appuyez sur Entrée pour ajouter un fichier",
|
|
8
|
-
"file.open": "Ouvrir le fichier",
|
|
9
|
-
"file.duplicate": "Dupliquer le fichier",
|
|
10
|
-
"file.delete": "Supprimer le fichier",
|
|
11
|
-
"file.rename": "Renommer le fichier",
|
|
12
|
-
"file.close": "Fermer le fichier",
|
|
13
|
-
"file.cut": "Couper le fichier",
|
|
14
|
-
"file.copy": "Copier le fichier",
|
|
15
|
-
"file.export_html": "Exporter au format HTML",
|
|
16
|
-
"file.export_pdf": "Exporter au format PDF",
|
|
17
|
-
"file.print": "Imprimer le fichier",
|
|
18
|
-
"file.location.open": "Ouvrir l'emplacement du fichier",
|
|
19
|
-
file: "Fichier",
|
|
20
|
-
edit: "Modifier",
|
|
21
|
-
view: "Afficher",
|
|
22
|
-
help: "Aide",
|
|
23
|
-
welcome: "Bienvenue sur BB Desktop !",
|
|
24
|
-
"welcome.message":
|
|
25
|
-
"Obtenir Commencer par créer un nouveau fichier ou en ouvrir un existant.",
|
|
26
|
-
"version.current": "Version actuelle",
|
|
27
|
-
"version.latest": "Dernière version",
|
|
28
|
-
"version.out_of_date": "Une mise à jour est disponible !",
|
|
29
|
-
"version.up_to_date": "Vous utilisez la dernière version.",
|
|
30
|
-
"update.check": "Rechercher les mises à jour",
|
|
31
|
-
"update.download": "Télécharger la mise à jour",
|
|
32
|
-
"update.release_notes": "Notes de version",
|
|
33
|
-
install_and_restart: "Installer et redémarrer",
|
|
34
|
-
"install.version": "Installer une version spécifique",
|
|
35
|
-
later: "Plus tard",
|
|
36
|
-
close: "Fermer",
|
|
37
|
-
about: "À propos",
|
|
38
|
-
change_log: "Journal des modifications",
|
|
39
|
-
documentation: "Documentation",
|
|
40
|
-
"report.issue": "Signaler un problème",
|
|
41
|
-
"folder.new": "Nouveau dossier",
|
|
42
|
-
"folder.new.placeholder": "Appuyez sur Entrée pour ajouter un dossier",
|
|
43
|
-
"folder.open": "Ouvrir un dossier",
|
|
44
|
-
"folder.open.message": "Vous pouvez ouvrir un dossier",
|
|
45
|
-
"folder.open.description":
|
|
46
|
-
"Ouvrir un dossier vous permet de créer un projet et d'enregistrer tous les fichiers qu'il contient.",
|
|
47
|
-
"project.download": "Télécharger le projet",
|
|
48
|
-
"project.download.title": "Vous pouvez télécharger un projet.",
|
|
49
|
-
"project.download.description":
|
|
50
|
-
"Parcourez les projets sauvegardés dans le cloud et téléchargez-les sur votre ordinateur.",
|
|
51
|
-
"project.select": "Sélectionner un projet.",
|
|
52
|
-
"project.select.title": "Vous pouvez sélectionner un projet précédent.",
|
|
53
|
-
"project.select.description":
|
|
54
|
-
"Accédez à votre système de fichiers pour sélectionner un projet précédemment enregistré.",
|
|
55
|
-
"project.new": "Nouveau projet.",
|
|
56
|
-
tags: "Étiquettes",
|
|
57
|
-
"tag.input.placeholder": "Appuyez sur Entrée pour ajouter une étiquette.",
|
|
58
|
-
category: "Catégorie",
|
|
59
|
-
"category.select": "Sélectionnez une catégorie.",
|
|
60
|
-
"project.title": "Titre du projet.",
|
|
61
|
-
"project.title.placeholder": "Les contes de deux villes.",
|
|
62
|
-
"project.description": "De quoi parle votre histoire ?",
|
|
63
|
-
"project.description.placeholder": "Ceci est une histoire sur...",
|
|
64
|
-
email: "Email",
|
|
65
|
-
"email.placeholder": "example@email.com",
|
|
66
|
-
password: "Password",
|
|
67
|
-
"password.placeholder": "********",
|
|
68
|
-
username: "username",
|
|
69
|
-
"username.placeholder": "@bb-author",
|
|
70
|
-
"workspace.select": "Sélectionnez un espace de travail",
|
|
71
|
-
"workspace.select.description":
|
|
72
|
-
"Sélectionnez un dossier où tous vos projets seront enregistrés",
|
|
73
|
-
"file.explorer": "Explorateur de fichiers",
|
|
74
|
-
"no_workspace.message":
|
|
75
|
-
"Sélectionnez un espace de travail pour commencer à travailler sur votre prochain projet",
|
|
76
|
-
"folder.select.placeholder": "./chemin/vers/projet",
|
|
77
|
-
"folder.select": "Sélectionnez un dossier",
|
|
78
|
-
"folder.rename": "Renommer le dossier",
|
|
79
|
-
"folder.duplicate": "Dupliquer le dossier",
|
|
80
|
-
"folder.paste": "Coller dans le dossier",
|
|
81
|
-
"folder.cut": "Couper le dossier",
|
|
82
|
-
"folder.copy": "Copier le dossier",
|
|
83
|
-
"folder.delete": "Supprimer le dossier",
|
|
84
|
-
folder: "Dossier",
|
|
85
|
-
"folder.location.open": "Ouvrir l'emplacement du dossier",
|
|
86
|
-
"checkpoint.list.header": "Points de contrôle",
|
|
87
|
-
"checkpoint.placeholder": "Message du point de contrôle...",
|
|
88
|
-
"checkpoint.button": "Enregistrer le point de contrôle",
|
|
89
|
-
"git.stage.all": "Ajouter tout à la zone de préparation",
|
|
90
|
-
"git.discard.all": "Annuler toutes les modifications",
|
|
91
|
-
"git.stage": "Ajouter à la zone de préparation",
|
|
92
|
-
"git.discard": "Annuler les modifications",
|
|
93
|
-
"git.discard.message":
|
|
94
|
-
"Êtes-vous sûr de vouloir annuler toutes les modifications ?",
|
|
95
|
-
"git.unstage.all": "Retirer tout de la zone de préparation",
|
|
96
|
-
"git.unstage": "Retirer de la zone de préparation",
|
|
97
|
-
changes: "Modifications",
|
|
98
|
-
history: "Historique",
|
|
99
|
-
home: "Accueil",
|
|
100
|
-
cancel: "Annuler",
|
|
101
|
-
confirm: "Confirmer",
|
|
102
|
-
"plugin.install": "Installer le plugin",
|
|
103
|
-
"project.create": "Créer projet",
|
|
104
|
-
"checkpoint.save": "Enregistrer le point de contrôle",
|
|
105
|
-
"file.delete.warning":
|
|
106
|
-
"Êtes-vous sûr de vouloir supprimer ce fichier ? Cette action est irréversible.",
|
|
107
|
-
"folder.delete.warning":
|
|
108
|
-
"Êtes-vous sûr de vouloir supprimer ce dossier ? Cette action est irréversible.",
|
|
109
|
-
delete: "Supprimer",
|
|
110
|
-
"placeholder.text": "Ceci est un texte d'espace réservé",
|
|
111
|
-
"placeholder.click": "Cliquez ici",
|
|
112
|
-
"placeholder.label": "Étiquette",
|
|
113
|
-
find: "Rechercher",
|
|
114
|
-
replace: "Remplacer",
|
|
115
|
-
"replace.all": "Tout remplacer",
|
|
116
|
-
previous: "Précédent",
|
|
117
|
-
next: "Suivant",
|
|
118
|
-
"search.use.regex": "Utiliser une expression régulière",
|
|
119
|
-
"search.case.sensitive": "Respecter la casse",
|
|
120
|
-
"plugins.search": "Rechercher des plugins dans le Marketplace",
|
|
121
|
-
install: "Installer",
|
|
122
|
-
uninstall: "Désinstaller",
|
|
123
|
-
repository: "Dépôt",
|
|
124
|
-
login: "Se connecter",
|
|
125
|
-
logout: "Se déconnecter",
|
|
126
|
-
"projects.search": "Rechercher des projets",
|
|
127
|
-
download: "Télécharger",
|
|
128
|
-
"project.delete.warning":
|
|
129
|
-
"Êtes-vous sûr de vouloir supprimer ce projet ? Cette action est irréversible.",
|
|
130
|
-
"project.message.download": "Télécharger le projet sur le cloud",
|
|
131
|
-
"project.message.synced": "Le projet est à jour",
|
|
132
|
-
"project.message.update": "Il y a des modifications non enregistrées",
|
|
133
|
-
"project.message.upload": "Téléverser le projet sur le cloud",
|
|
134
|
-
loading: "Chargement...",
|
|
135
|
-
enable: "Activer",
|
|
136
|
-
disable: "Désactiver",
|
|
137
|
-
plugin: "Plugin",
|
|
138
|
-
plugins: "Plugins",
|
|
139
|
-
"updates.check": "Rechercher les mises à jour",
|
|
140
|
-
"updates.download": "Télécharger les mises à jour",
|
|
141
|
-
"plugins.enable.all": "Activer tous les plugins",
|
|
142
|
-
"plugins.disable.all": "Désactiver tous les plugins",
|
|
143
|
-
"plugins.install.local": "Installer des plugins locaux",
|
|
144
|
-
"check.all": "Tout cocher",
|
|
145
|
-
"uncheck.all": "Tout décocher",
|
|
146
|
-
"checkpoint.latest": "Revenir au dernier point de contrôle",
|
|
147
|
-
errors: "Erreurs",
|
|
148
|
-
"path.copy": "Copier le chemin",
|
|
149
|
-
general: "Général",
|
|
150
|
-
appearance: "Apparence",
|
|
151
|
-
registry: "Registre",
|
|
152
|
-
shortcuts: "Couches",
|
|
153
|
-
account: "Compte",
|
|
154
|
-
"sidebar.toggle": "Basculer la barre latérale",
|
|
155
|
-
"project.open": "Ouvrir un projet",
|
|
156
|
-
quit: "Quitter",
|
|
157
|
-
duplicate: "Dupliquer",
|
|
158
|
-
copy: "Copier",
|
|
159
|
-
cut: "Couper",
|
|
160
|
-
paste: "Coller",
|
|
161
|
-
"en-GB": "Anglais (UK)",
|
|
162
|
-
"fr-FR": "Français (France)",
|
|
163
|
-
"app.minimise": "Minimiser",
|
|
164
|
-
"app.maximise": "Maximiser",
|
|
165
|
-
"app.restart": "Redémarrer",
|
|
166
|
-
app: "App",
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
1
|
+
import Language from "@/types/editor/Language";
|
|
2
|
+
|
|
3
|
+
export const frFR: { [key in Language]: string } = {
|
|
4
|
+
"language.british_english": "Anglais britannique",
|
|
5
|
+
"language.french": "Français (France)",
|
|
6
|
+
"file.new": "Nouveau fichier",
|
|
7
|
+
"file.new.placeholder": "Appuyez sur Entrée pour ajouter un fichier",
|
|
8
|
+
"file.open": "Ouvrir le fichier",
|
|
9
|
+
"file.duplicate": "Dupliquer le fichier",
|
|
10
|
+
"file.delete": "Supprimer le fichier",
|
|
11
|
+
"file.rename": "Renommer le fichier",
|
|
12
|
+
"file.close": "Fermer le fichier",
|
|
13
|
+
"file.cut": "Couper le fichier",
|
|
14
|
+
"file.copy": "Copier le fichier",
|
|
15
|
+
"file.export_html": "Exporter au format HTML",
|
|
16
|
+
"file.export_pdf": "Exporter au format PDF",
|
|
17
|
+
"file.print": "Imprimer le fichier",
|
|
18
|
+
"file.location.open": "Ouvrir l'emplacement du fichier",
|
|
19
|
+
file: "Fichier",
|
|
20
|
+
edit: "Modifier",
|
|
21
|
+
view: "Afficher",
|
|
22
|
+
help: "Aide",
|
|
23
|
+
welcome: "Bienvenue sur BB Desktop !",
|
|
24
|
+
"welcome.message":
|
|
25
|
+
"Obtenir Commencer par créer un nouveau fichier ou en ouvrir un existant.",
|
|
26
|
+
"version.current": "Version actuelle",
|
|
27
|
+
"version.latest": "Dernière version",
|
|
28
|
+
"version.out_of_date": "Une mise à jour est disponible !",
|
|
29
|
+
"version.up_to_date": "Vous utilisez la dernière version.",
|
|
30
|
+
"update.check": "Rechercher les mises à jour",
|
|
31
|
+
"update.download": "Télécharger la mise à jour",
|
|
32
|
+
"update.release_notes": "Notes de version",
|
|
33
|
+
install_and_restart: "Installer et redémarrer",
|
|
34
|
+
"install.version": "Installer une version spécifique",
|
|
35
|
+
later: "Plus tard",
|
|
36
|
+
close: "Fermer",
|
|
37
|
+
about: "À propos",
|
|
38
|
+
change_log: "Journal des modifications",
|
|
39
|
+
documentation: "Documentation",
|
|
40
|
+
"report.issue": "Signaler un problème",
|
|
41
|
+
"folder.new": "Nouveau dossier",
|
|
42
|
+
"folder.new.placeholder": "Appuyez sur Entrée pour ajouter un dossier",
|
|
43
|
+
"folder.open": "Ouvrir un dossier",
|
|
44
|
+
"folder.open.message": "Vous pouvez ouvrir un dossier",
|
|
45
|
+
"folder.open.description":
|
|
46
|
+
"Ouvrir un dossier vous permet de créer un projet et d'enregistrer tous les fichiers qu'il contient.",
|
|
47
|
+
"project.download": "Télécharger le projet",
|
|
48
|
+
"project.download.title": "Vous pouvez télécharger un projet.",
|
|
49
|
+
"project.download.description":
|
|
50
|
+
"Parcourez les projets sauvegardés dans le cloud et téléchargez-les sur votre ordinateur.",
|
|
51
|
+
"project.select": "Sélectionner un projet.",
|
|
52
|
+
"project.select.title": "Vous pouvez sélectionner un projet précédent.",
|
|
53
|
+
"project.select.description":
|
|
54
|
+
"Accédez à votre système de fichiers pour sélectionner un projet précédemment enregistré.",
|
|
55
|
+
"project.new": "Nouveau projet.",
|
|
56
|
+
tags: "Étiquettes",
|
|
57
|
+
"tag.input.placeholder": "Appuyez sur Entrée pour ajouter une étiquette.",
|
|
58
|
+
category: "Catégorie",
|
|
59
|
+
"category.select": "Sélectionnez une catégorie.",
|
|
60
|
+
"project.title": "Titre du projet.",
|
|
61
|
+
"project.title.placeholder": "Les contes de deux villes.",
|
|
62
|
+
"project.description": "De quoi parle votre histoire ?",
|
|
63
|
+
"project.description.placeholder": "Ceci est une histoire sur...",
|
|
64
|
+
email: "Email",
|
|
65
|
+
"email.placeholder": "example@email.com",
|
|
66
|
+
password: "Password",
|
|
67
|
+
"password.placeholder": "********",
|
|
68
|
+
username: "username",
|
|
69
|
+
"username.placeholder": "@bb-author",
|
|
70
|
+
"workspace.select": "Sélectionnez un espace de travail",
|
|
71
|
+
"workspace.select.description":
|
|
72
|
+
"Sélectionnez un dossier où tous vos projets seront enregistrés",
|
|
73
|
+
"file.explorer": "Explorateur de fichiers",
|
|
74
|
+
"no_workspace.message":
|
|
75
|
+
"Sélectionnez un espace de travail pour commencer à travailler sur votre prochain projet",
|
|
76
|
+
"folder.select.placeholder": "./chemin/vers/projet",
|
|
77
|
+
"folder.select": "Sélectionnez un dossier",
|
|
78
|
+
"folder.rename": "Renommer le dossier",
|
|
79
|
+
"folder.duplicate": "Dupliquer le dossier",
|
|
80
|
+
"folder.paste": "Coller dans le dossier",
|
|
81
|
+
"folder.cut": "Couper le dossier",
|
|
82
|
+
"folder.copy": "Copier le dossier",
|
|
83
|
+
"folder.delete": "Supprimer le dossier",
|
|
84
|
+
folder: "Dossier",
|
|
85
|
+
"folder.location.open": "Ouvrir l'emplacement du dossier",
|
|
86
|
+
"checkpoint.list.header": "Points de contrôle",
|
|
87
|
+
"checkpoint.placeholder": "Message du point de contrôle...",
|
|
88
|
+
"checkpoint.button": "Enregistrer le point de contrôle",
|
|
89
|
+
"git.stage.all": "Ajouter tout à la zone de préparation",
|
|
90
|
+
"git.discard.all": "Annuler toutes les modifications",
|
|
91
|
+
"git.stage": "Ajouter à la zone de préparation",
|
|
92
|
+
"git.discard": "Annuler les modifications",
|
|
93
|
+
"git.discard.message":
|
|
94
|
+
"Êtes-vous sûr de vouloir annuler toutes les modifications ?",
|
|
95
|
+
"git.unstage.all": "Retirer tout de la zone de préparation",
|
|
96
|
+
"git.unstage": "Retirer de la zone de préparation",
|
|
97
|
+
changes: "Modifications",
|
|
98
|
+
history: "Historique",
|
|
99
|
+
home: "Accueil",
|
|
100
|
+
cancel: "Annuler",
|
|
101
|
+
confirm: "Confirmer",
|
|
102
|
+
"plugin.install": "Installer le plugin",
|
|
103
|
+
"project.create": "Créer projet",
|
|
104
|
+
"checkpoint.save": "Enregistrer le point de contrôle",
|
|
105
|
+
"file.delete.warning":
|
|
106
|
+
"Êtes-vous sûr de vouloir supprimer ce fichier ? Cette action est irréversible.",
|
|
107
|
+
"folder.delete.warning":
|
|
108
|
+
"Êtes-vous sûr de vouloir supprimer ce dossier ? Cette action est irréversible.",
|
|
109
|
+
delete: "Supprimer",
|
|
110
|
+
"placeholder.text": "Ceci est un texte d'espace réservé",
|
|
111
|
+
"placeholder.click": "Cliquez ici",
|
|
112
|
+
"placeholder.label": "Étiquette",
|
|
113
|
+
find: "Rechercher",
|
|
114
|
+
replace: "Remplacer",
|
|
115
|
+
"replace.all": "Tout remplacer",
|
|
116
|
+
previous: "Précédent",
|
|
117
|
+
next: "Suivant",
|
|
118
|
+
"search.use.regex": "Utiliser une expression régulière",
|
|
119
|
+
"search.case.sensitive": "Respecter la casse",
|
|
120
|
+
"plugins.search": "Rechercher des plugins dans le Marketplace",
|
|
121
|
+
install: "Installer",
|
|
122
|
+
uninstall: "Désinstaller",
|
|
123
|
+
repository: "Dépôt",
|
|
124
|
+
login: "Se connecter",
|
|
125
|
+
logout: "Se déconnecter",
|
|
126
|
+
"projects.search": "Rechercher des projets",
|
|
127
|
+
download: "Télécharger",
|
|
128
|
+
"project.delete.warning":
|
|
129
|
+
"Êtes-vous sûr de vouloir supprimer ce projet ? Cette action est irréversible.",
|
|
130
|
+
"project.message.download": "Télécharger le projet sur le cloud",
|
|
131
|
+
"project.message.synced": "Le projet est à jour",
|
|
132
|
+
"project.message.update": "Il y a des modifications non enregistrées",
|
|
133
|
+
"project.message.upload": "Téléverser le projet sur le cloud",
|
|
134
|
+
loading: "Chargement...",
|
|
135
|
+
enable: "Activer",
|
|
136
|
+
disable: "Désactiver",
|
|
137
|
+
plugin: "Plugin",
|
|
138
|
+
plugins: "Plugins",
|
|
139
|
+
"updates.check": "Rechercher les mises à jour",
|
|
140
|
+
"updates.download": "Télécharger les mises à jour",
|
|
141
|
+
"plugins.enable.all": "Activer tous les plugins",
|
|
142
|
+
"plugins.disable.all": "Désactiver tous les plugins",
|
|
143
|
+
"plugins.install.local": "Installer des plugins locaux",
|
|
144
|
+
"check.all": "Tout cocher",
|
|
145
|
+
"uncheck.all": "Tout décocher",
|
|
146
|
+
"checkpoint.latest": "Revenir au dernier point de contrôle",
|
|
147
|
+
errors: "Erreurs",
|
|
148
|
+
"path.copy": "Copier le chemin",
|
|
149
|
+
general: "Général",
|
|
150
|
+
appearance: "Apparence",
|
|
151
|
+
registry: "Registre",
|
|
152
|
+
shortcuts: "Couches",
|
|
153
|
+
account: "Compte",
|
|
154
|
+
"sidebar.toggle": "Basculer la barre latérale",
|
|
155
|
+
"project.open": "Ouvrir un projet",
|
|
156
|
+
quit: "Quitter",
|
|
157
|
+
duplicate: "Dupliquer",
|
|
158
|
+
copy: "Copier",
|
|
159
|
+
cut: "Couper",
|
|
160
|
+
paste: "Coller",
|
|
161
|
+
"en-GB": "Anglais (UK)",
|
|
162
|
+
"fr-FR": "Français (France)",
|
|
163
|
+
"app.minimise": "Minimiser",
|
|
164
|
+
"app.maximise": "Maximiser",
|
|
165
|
+
"app.restart": "Redémarrer",
|
|
166
|
+
app: "App",
|
|
167
|
+
settings: "Paramètres",
|
|
168
|
+
preferences: "Préférences",
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export default frFR;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import EventParam from "@/
|
|
1
|
+
import { EventParam } from "@/api";
|
|
2
2
|
import RelayEvent from "../types/api/RelayEvent";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -8,10 +8,15 @@ import RelayEvent from "../types/api/RelayEvent";
|
|
|
8
8
|
* @param event the params that will be sent to the editor
|
|
9
9
|
*/
|
|
10
10
|
export default function registerEvent<K extends keyof RelayEvent>(
|
|
11
|
-
|
|
11
|
+
type: K,
|
|
12
|
+
unsubscribe?: boolean,
|
|
12
13
|
) {
|
|
13
14
|
if (!window) throw new Error("Window not found");
|
|
14
15
|
if (window === window.parent) throw new Error("No parent window available");
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
const message: EventParam<K> = {
|
|
18
|
+
type,
|
|
19
|
+
source: unsubscribe ? "unsubscribe" : "event",
|
|
20
|
+
};
|
|
21
|
+
window.parent.postMessage(message, "*");
|
|
17
22
|
}
|
package/src/relay/subscribe.ts
CHANGED
|
@@ -5,7 +5,7 @@ export default function subscribe<K extends keyof RelayEvent>(
|
|
|
5
5
|
type: K,
|
|
6
6
|
callback: (response: RelayEvent[K]["response"]) => void,
|
|
7
7
|
) {
|
|
8
|
-
registerEvent(
|
|
8
|
+
registerEvent(type);
|
|
9
9
|
window.addEventListener("message", (ev: MessageEvent) => {
|
|
10
10
|
const data = ev.data as EventReturn<K>;
|
|
11
11
|
|
|
@@ -14,4 +14,7 @@ export default function subscribe<K extends keyof RelayEvent>(
|
|
|
14
14
|
callback(response);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
+
return () => {
|
|
18
|
+
registerEvent(type, true);
|
|
19
|
+
};
|
|
17
20
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export type FileEncoding = Extract<
|
|
1
|
+
export type FileEncoding = Extract<
|
|
2
|
+
BufferEncoding,
|
|
3
|
+
"utf8" | "hex" | "base64" | "base64url"
|
|
4
|
+
>;
|
|
2
5
|
|
|
3
6
|
type FileContent = {
|
|
4
|
-
path: string
|
|
5
|
-
content: string
|
|
6
|
-
type: FileEncoding
|
|
7
|
-
|
|
7
|
+
path: string;
|
|
8
|
+
content: string;
|
|
9
|
+
type: FileEncoding;
|
|
10
|
+
prevContent?: string | null;
|
|
11
|
+
};
|
|
8
12
|
|
|
9
|
-
export default FileContent
|
|
13
|
+
export default FileContent;
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import Language from "./Language";
|
|
2
|
-
import Locale from "./Locale";
|
|
3
|
-
|
|
4
|
-
const SHORTCUTS: Language[] = [
|
|
5
|
-
"file.new",
|
|
6
|
-
"folder.new",
|
|
7
|
-
"sidebar.toggle",
|
|
8
|
-
"project.new",
|
|
9
|
-
"project.open",
|
|
10
|
-
"quit",
|
|
11
|
-
"duplicate",
|
|
12
|
-
"copy",
|
|
13
|
-
"cut",
|
|
14
|
-
"paste",
|
|
15
|
-
"file.location.open",
|
|
16
|
-
] as const;
|
|
17
|
-
|
|
18
|
-
export default SHORTCUTS;
|
|
19
|
-
|
|
20
|
-
export type ShortcutID = Extract<Language, (typeof SHORTCUTS)[number]>;
|
|
21
|
-
|
|
22
|
-
export type Shortcut = {
|
|
23
|
-
id: ShortcutID;
|
|
24
|
-
name: string;
|
|
25
|
-
description: string;
|
|
26
|
-
keys: string[];
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export type Settings = {
|
|
30
|
-
language?: Locale;
|
|
31
|
-
sidebarWidth: number;
|
|
32
|
-
baseAppFont: number;
|
|
33
|
-
autoUpdate: boolean;
|
|
34
|
-
direction: "ltr" | "rtl";
|
|
35
|
-
showAllFile: boolean;
|
|
36
|
-
trashBehaviour: "permanent" | "trash";
|
|
37
|
-
shortcuts: Shortcut[];
|
|
38
|
-
theme: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
import Language from "./Language";
|
|
2
|
+
import Locale from "./Locale";
|
|
3
|
+
|
|
4
|
+
const SHORTCUTS: Language[] = [
|
|
5
|
+
"file.new",
|
|
6
|
+
"folder.new",
|
|
7
|
+
"sidebar.toggle",
|
|
8
|
+
"project.new",
|
|
9
|
+
"project.open",
|
|
10
|
+
"quit",
|
|
11
|
+
"duplicate",
|
|
12
|
+
"copy",
|
|
13
|
+
"cut",
|
|
14
|
+
"paste",
|
|
15
|
+
"file.location.open",
|
|
16
|
+
] as const;
|
|
17
|
+
|
|
18
|
+
export default SHORTCUTS;
|
|
19
|
+
|
|
20
|
+
export type ShortcutID = Extract<Language, (typeof SHORTCUTS)[number]>;
|
|
21
|
+
|
|
22
|
+
export type Shortcut = {
|
|
23
|
+
id: ShortcutID;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
keys: string[];
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type Settings = {
|
|
30
|
+
language?: Locale;
|
|
31
|
+
sidebarWidth: number;
|
|
32
|
+
baseAppFont: number;
|
|
33
|
+
autoUpdate: boolean;
|
|
34
|
+
direction: "ltr" | "rtl";
|
|
35
|
+
showAllFile: boolean;
|
|
36
|
+
trashBehaviour: "permanent" | "trash";
|
|
37
|
+
shortcuts: Shortcut[];
|
|
38
|
+
theme: string;
|
|
39
|
+
isDev: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* { [fileExtension: string]: pluginId }
|
|
42
|
+
*/
|
|
43
|
+
registry: Record<string, string>;
|
|
44
|
+
};
|