Skip to content

Commit

Permalink
1.0.9: Fixes for intl changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Nov 3, 2024
1 parent 50b81b4 commit 314fa7f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonlight-mod/mappings",
"version": "1.0.8",
"version": "1.0.9",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions src/mappings/discord/components/common/SettingsNotice.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { ModuleExportType } from "@moonlight-mod/moonmap";
import register from "../../../../registry";

register((moonmap) => {
const name = "discord/components/common/SettingsNotice";
moonmap.register({
name,
find: ["onSaveButtonColor", ".Messages.SAVE_CHANGES"],
find: [/onSaveButtonColor:.,/],
process({ id }) {
moonmap.addModule(id, name);

Expand Down
4 changes: 2 additions & 2 deletions src/mappings/discord/i18n.ts → src/mappings/discord/intl.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import register from "../../registry";

register((moonmap) => {
const name = "discord/i18n";
const name = "discord/intl";
moonmap.register({
name,
find: ["getMessages:", "getLanguages:", ".jsona"],
find: ["formatToPlainString:"],
process({ id }) {
moonmap.addModule(id, name);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ register((moonmap) => {
"discord/modules/application_commands/ApplicationCommandBuiltIns";
moonmap.register({
name,
find: ".Messages.COMMAND_SECTION_BUILT_IN_NAME",
find: ["BUILT_IN,get name"],
process({ id }) {
moonmap.addModule(id, name);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { ModuleExportType } from "@moonlight-mod/moonmap";
import register from "../../../../../registry";

register((moonmap) => {
const name = "discord/modules/messages/web/TimestampTooltip";
moonmap.register({
name,
find: ".Messages.MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL",
find: ["\u2014", "timeFormatted:"],
process({ id }) {
moonmap.addModule(id, name);

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/mappings/discord/uikit/search/SearchBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ register((moonmap) => {
const name = "discord/uikit/search/SearchBar";
moonmap.register({
name,
find: [".Messages.SEARCH,", ".small,"],
find: ["hideSearchIcon"],
process({ id }) {
moonmap.addModule(id, name);

Expand Down
3 changes: 1 addition & 2 deletions src/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "./mappings/discord/components/common/UserSummaryItem";
import "./mappings/discord/Constants";
import "./mappings/discord/Dispatcher";
import "./mappings/discord/flow/Server";
import "./mappings/discord/i18n";
import "./mappings/discord/intl";
import "./mappings/discord/lib/ChannelMessages";
import "./mappings/discord/lib/web/Storage";
import "./mappings/discord/modules/a11y/AccessibilityStore";
Expand Down Expand Up @@ -46,7 +46,6 @@ import "./mappings/discord/modules/spotify/SpotifyStore";
import "./mappings/discord/modules/stickers/StickersStore";
import "./mappings/discord/modules/user_profile/UserProfileStore";
import "./mappings/discord/modules/user_profile/web/BiteSizeActivity.css";
import "./mappings/discord/modules/user_profile/web/PastActivityExperiment";
import "./mappings/discord/modules/user_profile/web/UserActivity";
import "./mappings/discord/modules/user_profile/web/UserProfileActivityCardWrapper";
import "./mappings/discord/modules/user_settings/web/openUserSettings";
Expand Down

0 comments on commit 314fa7f

Please sign in to comment.