Closed seriaati closed 2 years ago
is the regional indicator upper case or lower case? in the website, English is en-US but in your example.conf file, it's en-US and from what I've seen from most endpoints, hoyolab uses en-us
just want to confirm.
It needs to be in lower case if you want to use the Hoyolab endpoint directly. It does not matter for the config because I am always transforming it to lower case before sending the request.
alright.
the language code is not working, I've tried jp-JP
from the website, but the feeds are still in English
"language": "jp-jp",
"authors": [
{
"name": "Paimon"
}
],
"items": [
{
"id": "10034345",
"url": "https://www.hoyolab.com/article/10034345",
"title": "On-site Player Stories Worldwide is now available!",
"tags": [
"Info"
],
"content_html": "<p>Travelers!</p><p>The offline ad campaign with player stories is available worldwide! Let's take a look at some of the on-site pictures taken by players around the world!</p><p><br></p><p><br></p><p class=\"ql-align-center\"><a href=\"https://www.hoyolab.com/article/9291499\" rel=\"noopener noreferrer\" target=\"_blank\"><strong>>>> See more player stories <<<</strong></a></p><p><br></p><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/8848350d91f881a421c69c00ff8497e9_8286418367469198601.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/e81750494da85f5e688d4f616fd3a0ce_8592903957563148029.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/63b14ec58dc76769d3ea52cca2939451_3726017914945369483.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/7998a854aaa63164976a2f4b2114c017_4666689682038656696.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/fb045fa38749a942e4ac61e965e18df7_5163093416650001416.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/e234261e7347047c1e253c5b26974409_4973780413919599399.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/ff21a589e6b3cfd73366cd606de9fdf1_3359327746588354089.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/4d30fa05e804492d60902a8b184dbfcf_7796535281245116269.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/ff40d04c8f85b5129f808faffbc3caa3_8256169660355786848.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/1a410f275a392984dfe55294b02bc6a3_7394045172048893716.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/f2fb4222151f72560155f01bd9a10f4d_8223087309843857059.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/b29f50ff52126b732b8c3dd4c43e5035_3366283258865289113.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/17848fe6cbdc2889791f286729f7fa83_276853485345213278.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/3757848220ed064230da4d646cacb78c_4585578272589074788.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/62df741fb0a5806c7aa4e3bef7c92db6_3884313336617961176.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/c302e359ee74c15e4f28468d7fd100ef_6362243937060381405.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/7fbfdc71939c9ef267b0b832d6882bad_7171271556883228509.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/0d87c474e7950fdb8be5e2845524d48d_3651459412346173176.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/39d49eada86af14918b0d3e473846a42_7695143583532970484.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/3b0228e5954aaf733e6baf24c175a80a_5219996764150404766.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/e82b4d31146c4594704cb9bda0464331_6792023150498183160.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/86cd046273ae032acd17bf2223493bd1_7361844327248991121.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/e3ca3bc4e3d9137e8c26bae1543502fa_8552234943506567145.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/9b4d604f4a0b1a9bc99e4ca68473d529_8903552377049333705.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/932e13238432e08c69a1729d764b8512_632247807113029758.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/c58c9e18b951ca68cbad9d1934d78474_8012855200595711782.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/7645860f32af3fbef88da728e6fcbba5_8412378892334081063.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/06c06484b6f9c79174c707003dc1bb0b_7011385394142353177.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/89dd0ead85ae69f3f4ea42fd3bcbe89f_1240156114578130686.jpeg\"></div></div><div class=\"ql-image ql-align-center\"><div class=\"ql-image-wrp\"><img src=\"https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/25dc3c1d337054222f22324d464df7b1_3499997075991259270.jpeg\"></div></div><p><br></p>",
"date_published": "2022-09-30T20:00:12+08:00",
"image": "https://upload-os-bbs.hoyolab.com/upload/2022/09/30/0/8848350d91f881a421c69c00ff8497e9_8286418367469198601.jpeg"
},
English is the fallback language if either the article is not translated or the language code is not supported.
I have looked into it and the needed language code for Japanese that Hoyolab needs is ja-jp
.
This is different from the website I sent, but to be honest it is not in my control which codes Hoyolab uses, sorry.
But I will try to list which codes are used in the future when I have the time for it. For now you need to find out by
yourself. You can check with the dev tools of your browser for example if you visit Hoyolab. Look for the
x-rpc-language
request header.
I agree, there should be a table in the README that shows all the supported languages and their corresponding language codes.
These are the supported languages on Hoyolab:
To get the IETF BCP 47 language code, you could use this website.
Some articles might not be translated in every language and you would get the English version then.