Skip to content

Commit

Permalink
Fix #61
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Jul 12, 2023
1 parent b488db9 commit 155db98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@ fun getYoutubeOwnChannelLocalisations(getLanguage: (String) -> Int): YoutubeUILo
en to "Playlists on repeat",
ja to "繰り返し再生するプレイリスト"
)
add(
en to "Playlists",
ja to "再生リスト"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ class LocalisedYoutubeString(
Type.OWN_CHANNEL -> SpMp.yt_ui_localisation.localiseOwnChannelString(key, source_language!!)
Type.ARTIST_PAGE -> SpMp.yt_ui_localisation.localiseArtistPageString(key, source_language!!)
Type.SEARCH_PAGE -> SpMp.yt_ui_localisation.localiseSearchPageString(key, source_language!!)
} ?: throw NotImplementedError("Key: '$key', Type: $type, Source lang: ${SpMp.getLanguageCode(source_language!!)}")
}

if (localised == null) {
println("WARNING: Localised string key '$key' of type $type has not been implemented. Source lang: ${SpMp.getLanguageCode(source_language!!)}")
localised = key
}
}
}

Expand Down

0 comments on commit 155db98

Please sign in to comment.