* feat(i18n): Add translation keys and implement localization for 80+ plugins
- Add comprehensive translation keys to i18n/en-US/vencord.json
- Update all plugins to use t() function from @utils/translation
- Replace hardcoded strings with translation function calls
- Support plural forms with _one/_other suffixes
- Use Translate component for strings with embedded JSX
Plugins translated include:
- Core: reviewDB, translate, voiceMessages, messageLogger
- UI: showHiddenChannels, customRPC, clientTheme, permissionsViewer
- Utility: betterSessions, betterSettings, memberCount, betterFolders
- Social: relationshipNotifier, messageLatency, whoReacted
- Media: imageZoom, viewIcons, viewRaw, decor, fakeNitro
- And 60+ more plugins
All changes pass TypeScript compilation.
* Update i18n/en-US/vencord.json
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update i18n/en-US/vencord.json
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update i18n/en-US/vencord.json
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update i18n/en-US/vencord.json
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update i18n/en-US/vencord.json
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update i18n/en-US/vencord.json
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* feat(i18n): Add equicord.json for equicordplugins localization
- Create i18n/en-US/equicord.json with messageLoggerEnhanced translation keys
- Create empty equicord.json files for all other locales (Crowdin will handle translations)
- Build system automatically picks up all JSON files in i18n/{locale}/
* Update i18n/en-US/vencord.json
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* feat(i18n): Add translations to 200 equicordplugins
- Translate all user-facing strings in equicordplugins to use t() function
- Add translation keys to i18n/en-US/equicord.json
- Plugin names remain static strings for build system compatibility
- Settings descriptions, tooltips, context menus, and UI strings now translatable
* FileUpload: add sharex file support (#771)
* FileUpload: add sharex file support
Quick note, the settings seem to split pacal case with spaces for some reason,
so `ShareX` renders as `Share X`. This is stupid and im upset and I dont think
theres anything I can do about it
* FileUpload: use Headers object to construct HTTP headers
* Update vencord.json
---------
Co-authored-by: Mishal <91066601+mishalhossin@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Key <keircn@proton.me>
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
83 lines
2.4 KiB
TypeScript
83 lines
2.4 KiB
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2025 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { definePluginSettings } from "@api/Settings";
|
|
import { t } from "@utils/translation";
|
|
import { OptionType } from "@utils/types";
|
|
import { React } from "@webpack/common";
|
|
|
|
export const settings = definePluginSettings({
|
|
memberList: {
|
|
type: OptionType.BOOLEAN,
|
|
description: t("betterActivities.settings.memberList"),
|
|
default: true,
|
|
restartNeeded: true,
|
|
},
|
|
iconSize: {
|
|
type: OptionType.SLIDER,
|
|
description: t("betterActivities.settings.iconSize"),
|
|
markers: [10, 15, 20],
|
|
default: 15,
|
|
stickToMarkers: false,
|
|
},
|
|
specialFirst: {
|
|
type: OptionType.BOOLEAN,
|
|
description: t("betterActivities.settings.specialFirst"),
|
|
default: true,
|
|
restartNeeded: false,
|
|
},
|
|
renderGifs: {
|
|
type: OptionType.BOOLEAN,
|
|
description: t("betterActivities.settings.renderGifs"),
|
|
default: true,
|
|
restartNeeded: false,
|
|
},
|
|
removeGameActivityStatus: {
|
|
type: OptionType.BOOLEAN,
|
|
description: t("betterActivities.settings.removeGameActivityStatus"),
|
|
default: false,
|
|
restartNeeded: true,
|
|
},
|
|
divider: {
|
|
type: OptionType.COMPONENT,
|
|
description: "",
|
|
component: () => (
|
|
<div style={{
|
|
width: "100%",
|
|
height: 1,
|
|
borderTop: "thin solid var(--input-border-default, var(--input-border))",
|
|
paddingTop: 5,
|
|
paddingBottom: 5
|
|
}} />
|
|
),
|
|
},
|
|
userPopout: {
|
|
type: OptionType.BOOLEAN,
|
|
description: t("betterActivities.settings.userPopout"),
|
|
default: true,
|
|
restartNeeded: true,
|
|
},
|
|
hideTooltip: {
|
|
type: OptionType.BOOLEAN,
|
|
description: t("betterActivities.settings.hideTooltip"),
|
|
default: true,
|
|
},
|
|
allActivitiesStyle: {
|
|
type: OptionType.SELECT,
|
|
description: t("betterActivities.settings.allActivitiesStyle"),
|
|
options: [
|
|
{
|
|
default: true,
|
|
label: t("betterActivities.options.carousel"),
|
|
value: "carousel",
|
|
},
|
|
{
|
|
label: t("betterActivities.options.list"),
|
|
value: "list",
|
|
},
|
|
]
|
|
}
|
|
});
|