mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
chore(monorepo/client): set up some common dependencies
This commit is contained in:
10
packages/commons/src/i18n.ts
Normal file
10
packages/commons/src/i18n.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface Locale {
|
||||
id: string;
|
||||
name: string;
|
||||
/** `true` if the language is a right-to-left one, or `false` if it's left-to-right. */
|
||||
rtl?: boolean;
|
||||
/** `true` if the language is not supported by the application as a display language, but it is selectable by the user for the content. */
|
||||
contentOnly?: boolean;
|
||||
/** The value to pass to `--lang` for the Electron instance in order to set it as a locale. Not setting it will hide it from the list of supported locales. */
|
||||
electronLocale?: string;
|
||||
}
|
||||
3
packages/commons/src/index.ts
Normal file
3
packages/commons/src/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./i18n.js";
|
||||
export * from "./options_interface.js";
|
||||
export * from "./keyboard_actions_interface.js";
|
||||
Reference in New Issue
Block a user