* 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>
55 lines
1.9 KiB
TypeScript
55 lines
1.9 KiB
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2024 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import "./styles.css";
|
|
|
|
import { migratePluginSettings } from "@api/Settings";
|
|
import { Devs } from "@utils/constants";
|
|
import { t } from "@utils/translation";
|
|
import definePlugin from "@utils/types";
|
|
|
|
import { patchActivityList } from "./patch-helpers/activityList";
|
|
import { showAllActivitiesComponent } from "./patch-helpers/popout";
|
|
import { settings } from "./settings";
|
|
|
|
migratePluginSettings("BetterActivities", "MemberListActivities");
|
|
|
|
export default definePlugin({
|
|
name: "BetterActivities",
|
|
description: t("betterActivities.description"),
|
|
authors: [Devs.D3SOX, Devs.Arjix, Devs.AutumnVN, Devs.thororen],
|
|
tags: ["activity"],
|
|
settings,
|
|
patchActivityList,
|
|
showAllActivitiesComponent,
|
|
patches: [
|
|
{
|
|
// Patch activity icons
|
|
find: '"ActivityStatus"),',
|
|
replacement: [
|
|
{
|
|
match: /(?<=className:\i,children:\[).*?(?=\i\(\),\i&&)/g,
|
|
replace: "",
|
|
predicate: () => settings.store.removeGameActivityStatus,
|
|
},
|
|
{
|
|
match: /(?<=hideTooltip:.{0,4}}=(\i).*?{}\))\]/g,
|
|
replace: ",$self.patchActivityList($1)]",
|
|
predicate: () => settings.store.memberList,
|
|
}
|
|
],
|
|
},
|
|
{
|
|
// Show all activities in the user popout/sidebar
|
|
find: /\.POPOUT,onClose:\i}\),nicknameIcons:.+?\.isProvisional/,
|
|
replacement: {
|
|
match: /((\i)=.{0,10}(\i)\.id\).*?,onInteraction:\i\}\),).{0,250}onClose:\i\}\)/,
|
|
replace: "$1$self.showAllActivitiesComponent({ activity: $2, user: $3 })"
|
|
},
|
|
predicate: () => settings.store.userPopout
|
|
},
|
|
],
|
|
});
|