From d586899dbf9f941c351d32d39c3d6b16f9aeca70 Mon Sep 17 00:00:00 2001 From: Isra Date: Thu, 25 May 2023 22:38:58 -0500 Subject: [PATCH] Pirate speak! --- src/setup/i18n.ts | 4 + src/setup/iso6391.ts | 7 ++ src/setup/locales/pirate/translation.json | 124 ++++++++++++++++++++++ 3 files changed, 135 insertions(+) create mode 100644 src/setup/locales/pirate/translation.json diff --git a/src/setup/i18n.ts b/src/setup/i18n.ts index c5094776..6116434a 100644 --- a/src/setup/i18n.ts +++ b/src/setup/i18n.ts @@ -8,6 +8,7 @@ import de from "./locales/de/translation.json"; import en from "./locales/en/translation.json"; import fr from "./locales/fr/translation.json"; import nl from "./locales/nl/translation.json"; +import pirate from "./locales/pirate/translation.json"; import tr from "./locales/tr/translation.json"; import zh from "./locales/zh/translation.json"; @@ -33,6 +34,9 @@ const locales = { cs: { translation: cs, }, + pirate: { + translation: pirate, + }, }; i18n // pass the i18n instance to react-i18next. diff --git a/src/setup/iso6391.ts b/src/setup/iso6391.ts index 28d42806..3499155b 100644 --- a/src/setup/iso6391.ts +++ b/src/setup/iso6391.ts @@ -1,5 +1,6 @@ export type LangCode = | "none" + | "pirate" | "aa" | "ab" | "ae" @@ -219,6 +220,12 @@ export const captionLanguages: CaptionLanguageOption[] = [ name: "None", nativeName: "Lorem ipsum", }, + { + id: "pirate", + englishName: "Pirate", + name: "Pirate English", + nativeName: "Pirate English", + }, { id: "aa", englishName: "Afar", diff --git a/src/setup/locales/pirate/translation.json b/src/setup/locales/pirate/translation.json new file mode 100644 index 00000000..e87a7d2d --- /dev/null +++ b/src/setup/locales/pirate/translation.json @@ -0,0 +1,124 @@ +{ + "global": { + "name": "movie-web" + }, + "search": { + "loading_series": "Fetchin' yer favorite series...", + "loading_movie": "Fetchin' yer favorite movies...", + "loadin'": "Loadin'...", + "allResults": "That be all we 'ave, me hearty!", + "noResults": "We couldn't find anythin' that matches yer search!", + "allFailed": "Failed t' find media, walk the plank and try again!", + "headingTitle": "Search results", + "bookmarks": "Treasure Maps", + "continueWatchin'": "Continue Watchin'", + "title": "Wha' be ye wantin' to watch, me matey?", + "placeholder": "Wha' be ye searchin' for?" + }, + "media": { + "movie": "Movie", + "series": "Series", + "stopEditin'": "Stop editin'", + "errors": { + "genericTitle": "Shiver me timbers! It broke!", + "failedMeta": "Ye can't trust the compass, failed to load meta", + "mediaFailed": "We failed t' request the media ye asked fer, check yer internet connection, or Davy Jones's locker awaits ye!", + "videoFailed": "Blimey! We encountered an error while playin' the video ye requested. If this keeps happening please report the issue to the <0>Discord server or on <1>GitHub." + } + }, + "seasons": { + "seasonAndEpisode": "S{{season}} E{{episode}}" + }, + "notFound": { + "genericTitle": "Ahoy! I see nothin' on the horizon.", + "backArrow": "Back to the port", + "media": { + "title": "Avast ye! Couldn't find that media", + "description": "We couldn't find the media ye requested. Either it's been scuttled or ye tampered with the URL, ye scallywag!" + }, + "provider": { + "title": "Walk the plank! This provider has been disabled", + "description": "We had issues wit' the provider or 'twas too unstable t' use, so we had t' disable it. Try another one, arrr!" + }, + "page": { + "title": "Avast ye! Couldn't find that page.", + "description": "Arrr! We searched every inch o' the vessel: from the bilge to the crow's nest, from the keel to the topmast, but avast! We couldn't find the page ye be lookin' fer, me heartie." + } + }, + "searchBar": { + "movie": "Movie", + "series": "Series", + "Search": "Search" + }, + "videoPlayer": { + "findingBestVideo": "Finding the best video fer ye, hoist the colors!", + "noVideos": "Blistering barnacles, couldn't find any videos fer ye. Ye need a better map!", + "loading": "Loading...", + "backToHome": "Back to the port, mates!", + "backToHomeShort": "Back", + "seasonAndEpisode": "S{{season}} E{{episode}}", + "timeLeft": "{{timeLeft}} left", + "finishAt": "Finish at {{timeFinished}}", + "buttons": { + "episodes": "Episodes", + "source": "Source", + "captions": "Captions", + "download": "Download", + "settings": "Settings", + "pictureInPicture": "Spyglass view", + "playbackSpeed": "Set sail faster!" + }, + "popouts": { + "back": "Avast ye, go back!", + "sources": "Wha' provider do ye want to use?", + "seasons": "Choose which season you wants to watch!", + "captions": "Select a subtitle language, me hearty!", + "playbackSpeed": "Make the video faster than Blackbeard's ship!", + "customPlaybackSpeed": "Set a custom playback speed", + "captionPreferences": { + "title": "Customize yer captions", + "delay": "Delay", + "fontSize": "Size", + "opacity": "Opacity", + "color": "Color" + }, + "episode": "E{{index}} - {{title}}", + "noCaptions": "No captions, hoist the Jolly Roger!", + "linkedCaptions": "Linked captions, drop anchor!", + "customCaption": "Custom caption, arrr!", + "uploadCustomCaption": "Upload yer own caption!", + "noEmbeds": "No embeds we be found fer this source", + + "errors": { + "loadingWentWong": "Shiver me timbers! Somethin' went wrong loadin' the episodes fer {{seasonTitle}}", + "embedsError": "Blimey! Somethin' went wrong loadin' the embeds fer this thin' that ye like" + }, + "descriptions": { + "sources": "Wha' provider do ye wants to use?", + "embeds": "Choose which video to view", + "seasons": "Choose which season ye wants to watch", + "episode": "Pick an episode", + "captions": "Choose a subtitle language", + "captionPreferences": "Make subtitles look how ye wants it", + "playbackSpeed": "Change the playback speed" + } + }, + "errors": { + "fatalError": "Blow me down! The video player encounted a fatal error, please report it to the <0>Discord server or on <1>GitHub." + } + }, + "settings": { + "title": "Settings", + "language": "Language", + "captionLanguage": "Caption Language" + }, + "v3": { + "newSiteTitle": "New version now released!", + "newDomain": "https://movie-web.app", + "newDomainText": "movie-web will soon be movin' to a new domain: <0>https://movie-web.app. Make sure to update all yer bookmarks as <1>the ole website will stop workin' on {{date}}.", + "tireless": "We've worked tirelessly on this new update, we hope ye will enjoy wha' we've been cookin' up fer the past months.", + "leaveAnnouncement": "Take me thar!" + }, + "casting": { "casting": "Casting to device..." }, + "errors": { "offline": "Avast! Check yer internet connection" } +}