Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
feat: Add english translations for the tall tales
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisL61 committed Jun 18, 2024
1 parent 81ef025 commit ae6d93e
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 11 deletions.
12 changes: 6 additions & 6 deletions api/activities.json
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@
{
"id": "the_lair_of_lechuck",
"name": "_the_lair_of_lechuck",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/The_Lair_of_LeChuck.webp",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/The_Lair_of_LeChuck.png",
"length": 5,
"description": "_the_lair_of_lechuck_description",
"rpc": "_the_lair_of_lechuck_rpc"
Expand Down Expand Up @@ -802,7 +802,7 @@
{
"id": "the_seabound_soul",
"name": "_the_seabound_soul",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/The_Seabound_Soul.jpg",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/Seabound_Soul.jpg",
"length": 5,
"description": "_the_seabound_soul_description",
"rpc": "_the_seabound_soul_rpc"
Expand Down Expand Up @@ -887,12 +887,12 @@
"rpc": "_revenge_of_the_morningstar_rpc"
},
{
"id": "shores_of_gold",
"name": "_shores_of_gold",
"id": "shores_of_gold_tall_tale",
"name": "_shores_of_gold_tall_tale",
"image": "https://raw.githubusercontent.com/AlexisL61/SOT_RichPresence/main/assets/activities/Shores_of_Gold.webp",
"length": 5,
"description": "_shores_of_gold_description",
"rpc": "_shores_of_gold_rpc"
"description": "_shores_of_gold_tall_tale_description",
"rpc": "_shores_of_gold_tall_tale_rpc"
}
]
}
Expand Down
66 changes: 65 additions & 1 deletion api/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,69 @@
"_fishing_category": "Fishing",
"_a_fishing_voyage": "Fishing",
"_a_fishing_voyage_description": "Catch fish and deliver them to the Hunter's Call.",
"_a_fishing_voyage_rpc": "Catching fish"
"_a_fishing_voyage_rpc": "Catching fish",

"_tall_tales": "Tall Tales",
"_the_legend_of_monkey_island": "The Legend of Monkey Island",
"_the_journey_to_melee_island": "The Journey to Melee Island",
"_the_journey_to_melee_island_description": "Embark on a legendary voyage to Melee.",
"_the_journey_to_melee_island_rpc": "In a tall tale : The Journey to Melee Island",
"_the_quest_for_guybrush": "The Quest for Guybrush",
"_the_quest_for_guybrush_description": "Embark on a mission to wake up Guybrush.",
"_the_quest_for_guybrush_rpc": "In a tall tale : The Quest for Guybrush",
"_the_lair_of_lechuck": "The Lair of LeChuck",
"_the_lair_of_lechuck_description": "Embark on a mission to defeat LeChuck.",
"_the_lair_of_lechuck_rpc": "In a tall tale : The Lair of LeChuck",
"_a_pirates_life": "A Pirate's Life",
"_a_pirates_life_tall_tale": "A Pirate's Life",
"_a_pirates_life_tall_tale_description": "Embark on a legendary voyage to find the Captain Jack Sparrow.",
"_a_pirates_life_tall_tale_rpc": "In a tall tale : A Pirate's Life",
"_the_sunken_pearl": "The Sunken Pearl",
"_the_sunken_pearl_description": "Embark on a mission to find the Sunken Pearl.",
"_the_sunken_pearl_rpc": "In a tall tale : The Sunken Pearl",
"_captain_of_the_damned": "Captain of the Damned",
"_captain_of_the_damned_description": "Embark on a mission to (finally) find Captain Jack Sparrow.",
"_captain_of_the_damned_rpc": "In a tall tale : Captain of the Damned",
"_dark_brethern": "Dark Brethern",
"_dark_brethern_description": "Embark on a mission to uncover the truth behind the sirens.",
"_dark_brethern_rpc": "In a tall tale : Dark Brethern",
"_lords_of_the_sea": "Lords of the Sea",
"_lords_of_the_sea_description": "Embark on a mission to defeat the dark brethern.",
"_lords_of_the_sea_rpc": "In a tall tale : Loards of the Sea",
"_ashen_age": "Ashen Age",
"_the_seabound_soul": "The Seabound Soul",
"_the_seabound_soul_description": "Help pendragon in his quest",
"_the_seabound_soul_rpc": "In a tall tale : The Seabound Soul",
"_heart_of_fire": "Heart of Fire",
"_heart_of_fire_description": "Embark on a mission to find the crew of pendragon.",
"_heart_of_fire_rpc": "In a tall tale : Heart of Fire",
"_shores_of_gold": "Shores of Gold",
"_the_shroudbreaker": "The Shroudbreaker",
"_the_shroudbreaker_description": "Embark on a mission to find the shroudbreaker.",
"_the_shroudbreaker_rpc": "In a tall tale : The Shroudbreaker",
"_the_cursed_rogue": "The Cursed Rogue",
"_the_cursed_rogue_description": "Embark on a mission to defeat the cursed rogue.",
"_the_cursed_rogue_rpc": "In a tall tale : The Cursed Rogue",
"_the_legendary_storyteller": "The Legendary Storyteller",
"_the_legendary_storyteller_description": "Embark on a mission to solve the tales of captain Briggsy.",
"_the_legendary_storyteller_rpc": "In a tall tale : The Legendary Storyteller",
"_stars_of_a_thief": "Stars of a Thief",
"_stars_of_a_thief_description": "Embark on a mission to uncover an hidden Shroudbreaker gem.",
"_stars_of_a_thief_rpc": "In a tall tale : Stars of a Thief",
"_wild_rose": "Wild Rose",
"_wild_rose_description": "Embark on a mission to find the love of George and Rose.",
"_wild_rose_rpc": "In a tall tale : Wild Rose",
"_the_art_of_the_trickster": "The Art of the Trickster",
"_the_art_of_the_trickster_description": "Embark on a mission to find the hidden Shroudbreaker gem.",
"_the_art_of_the_trickster_rpc": "In a tall tale : The Art of the Trickster",
"_the_fate_of_the_morningstar": "The Fate of the Morningstar",
"_the_fate_of_the_morningstar_description": "Embark on a mission to learn the story behind the morning star.",
"_the_fate_of_the_morningstar_rpc": "In a tall tale : The Fate of the Morningstar",
"_the_revenge_of_the_morningstar": "The Revenge of the Morningstar",
"_the_revenge_of_the_morningstar_description": "Embark on a mission to defeat the morning star.",
"_the_revenge_of_the_morningstar_rpc": "In a tall tale : The Revenge of the Morningstar",
"_the_shores_of_gold_tall_tale": "The Shores of Gold",
"_the_shores_of_gold_tall_tale_description": "Embark on a mission to find the shores of gold.",
"_the_shores_of_gold_tall_tale_rpc": "In a tall tale : The Shores of Gold"

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:dart_discord_rpc/dart_discord_rpc.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:sot_richpresence/models/ship/ship_type.dart';
import 'package:sot_richpresence/models/user_data/user_data.dart';
import 'package:sot_richpresence/services/translations/translations_service.dart';

Expand All @@ -21,7 +22,7 @@ class RichPresenceService {
"players": UserData().drivenShip!.players.toString(),
"max_players": UserData().drivenShip!.maxPlayers.toString()
}),
smallImageKey: UserData().drivenShip!.name,
smallImageKey: UserData().drivenShip!.type.image,
smallImageText: tr("_${UserData().drivenShip!.name}_name"),
startTimeStamp: DateTime.now().millisecondsSinceEpoch,
));
Expand All @@ -35,9 +36,9 @@ class RichPresenceService {
"players": UserData().drivenShip!.players.toString(),
"max_players": UserData().drivenShip!.maxPlayers.toString(),
}),
smallImageKey: UserData().drivenShip!.name,
smallImageKey: UserData().drivenShip!.type.image,
smallImageText: tr("_${UserData().drivenShip!.name}_name"),
largeImageKey: UserData().activity!.id,
largeImageKey: UserData().activity!.image,
largeImageText: onlineTr(UserData().activity!.name),
startTimeStamp: DateTime.now().millisecondsSinceEpoch,
));
Expand All @@ -46,7 +47,7 @@ class RichPresenceService {
static void rpcForActivityOnly() {
_discordRPC.updatePresence(DiscordPresence(
details: onlineTr(UserData().activity!.rpc),
largeImageKey: UserData().activity!.id,
largeImageKey: UserData().activity!.image,
largeImageText: onlineTr(UserData().activity!.name),
startTimeStamp: DateTime.now().millisecondsSinceEpoch,
));
Expand Down

0 comments on commit ae6d93e

Please sign in to comment.