MCPcopy
hub / github.com/truelockmc/streambert / withLanguage

Function withLanguage

src/utils/api.js:17–21  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

15
16// Append the language query param to a TMDB path.
17function withLanguage(path) {
18 const lang = getTmdbLanguage();
19 const sep = path.includes("?") ? "&" : "?";
20 return `${path}${sep}language=${lang}`;
21}
22
23export const imgUrl = (path, size = "w500") =>
24 path ? `${IMG_BASE}/${size}${path}` : null;

Callers 1

tmdbFetchFunction · 0.85

Calls 1

getTmdbLanguageFunction · 0.85

Tested by

no test coverage detected