diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-15 20:26:44 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-15 20:26:44 +0900 |
| commit | cced83024bfb578ee802ab13fc8af72a1be9a1e1 (patch) | |
| tree | 359d6a3eff6250600e714e5ec2a5ae2516cd8353 /src/server/api/endpoints/meta.ts | |
| parent | chore: Remove vips from Dockerfile (#7633) (diff) | |
| download | sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.tar.gz sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.tar.bz2 sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.zip | |
feat: ノートの翻訳機能
Resolve #5213
Diffstat (limited to 'src/server/api/endpoints/meta.ts')
| -rw-r--r-- | src/server/api/endpoints/meta.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index dd75149ad2..561d473d6f 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -232,6 +232,10 @@ export const meta = { type: 'boolean' as const, optional: false as const, nullable: false as const }, + translatorAvailable: { + type: 'boolean' as const, + optional: false as const, nullable: false as const + }, proxyAccountName: { type: 'string' as const, optional: false as const, nullable: true as const @@ -512,6 +516,8 @@ export default define(meta, async (ps, me) => { enableServiceWorker: instance.enableServiceWorker, + translatorAvailable: instance.deeplAuthKey != null, + ...(ps.detail ? { pinnedPages: instance.pinnedPages, pinnedClipId: instance.pinnedClipId, |