Switch from Asuka to MyGo, keeping the API client and the feature set: - servers: saved servers, passwordless and password login, proxy, self-signed certificates, per-server device tokens (Keystore), connect form, instance list sheet with switch/disconnect - sessions: virtualized list, search, new session, rename/archive/delete, running indicator, event stream keeps it live - chat: pushed window with system back bar, streaming Markdown via ui/markdown, reasoning and tool rows with image previews, footer menu (read aloud via a Kotlin TTS plugin, copy, fork), user message menu (copy, revert, fork), context usage ring and detail sheet, attachments (photos/files via the document picker), permissions - release builds allow plain http:// LAN servers (Go's net/http dials directly, no cleartext manifest needed) - a local fork of MyGo (third_party/mygo) lowers the Android host's minSdk to 24 (Android 7.0); Go 1.27.4 via mise Version 0.3.0.
130 lines
4.0 KiB
TypeScript
130 lines
4.0 KiB
TypeScript
// Code generated by mygo generate from the catalogs of the app. DO NOT EDIT.
|
||
import { createCatalog } from "mygo-runtime/i18n";
|
||
|
||
/** The messages of the app in one language. */
|
||
export interface Messages {
|
||
/**
|
||
* The name of the app, in its windows' titles.
|
||
*
|
||
* `Notes`
|
||
*/
|
||
title(): string;
|
||
/**
|
||
* The status bar, while files are selected.
|
||
*
|
||
* `{count, plural, =0 {No files selected} one {# file selected} other {# files selected}}`
|
||
*/
|
||
filesSelected(count: number): string;
|
||
/**
|
||
* `Hello, {name}!`
|
||
*/
|
||
greeting(name: string): string;
|
||
/**
|
||
* `{gender, select, female {She} male {He} other {They}} replied {when, date, short}.`
|
||
*/
|
||
replied(gender: string, when: Date): string;
|
||
/**
|
||
* `{done, number, percent} done`
|
||
*/
|
||
progress(done: number): string;
|
||
/**
|
||
* `You came {n, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}`
|
||
*/
|
||
place(n: number): string;
|
||
/**
|
||
* `{n, plural, offset:1 =0 {Nobody} =1 {{host}} one {{host} and # other} other {{host} and # others}}`
|
||
*/
|
||
guests(host: string, n: number): string;
|
||
/**
|
||
* `{0} of {1}`
|
||
*/
|
||
positional(arg0: string, arg1: string): string;
|
||
/**
|
||
* `{type} {default} {string} {any} {__proto__}`
|
||
*/
|
||
keyword(type: string, default_: string, string: string, any: string, __proto__: string): string;
|
||
/**
|
||
* `Value: {value}`
|
||
*/
|
||
untyped(value: string): string;
|
||
/**
|
||
* `Item {item}`
|
||
*/
|
||
object(item: unknown): string;
|
||
/**
|
||
* `Save As…`
|
||
*/
|
||
save_as(): string;
|
||
}
|
||
|
||
const catalog = createCatalog<Messages>({
|
||
source: "en",
|
||
languages: ["en", "de", "en-GB", "zh-Hant"],
|
||
fallbacks: {
|
||
"en": ["en"],
|
||
"de": ["de", "en"],
|
||
"en-GB": ["en-GB", "en"],
|
||
"zh-Hant": ["zh-Hant", "en"],
|
||
},
|
||
params: {
|
||
"title": [],
|
||
"filesSelected": ["count"],
|
||
"greeting": ["name"],
|
||
"replied": ["gender", "when"],
|
||
"progress": ["done"],
|
||
"place": ["n"],
|
||
"guests": ["host", "n"],
|
||
"positional": ["0", "1"],
|
||
"keyword": ["type", "default", "string", "any", "__proto__"],
|
||
"untyped": ["value"],
|
||
"object": ["item"],
|
||
"save_as": [],
|
||
},
|
||
messages: {
|
||
"en": {
|
||
"title": "Notes",
|
||
"filesSelected": "{count, plural, =0 {No files selected} one {# file selected} other {# files selected}}",
|
||
"greeting": "Hello, {name}!",
|
||
"replied": "{gender, select, female {She} male {He} other {They}} replied {when, date, short}.",
|
||
"progress": "{done, number, percent} done",
|
||
"place": "You came {n, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}",
|
||
"guests": "{n, plural, offset:1 =0 {Nobody} =1 {{host}} one {{host} and # other} other {{host} and # others}}",
|
||
"positional": "{0} of {1}",
|
||
"keyword": "{type} {default} {string} {any} {__proto__}",
|
||
"untyped": "Value: {value}",
|
||
"object": "Item {item}",
|
||
"save_as": "Save As…",
|
||
},
|
||
"de": {
|
||
"title": "Notizen",
|
||
"filesSelected": "{count, plural, =0 {Keine Dateien ausgewählt} one {# Datei ausgewählt} other {# Dateien ausgewählt}}",
|
||
"greeting": "Hallo, {name}!",
|
||
"replied": "{gender, select, female {Sie} male {Er} other {Sie}} hat am {when, date, short} geantwortet.",
|
||
"place": "Du bist {n}. geworden",
|
||
"guests": "{n, plural, offset:1 =0 {Niemand} =1 {{host}} one {{host} und # weitere Person} other {{host} und # weitere Personen}}",
|
||
},
|
||
"en-GB": {
|
||
"progress": "{done, number, percent} complete",
|
||
},
|
||
"zh-Hant": {
|
||
"title": "筆記",
|
||
"filesSelected": "{count, plural, other {已選取 # 個檔案}}",
|
||
"greeting": "你好,{name}!",
|
||
},
|
||
},
|
||
});
|
||
|
||
/**
|
||
* The messages in the language the page shows: the app's, else the
|
||
* browser's. Each call says its message in the language of the moment.
|
||
*/
|
||
export const messages: Messages = catalog.messages();
|
||
|
||
/** Returns the messages in the language of locale, as "de" or "zh-Hant". */
|
||
export function messagesIn(locale: string): Messages {
|
||
return catalog.messagesIn(locale);
|
||
}
|
||
|
||
/** The languages of the catalogs: the source language, then the others. */
|
||
export const languages: readonly string[] = catalog.languages;
|