feat(webui): integrate i18n into folder-tree component and add missing translation keys

This commit is contained in:
yiling
2026-06-27 14:30:22 +08:00
parent 1b60c8df83
commit e8058a2292
30 changed files with 675 additions and 81 deletions
+12
View File
@@ -715,4 +715,16 @@ export * from "./click_toggle_time_frames.js";
export * from "./quality.js";
export * from "./media_not_available.js";
export * from "./original.js";
export * from "./collection.js";
export * from "./share_link.js";
export * from "./failed_fetch_share_links.js";
export * from "./failed_fetch_collections.js";
export * from "./failed_create_share_link.js";
export * from "./failed_rename_folder.js";
export * from "./failed_delete_folder.js";
export * from "./failed_rename_collection.js";
export * from "./failed_delete_collection.js";
export * from "./failed_rename_share_link.js";
export * from "./failed_delete_share_link.js";
export * from "./failed_to_fetch_folder_children.js";
export type LocalizedString = import("../runtime.js").LocalizedString;
+13 -1
View File
@@ -716,4 +716,16 @@ export * from './loop.js'
export * from './click_toggle_time_frames.js'
export * from './quality.js'
export * from './media_not_available.js'
export * from './original.js'
export * from './original.js'
export * from './collection.js'
export * from './share_link.js'
export * from './failed_fetch_share_links.js'
export * from './failed_fetch_collections.js'
export * from './failed_create_share_link.js'
export * from './failed_rename_folder.js'
export * from './failed_delete_folder.js'
export * from './failed_rename_collection.js'
export * from './failed_delete_collection.js'
export * from './failed_rename_share_link.js'
export * from './failed_delete_share_link.js'
export * from './failed_to_fetch_folder_children.js'
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "collection" |
*
* @param {CollectionInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const collection: ((inputs?: CollectionInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<CollectionInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type CollectionInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} CollectionInputs */
const en_collection = /** @type {(inputs: CollectionInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`collection`)
};
const zh_collection = /** @type {(inputs: CollectionInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`收藏集`)
};
/**
* | output |
* | --- |
* | "collection" |
*
* @param {CollectionInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const collection = /** @type {((inputs?: CollectionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<CollectionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_collection(inputs)
return zh_collection(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to create share link" |
*
* @param {Failed_Create_Share_LinkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_create_share_link: ((inputs?: Failed_Create_Share_LinkInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Create_Share_LinkInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Create_Share_LinkInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Create_Share_LinkInputs */
const en_failed_create_share_link = /** @type {(inputs: Failed_Create_Share_LinkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to create share link`)
};
const zh_failed_create_share_link = /** @type {(inputs: Failed_Create_Share_LinkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`创建分享链接失败`)
};
/**
* | output |
* | --- |
* | "Failed to create share link" |
*
* @param {Failed_Create_Share_LinkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_create_share_link = /** @type {((inputs?: Failed_Create_Share_LinkInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Create_Share_LinkInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_create_share_link(inputs)
return zh_failed_create_share_link(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to delete collection" |
*
* @param {Failed_Delete_CollectionInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_delete_collection: ((inputs?: Failed_Delete_CollectionInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Delete_CollectionInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Delete_CollectionInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Delete_CollectionInputs */
const en_failed_delete_collection = /** @type {(inputs: Failed_Delete_CollectionInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to delete collection`)
};
const zh_failed_delete_collection = /** @type {(inputs: Failed_Delete_CollectionInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`删除收藏集失败`)
};
/**
* | output |
* | --- |
* | "Failed to delete collection" |
*
* @param {Failed_Delete_CollectionInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_delete_collection = /** @type {((inputs?: Failed_Delete_CollectionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Delete_CollectionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_delete_collection(inputs)
return zh_failed_delete_collection(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to delete folder" |
*
* @param {Failed_Delete_FolderInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_delete_folder: ((inputs?: Failed_Delete_FolderInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Delete_FolderInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Delete_FolderInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Delete_FolderInputs */
const en_failed_delete_folder = /** @type {(inputs: Failed_Delete_FolderInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to delete folder`)
};
const zh_failed_delete_folder = /** @type {(inputs: Failed_Delete_FolderInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`删除文件夹失败`)
};
/**
* | output |
* | --- |
* | "Failed to delete folder" |
*
* @param {Failed_Delete_FolderInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_delete_folder = /** @type {((inputs?: Failed_Delete_FolderInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Delete_FolderInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_delete_folder(inputs)
return zh_failed_delete_folder(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to delete share link" |
*
* @param {Failed_Delete_Share_LinkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_delete_share_link: ((inputs?: Failed_Delete_Share_LinkInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Delete_Share_LinkInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Delete_Share_LinkInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Delete_Share_LinkInputs */
const en_failed_delete_share_link = /** @type {(inputs: Failed_Delete_Share_LinkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to delete share link`)
};
const zh_failed_delete_share_link = /** @type {(inputs: Failed_Delete_Share_LinkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`删除分享链接失败`)
};
/**
* | output |
* | --- |
* | "Failed to delete share link" |
*
* @param {Failed_Delete_Share_LinkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_delete_share_link = /** @type {((inputs?: Failed_Delete_Share_LinkInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Delete_Share_LinkInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_delete_share_link(inputs)
return zh_failed_delete_share_link(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to fetch collections" |
*
* @param {Failed_Fetch_CollectionsInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_fetch_collections: ((inputs?: Failed_Fetch_CollectionsInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Fetch_CollectionsInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Fetch_CollectionsInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Fetch_CollectionsInputs */
const en_failed_fetch_collections = /** @type {(inputs: Failed_Fetch_CollectionsInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to fetch collections`)
};
const zh_failed_fetch_collections = /** @type {(inputs: Failed_Fetch_CollectionsInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`获取收藏集失败`)
};
/**
* | output |
* | --- |
* | "Failed to fetch collections" |
*
* @param {Failed_Fetch_CollectionsInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_fetch_collections = /** @type {((inputs?: Failed_Fetch_CollectionsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Fetch_CollectionsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_fetch_collections(inputs)
return zh_failed_fetch_collections(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to fetch share links" |
*
* @param {Failed_Fetch_Share_LinksInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_fetch_share_links: ((inputs?: Failed_Fetch_Share_LinksInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Fetch_Share_LinksInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Fetch_Share_LinksInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Fetch_Share_LinksInputs */
const en_failed_fetch_share_links = /** @type {(inputs: Failed_Fetch_Share_LinksInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to fetch share links`)
};
const zh_failed_fetch_share_links = /** @type {(inputs: Failed_Fetch_Share_LinksInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`获取分享链接失败`)
};
/**
* | output |
* | --- |
* | "Failed to fetch share links" |
*
* @param {Failed_Fetch_Share_LinksInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_fetch_share_links = /** @type {((inputs?: Failed_Fetch_Share_LinksInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Fetch_Share_LinksInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_fetch_share_links(inputs)
return zh_failed_fetch_share_links(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to rename collection" |
*
* @param {Failed_Rename_CollectionInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_rename_collection: ((inputs?: Failed_Rename_CollectionInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Rename_CollectionInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Rename_CollectionInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Rename_CollectionInputs */
const en_failed_rename_collection = /** @type {(inputs: Failed_Rename_CollectionInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to rename collection`)
};
const zh_failed_rename_collection = /** @type {(inputs: Failed_Rename_CollectionInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`重命名收藏集失败`)
};
/**
* | output |
* | --- |
* | "Failed to rename collection" |
*
* @param {Failed_Rename_CollectionInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_rename_collection = /** @type {((inputs?: Failed_Rename_CollectionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Rename_CollectionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_rename_collection(inputs)
return zh_failed_rename_collection(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to rename folder" |
*
* @param {Failed_Rename_FolderInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_rename_folder: ((inputs?: Failed_Rename_FolderInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Rename_FolderInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Rename_FolderInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Rename_FolderInputs */
const en_failed_rename_folder = /** @type {(inputs: Failed_Rename_FolderInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to rename folder`)
};
const zh_failed_rename_folder = /** @type {(inputs: Failed_Rename_FolderInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`重命名文件夹失败`)
};
/**
* | output |
* | --- |
* | "Failed to rename folder" |
*
* @param {Failed_Rename_FolderInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_rename_folder = /** @type {((inputs?: Failed_Rename_FolderInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Rename_FolderInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_rename_folder(inputs)
return zh_failed_rename_folder(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to rename share link" |
*
* @param {Failed_Rename_Share_LinkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_rename_share_link: ((inputs?: Failed_Rename_Share_LinkInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_Rename_Share_LinkInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_Rename_Share_LinkInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_Rename_Share_LinkInputs */
const en_failed_rename_share_link = /** @type {(inputs: Failed_Rename_Share_LinkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to rename share link`)
};
const zh_failed_rename_share_link = /** @type {(inputs: Failed_Rename_Share_LinkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`重命名分享链接失败`)
};
/**
* | output |
* | --- |
* | "Failed to rename share link" |
*
* @param {Failed_Rename_Share_LinkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_rename_share_link = /** @type {((inputs?: Failed_Rename_Share_LinkInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Rename_Share_LinkInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_rename_share_link(inputs)
return zh_failed_rename_share_link(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Failed to fetch folder children" |
*
* @param {Failed_To_Fetch_Folder_ChildrenInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_to_fetch_folder_children: ((inputs?: Failed_To_Fetch_Folder_ChildrenInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Failed_To_Fetch_Folder_ChildrenInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Failed_To_Fetch_Folder_ChildrenInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Failed_To_Fetch_Folder_ChildrenInputs */
const en_failed_to_fetch_folder_children = /** @type {(inputs: Failed_To_Fetch_Folder_ChildrenInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Failed to fetch folder children`)
};
const zh_failed_to_fetch_folder_children = /** @type {(inputs: Failed_To_Fetch_Folder_ChildrenInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`获取子文件夹失败`)
};
/**
* | output |
* | --- |
* | "Failed to fetch folder children" |
*
* @param {Failed_To_Fetch_Folder_ChildrenInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const failed_to_fetch_folder_children = /** @type {((inputs?: Failed_To_Fetch_Folder_ChildrenInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_To_Fetch_Folder_ChildrenInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_failed_to_fetch_folder_children(inputs)
return zh_failed_to_fetch_folder_children(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "share link" |
*
* @param {Share_LinkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const share_link: ((inputs?: Share_LinkInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Share_LinkInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Share_LinkInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Share_LinkInputs */
const en_share_link = /** @type {(inputs: Share_LinkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`share link`)
};
const zh_share_link = /** @type {(inputs: Share_LinkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`分享链接`)
};
/**
* | output |
* | --- |
* | "share link" |
*
* @param {Share_LinkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const share_link = /** @type {((inputs?: Share_LinkInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Share_LinkInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_share_link(inputs)
return zh_share_link(inputs)
});