Open BPplays opened 6 months ago
Unfortunately steamgriddb's api does not return information on the language of text that appears in artwork, I don't think they even collect that information. As such, there is no way for SRM to do this.
@cbartondock it seems to return the language, and i know you can set it because i set it for my own uploads before.
running curl -H "Authorization: Bearer myapikey" 'https://www.steamgriddb.com/api/v2/icons/game/5361043' | jq
returns (note the "language": "ja"
):
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1454 100 1454 0 0 14630 0 --:--:-- --:--:-- --:--:-- 14686
{
"success": true,
"data": [
{
"id": 56167,
"score": 0,
"style": "custom",
"width": 1024,
"height": 1024,
"nsfw": false,
"humor": false,
"notes": "a shortening of どうぶつの森. source: https://ja.wikipedia.org/wiki/%E3%81%A9%E3%81%86%E3%81%B6%E3%81%A4%E3%81%AE%E6%A3%AE%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA",
"mime": "image/png",
"language": "ja",
"url": "https://cdn2.steamgriddb.com/icon/83aa15643b367081bdded4bd8c21cd72.png",
"thumb": "https://cdn2.steamgriddb.com/icon_thumb/83aa15643b367081bdded4bd8c21cd72.png",
"lock": false,
"epilepsy": false,
"upvotes": 0,
"downvotes": 0,
"author": {
"name": "BPplays",
"steam64": "76561198254680007",
"avatar": "https://avatars.steamstatic.com/4fd270ac678890d295916aa3d8c89dd50b7f490c_medium.jpg"
}
},
{
"id": 56165,
"score": 0,
"style": "custom",
"width": 1024,
"height": 1024,
"nsfw": false,
"humor": false,
"notes": "a shortening of どうぶつの森.\r\nsource: https://ja.wikipedia.org/wiki/%E3%81%A9%E3%81%86%E3%81%B6%E3%81%A4%E3%81%AE%E6%A3%AE%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA",
"mime": "image/png",
"language": "ja",
"url": "https://cdn2.steamgriddb.com/icon/ad4f8aff6efb12b3675d40b7159ef1dd.png",
"thumb": "https://cdn2.steamgriddb.com/icon_thumb/ad4f8aff6efb12b3675d40b7159ef1dd.png",
"lock": false,
"epilepsy": false,
"upvotes": 0,
"downvotes": 0,
"author": {
"name": "BPplays",
"steam64": "76561198254680007",
"avatar": "https://avatars.steamstatic.com/4fd270ac678890d295916aa3d8c89dd50b7f490c_medium.jpg"
}
}
]
}
I stand corrected, they must have added it! I'll get around to it in that case.
This isn't documented in their api docs as far as I can tell
https://www.steamgriddb.com/api/v2#tag/GRIDS/operation/getGridsByPlatformId
Presumably they use all or some of the iso language codes https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes. @doZennn can you confirm?
@cbartondock i made a python script to look through items and check if their language matches an ISO 639-1 code and here is the latest output as of writing:
=========
ISO Languages Matched: 29/184 ['en', 'ja', 'zh', 'ru', 'it', 'de', 'es', 'fr', 'ko', 'pt', 'pl', 'uk', 'ar', 'cs', 'th', 'fa', 'sv', 'ro', 'tr', 'nl', 'el', 'no', 'hu', 'fi', 'da', 'sl', 'he', 'kk', 'nb']
Non-ISO Languages: []
=========
also when adding an icon there is a dropdown for language and in the html when selecting an item you can see that the last item is 183 and starts at 0 which means there are the same number of options as number of ISO 639-1 Codes
Presumably they use all or some of the iso language codes https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes. @doZennn can you confirm?
{
"aa":
{
"name": "Afar",
"nativeName": "Afaraf"
},
"ab":
{
"name": "Abkhaz",
"nativeName": "\u0430\u04a7\u0441\u0443\u0430 \u0431\u044b\u0437\u0448\u04d9\u0430"
},
"ae":
{
"name": "Avestan",
"nativeName": "avesta"
},
"af":
{
"name": "Afrikaans",
"nativeName": "Afrikaans"
},
"ak":
{
"name": "Akan",
"nativeName": "Akan"
},
"am":
{
"name": "Amharic",
"nativeName": "\u12a0\u121b\u122d\u129b"
},
"an":
{
"name": "Aragonese",
"nativeName": "aragon\u00e9s"
},
"ar":
{
"name": "Arabic",
"nativeName": "\u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629"
},
"as":
{
"name": "Assamese",
"nativeName": "\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"
},
"av":
{
"name": "Avaric",
"nativeName": "\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0"
},
"ay":
{
"name": "Aymara",
"nativeName": "aymar aru"
},
"az":
{
"name": "Azerbaijani",
"nativeName": "az\u0259rbaycan dili"
},
"ba":
{
"name": "Bashkir",
"nativeName": "\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"
},
"be":
{
"name": "Belarusian",
"nativeName": "\u0431\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f \u043c\u043e\u0432\u0430"
},
"bg":
{
"name": "Bulgarian",
"nativeName": "\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"
},
"bh":
{
"name": "Bihari",
"nativeName": "\u092d\u094b\u091c\u092a\u0941\u0930\u0940"
},
"bi":
{
"name": "Bislama",
"nativeName": "Bislama"
},
"bm":
{
"name": "Bambara",
"nativeName": "bamanankan"
},
"bn":
{
"name": "Bengali",
"nativeName": "\u09ac\u09be\u0982\u09b2\u09be"
},
"bo":
{
"name": "Tibetan Standard",
"nativeName": "\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"
},
"br":
{
"name": "Breton",
"nativeName": "brezhoneg"
},
"bs":
{
"name": "Bosnian",
"nativeName": "bosanski jezik"
},
"ca":
{
"name": "Catalan",
"nativeName": "catal\u00e0"
},
"ce":
{
"name": "Chechen",
"nativeName": "\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"
},
"ch":
{
"name": "Chamorro",
"nativeName": "Chamoru"
},
"co":
{
"name": "Corsican",
"nativeName": "corsu"
},
"cr":
{
"name": "Cree",
"nativeName": "\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"
},
"cs":
{
"name": "Czech",
"nativeName": "\u010de\u0161tina"
},
"cu":
{
"name": "Old Church Slavonic",
"nativeName": "\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"
},
"cv":
{
"name": "Chuvash",
"nativeName": "\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"
},
"cy":
{
"name": "Welsh",
"nativeName": "Cymraeg"
},
"da":
{
"name": "Danish",
"nativeName": "dansk"
},
"de":
{
"name": "German",
"nativeName": "Deutsch"
},
"dv":
{
"name": "Divehi",
"nativeName": "Dhivehi"
},
"dz":
{
"name": "Dzongkha",
"nativeName": "\u0f62\u0fab\u0f7c\u0f44\u0f0b\u0f41"
},
"ee":
{
"name": "Ewe",
"nativeName": "E\u028begbe"
},
"el":
{
"name": "Greek",
"nativeName": "\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"
},
"en":
{
"name": "English",
"nativeName": "English"
},
"eo":
{
"name": "Esperanto",
"nativeName": "Esperanto"
},
"es":
{
"name": "Spanish",
"nativeName": "Espa\u00f1ol"
},
"et":
{
"name": "Estonian",
"nativeName": "eesti"
},
"eu":
{
"name": "Basque",
"nativeName": "euskara"
},
"fa":
{
"name": "Persian",
"nativeName": "\u0641\u0627\u0631\u0633\u06cc"
},
"ff":
{
"name": "Fula",
"nativeName": "Fulfulde"
},
"fi":
{
"name": "Finnish",
"nativeName": "suomi"
},
"fj":
{
"name": "Fijian",
"nativeName": "Vakaviti"
},
"fo":
{
"name": "Faroese",
"nativeName": "f\u00f8royskt"
},
"fr":
{
"name": "French",
"nativeName": "Fran\u00e7ais"
},
"fy":
{
"name": "Western Frisian",
"nativeName": "Frysk"
},
"ga":
{
"name": "Irish",
"nativeName": "Gaeilge"
},
"gd":
{
"name": "Scottish Gaelic",
"nativeName": "G\u00e0idhlig"
},
"gl":
{
"name": "Galician",
"nativeName": "galego"
},
"gn":
{
"name": "Guaran\u00ed",
"nativeName": "Ava\u00f1e'\u1ebd"
},
"gu":
{
"name": "Gujarati",
"nativeName": "\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"
},
"gv":
{
"name": "Manx",
"nativeName": "Gaelg"
},
"ha":
{
"name": "Hausa",
"nativeName": "\u0647\u064e\u0648\u064f\u0633\u064e"
},
"he":
{
"name": "Hebrew",
"nativeName": "\u05e2\u05d1\u05e8\u05d9\u05ea"
},
"hi":
{
"name": "Hindi",
"nativeName": "\u0939\u093f\u0928\u094d\u0926\u0940"
},
"ho":
{
"name": "Hiri Motu",
"nativeName": "Hiri Motu"
},
"hr":
{
"name": "Croatian",
"nativeName": "hrvatski jezik"
},
"ht":
{
"name": "Haitian",
"nativeName": "Krey\u00f2l ayisyen"
},
"hu":
{
"name": "Hungarian",
"nativeName": "magyar"
},
"hy":
{
"name": "Armenian",
"nativeName": "\u0540\u0561\u0575\u0565\u0580\u0565\u0576"
},
"hz":
{
"name": "Herero",
"nativeName": "Otjiherero"
},
"ia":
{
"name": "Interlingua",
"nativeName": "Interlingua"
},
"id":
{
"name": "Indonesian",
"nativeName": "Indonesian"
},
"ie":
{
"name": "Interlingue",
"nativeName": "Interlingue"
},
"ig":
{
"name": "Igbo",
"nativeName": "As\u1ee5s\u1ee5 Igbo"
},
"ii":
{
"name": "Nuosu",
"nativeName": "\ua188\ua320\ua4bf Nuosuhxop"
},
"ik":
{
"name": "Inupiaq",
"nativeName": "I\u00f1upiaq"
},
"io":
{
"name": "Ido",
"nativeName": "Ido"
},
"is":
{
"name": "Icelandic",
"nativeName": "\u00cdslenska"
},
"it":
{
"name": "Italian",
"nativeName": "Italiano"
},
"iu":
{
"name": "Inuktitut",
"nativeName": "\u1403\u14c4\u1483\u144e\u1450\u1466"
},
"ja":
{
"name": "Japanese",
"nativeName": "\u65e5\u672c\u8a9e"
},
"jv":
{
"name": "Javanese",
"nativeName": "basa Jawa"
},
"ka":
{
"name": "Georgian",
"nativeName": "\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"
},
"kg":
{
"name": "Kongo",
"nativeName": "Kikongo"
},
"ki":
{
"name": "Kikuyu",
"nativeName": "G\u0129k\u0169y\u0169"
},
"kj":
{
"name": "Kwanyama",
"nativeName": "Kuanyama"
},
"kk":
{
"name": "Kazakh",
"nativeName": "\u049b\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"
},
"kl":
{
"name": "Kalaallisut",
"nativeName": "kalaallisut"
},
"km":
{
"name": "Khmer",
"nativeName": "\u1781\u17c1\u1798\u179a\u1797\u17b6\u179f\u17b6"
},
"kn":
{
"name": "Kannada",
"nativeName": "\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"
},
"ko":
{
"name": "Korean",
"nativeName": "\ud55c\uad6d\uc5b4"
},
"kr":
{
"name": "Kanuri",
"nativeName": "Kanuri"
},
"ks":
{
"name": "Kashmiri",
"nativeName": "\u0915\u0936\u094d\u092e\u0940\u0930\u0940"
},
"ku":
{
"name": "Kurdish",
"nativeName": "Kurd\u00ee"
},
"kv":
{
"name": "Komi",
"nativeName": "\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"
},
"kw":
{
"name": "Cornish",
"nativeName": "Kernewek"
},
"ky":
{
"name": "Kyrgyz",
"nativeName": "\u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430"
},
"la":
{
"name": "Latin",
"nativeName": "latine"
},
"lb":
{
"name": "Luxembourgish",
"nativeName": "L\u00ebtzebuergesch"
},
"lg":
{
"name": "Ganda",
"nativeName": "Luganda"
},
"li":
{
"name": "Limburgish",
"nativeName": "Limburgs"
},
"ln":
{
"name": "Lingala",
"nativeName": "Ling\u00e1la"
},
"lo":
{
"name": "Lao",
"nativeName": "\u0e9e\u0eb2\u0eaa\u0eb2"
},
"lt":
{
"name": "Lithuanian",
"nativeName": "lietuvi\u0173 kalba"
},
"lu":
{
"name": "Luba-Katanga",
"nativeName": "Tshiluba"
},
"lv":
{
"name": "Latvian",
"nativeName": "latvie\u0161u valoda"
},
"mg":
{
"name": "Malagasy",
"nativeName": "fiteny malagasy"
},
"mh":
{
"name": "Marshallese",
"nativeName": "Kajin M\u0327aje\u013c"
},
"mi":
{
"name": "M\u0101ori",
"nativeName": "te reo M\u0101ori"
},
"mk":
{
"name": "Macedonian",
"nativeName": "\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"
},
"ml":
{
"name": "Malayalam",
"nativeName": "\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"
},
"mn":
{
"name": "Mongolian",
"nativeName": "\u041c\u043e\u043d\u0433\u043e\u043b \u0445\u044d\u043b"
},
"mr":
{
"name": "Marathi",
"nativeName": "\u092e\u0930\u093e\u0920\u0940"
},
"ms":
{
"name": "Malay",
"nativeName": "\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"
},
"mt":
{
"name": "Maltese",
"nativeName": "Malti"
},
"my":
{
"name": "Burmese",
"nativeName": "\u1017\u1019\u102c\u1005\u102c"
},
"na":
{
"name": "Nauru",
"nativeName": "Ekakair\u0169 Naoero"
},
"nb":
{
"name": "Norwegian Bokm\u00e5l",
"nativeName": "Norsk bokm\u00e5l"
},
"nd":
{
"name": "Northern Ndebele",
"nativeName": "isiNdebele"
},
"ne":
{
"name": "Nepali",
"nativeName": "\u0928\u0947\u092a\u093e\u0932\u0940"
},
"ng":
{
"name": "Ndonga",
"nativeName": "Owambo"
},
"nl":
{
"name": "Dutch",
"nativeName": "Nederlands"
},
"nn":
{
"name": "Norwegian Nynorsk",
"nativeName": "Norsk nynorsk"
},
"no":
{
"name": "Norwegian",
"nativeName": "Norsk"
},
"nr":
{
"name": "Southern Ndebele",
"nativeName": "isiNdebele"
},
"nv":
{
"name": "Navajo",
"nativeName": "Din\u00e9 bizaad"
},
"ny":
{
"name": "Chichewa",
"nativeName": "chiChe\u0175a"
},
"oc":
{
"name": "Occitan",
"nativeName": "occitan"
},
"oj":
{
"name": "Ojibwe",
"nativeName": "\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"
},
"om":
{
"name": "Oromo",
"nativeName": "Afaan Oromoo"
},
"or":
{
"name": "Oriya",
"nativeName": "\u0b13\u0b21\u0b3c\u0b3f\u0b06"
},
"os":
{
"name": "Ossetian",
"nativeName": "\u0438\u0440\u043e\u043d \u00e6\u0432\u0437\u0430\u0433"
},
"pa":
{
"name": "Panjabi",
"nativeName": "\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40"
},
"pi":
{
"name": "P\u0101li",
"nativeName": "\u092a\u093e\u0934\u093f"
},
"pl":
{
"name": "Polish",
"nativeName": "j\u0119zyk polski"
},
"ps":
{
"name": "Pashto",
"nativeName": "\u067e\u069a\u062a\u0648"
},
"pt":
{
"name": "Portuguese",
"nativeName": "Portugu\u00eas"
},
"qu":
{
"name": "Quechua",
"nativeName": "Runa Simi"
},
"rm":
{
"name": "Romansh",
"nativeName": "rumantsch grischun"
},
"rn":
{
"name": "Kirundi",
"nativeName": "Ikirundi"
},
"ro":
{
"name": "Romanian",
"nativeName": "Rom\u00e2n\u0103"
},
"ru":
{
"name": "Russian",
"nativeName": "\u0420\u0443\u0441\u0441\u043a\u0438\u0439"
},
"rw":
{
"name": "Kinyarwanda",
"nativeName": "Ikinyarwanda"
},
"sa":
{
"name": "Sanskrit",
"nativeName": "\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"
},
"sc":
{
"name": "Sardinian",
"nativeName": "sardu"
},
"sd":
{
"name": "Sindhi",
"nativeName": "\u0938\u093f\u0928\u094d\u0927\u0940"
},
"se":
{
"name": "Northern Sami",
"nativeName": "Davvis\u00e1megiella"
},
"sg":
{
"name": "Sango",
"nativeName": "y\u00e2ng\u00e2 t\u00ee s\u00e4ng\u00f6"
},
"si":
{
"name": "Sinhala",
"nativeName": "\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"
},
"sk":
{
"name": "Slovak",
"nativeName": "sloven\u010dina"
},
"sl":
{
"name": "Slovene",
"nativeName": "slovenski jezik"
},
"sm":
{
"name": "Samoan",
"nativeName": "gagana fa'a Samoa"
},
"sn":
{
"name": "Shona",
"nativeName": "chiShona"
},
"so":
{
"name": "Somali",
"nativeName": "Soomaaliga"
},
"sq":
{
"name": "Albanian",
"nativeName": "Shqip"
},
"sr":
{
"name": "Serbian",
"nativeName": "\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"
},
"ss":
{
"name": "Swati",
"nativeName": "SiSwati"
},
"st":
{
"name": "Southern Sotho",
"nativeName": "Sesotho"
},
"su":
{
"name": "Sundanese",
"nativeName": "Basa Sunda"
},
"sv":
{
"name": "Swedish",
"nativeName": "svenska"
},
"sw":
{
"name": "Swahili",
"nativeName": "Kiswahili"
},
"ta":
{
"name": "Tamil",
"nativeName": "\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"
},
"te":
{
"name": "Telugu",
"nativeName": "\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"
},
"tg":
{
"name": "Tajik",
"nativeName": "\u0442\u043e\u04b7\u0438\u043a\u04e3"
},
"th":
{
"name": "Thai",
"nativeName": "\u0e44\u0e17\u0e22"
},
"ti":
{
"name": "Tigrinya",
"nativeName": "\u1275\u130d\u122d\u129b"
},
"tk":
{
"name": "Turkmen",
"nativeName": "T\u00fcrkmen"
},
"tl":
{
"name": "Tagalog",
"nativeName": "Wikang Tagalog"
},
"tn":
{
"name": "Tswana",
"nativeName": "Setswana"
},
"to":
{
"name": "Tonga",
"nativeName": "faka Tonga"
},
"tr":
{
"name": "Turkish",
"nativeName": "T\u00fcrk\u00e7e"
},
"ts":
{
"name": "Tsonga",
"nativeName": "Xitsonga"
},
"tt":
{
"name": "Tatar",
"nativeName": "\u0442\u0430\u0442\u0430\u0440 \u0442\u0435\u043b\u0435"
},
"tw":
{
"name": "Twi",
"nativeName": "Twi"
},
"ty":
{
"name": "Tahitian",
"nativeName": "Reo Tahiti"
},
"ug":
{
"name": "Uyghur",
"nativeName": "\u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"
},
"uk":
{
"name": "Ukrainian",
"nativeName": "\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"
},
"ur":
{
"name": "Urdu",
"nativeName": "\u0627\u0631\u062f\u0648"
},
"uz":
{
"name": "Uzbek",
"nativeName": "\u040e\u0437\u0431\u0435\u043a"
},
"ve":
{
"name": "Venda",
"nativeName": "Tshiven\u1e13a"
},
"vi":
{
"name": "Vietnamese",
"nativeName": "Ti\u1ebfng Vi\u1ec7t"
},
"vo":
{
"name": "Volap\u00fck",
"nativeName": "Volap\u00fck"
},
"wa":
{
"name": "Walloon",
"nativeName": "walon"
},
"wo":
{
"name": "Wolof",
"nativeName": "Wollof"
},
"xh":
{
"name": "Xhosa",
"nativeName": "isiXhosa"
},
"yi":
{
"name": "Yiddish",
"nativeName": "\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"
},
"yo":
{
"name": "Yoruba",
"nativeName": "Yor\u00f9b\u00e1"
},
"za":
{
"name": "Zhuang",
"nativeName": "Sa\u026f cue\u014b\u0185"
},
"zh":
{
"name": "Chinese",
"nativeName": "\u4e2d\u6587"
},
"zu":
{
"name": "Zulu",
"nativeName": "isiZulu"
}
}
i want to be able to set an option to prefer a certain artwork language for a certain parser
Upvote & Fund