- Home-
- Lethal Company-
- Mods for Lethal Company-
- SubtitlesAPI

SubtitlesAPI
About This Mod
Caption API
Central API for getting localized subtitles.
Feedback.
If you have feedback, please post it on Github Issues!
Use.
If you are creating a mod and want to add subtitles for custom sounds, it's very simple! Simply add a .dll fashion file to the link to your project and add the following code:
Static SubtitlesAPI.SubtitlesAPI;
try.
{
Localisation.AddTranslation(«CustomSound», «Custom Subtitles»);
}
Catch.
{
Debug.Log("SubtitlesAPI mode not found"); }
}
There is no need to even ask the player to use this mode!
Methods.
SubtitlesAPI.Localization.AddTranslation(string soundFileName, string subtitleText);
SubtitlesAPI.Localisation.AddTranslation(Dictionary<string, string>);
Dictionary<string, string> is a dictionary that contains Key: soundFileName, Value: subtitleText.
SubtitlesAPI.Localisation.AddDialogueTranslation(string sound, List<(float, string)> subtitles);
SubtitlesAPI.Localisation.AddDialogueTranslation(Dictionary<string, List<(float, string)>> translationsToAdd);
where Dictionary<string, List<(float, string)>> is a dictionary with Key: soundFileName and Value: subtitles.
This method returns a boolean dictionary value or a list of boolean values.
The result will be true if the mod was able to add subtitles, or false if not. Other mods can have the same audio file name.
Contribution.
Do you want to add or change captions? Want to create new locales for other languages? Do it! Fork this repository, make your add-ons or changes there, and submit a repair request.
Additional subtitles
Open the locale you want to edit (for example, EnglishSubtitleLocalisation.cs) and add it to the dictionary!
SubtitleAPI.localisation. Translation
The dictionary will use the following format for new entries:
{ 'SoundFileName' , 'Subtitle to Add' }
SubtitlesAPI.Localisation.DialogueTranslations
The dictionary uses the following format for new entries:
{
F0DaysLeftAlert»,
new()
{
(0, "[Company jingle sounds]"),
(4.969f, "Immediately report to the company office"),
(7.189f, "scrap metal sales, etc."),
(9.758f, "You have 0 days to reach your profit quota"),
(13.085f), "You can use the terminal for routing",
(14.874f, "We go to the company building on autopilot"), (14.874f, "We go to the company building on autopilot") }
}
}, }
{ }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, and New Locale.
To create a new locale, simply add a new file to the Locale folder, change Locale to the locale you want to add using the ISubtitleLocalisation interface, and add the translation to the dictionary!
Sample locale
public class EnglishSubtitleLocalization : ISubtitleLocalisation
{
public string Locale => «en»;
public Dictionary<string, string> Translations => new(StringComparer.OrdinalIgnoreCase) {
{ "AirHorn1", "Air Horn Player" }
}
public Dictionary<string, List<(float, string)>> DialogueTranslations => new(StringComparer.OrdinalIgnoreCase)
{
{
«F0DaysLeftAlert»,
new()
{
(0, "[plays jingle company]"),
(4.969f, "Immediately enter the company"),
(7.189f, "scrap metal sales, etc."),
(9.758f, "You have 0 days to reach your profit quota"),
(13.085f), "You can use the terminal for routing",
(14.874f, "We go to the company building on autopilot"), (14.874f, "We go to the company building on autopilot") }
}
},
};
}
Similar Mods/Addons
Gubkinsky boots1.0.1Mods for Lethal CompanyLethal Company
This mod is designed to improve many steps in Lethal Company with Spongebob SquarePants footstep FX....000
BoomboxVolume control1.0.1Mods for Lethal CompanyLethal Company
Adjusting the boombox volumeA mode that allows you to adjust the volume of the boombox, especially u...000
Shungite1.0.1Mods for Lethal CompanyLethal Company
Replace the SFX in the "Bug Bug" with various clips of the Shungit.000
Fricken costumes1.0.2Mods for Lethal CompanyLethal Company
more costumes and crapupdatedrenewed again, you want to test god?000
Dynamic range of the scanner1.0.0Mods for Lethal CompanyLethal Company
Dynamic scanning range.Each node being scanned can have its own scanning range.Modificationsv1.0.0Ad...000
MetalGearMenu mod1.0.0Mods for Lethal CompanyLethal Company
Replace the music from the menu with the music from the MGS1 menu. Recommended by Misophonics)000
SaiCosmetics1.1.0Mods for Lethal CompanyLethal Company
Sai Cosmetics.More company plugins to add cosmetics. Updated regularly.Update/Publish.Faith. 1.0.0 A...000
Freddy's Golden Suit1.0.0Mods for Lethal CompanyLethal Company
Thanks to Festive_Arms for organizing Freddie's original costume.My eyes lit up and I became Freddie...000
Fire escapes1.0.1Mods for Lethal CompanyLethal Company
Staircase for emergency exitsInstall a ladder near most emergency exits. They can replace sliding la...000
BearVids mod0.0.7Mods for Lethal CompanyLethal Company
#BearBoyTeam #BearModsAn uninteresting video with a compressed size of about 50 MB.000
Epikalla1.0.0Mods for Lethal CompanyLethal Company
What he's doing.This mod allows you to replace the game's standard sound with your own .wav/.mp3/.og...000
Fatal Weight Loss Fix1.1.1Mods for Lethal CompanyLethal Company
If you've ever been asked by a friend: "How best to do this?", then this fashion is for you!Fixed is...000
Mario 64 Piranha Plant Jester No Stem Version mod1.0.1Mods for Lethal CompanyLethal Company
Mario 64 Piranha Plant Jester (without handle) - PokeTrainerThis version of Mario 64 Piranha Plant d...000
Tun Link0.1.2Mods for Lethal CompanyLethal Company
Toon Link Suit v0.1.2Toon Link SuitUse.Place the content in the bepinex/plugins folder and verify th...000
Kreiszutz.1.0.1Mods for Lethal CompanyLethal Company
Behind you. ...... You ....... (Death by mine).000
FunkyMCMoon mod1.0.0Mods for Lethal CompanyLethal Company
Modified minecraft moonhat.#FeaturesCrazy loot.A lot of bugs.Minecraft.Lots of enemies000
LabMan Suit1.0.0Mods for Lethal CompanyLethal Company
Derpley's costume v1.0.Add a Derply themed costume.000
WereRich1.0.3Mods for Lethal CompanyLethal Company
We're Rich.Maud, who brings the famous Deep Rock Galactic song "We're Rich" to the Company.Just look...000
SavageProdSuits1.1.2Mods for Lethal CompanyLethal Company
Supplementary clothing v1.0.2About extra clothesAdds 8 standard costumes to your wardrobe at the beg...000