Open yamaryu0508 opened 6 years ago
Thank you for the reporting issue. I don't know cybozu.com
is only Japan!
There is an issue related to the region (language setting?) (#27). So I think to get the region information (ja
, cn
, en
?) as an argument will be suitable for Account
.
if
statement at the time. The process is a little boring.What do you think about this?
I will share what I know about the language settings in kintone.
The language settings of the API is the same as the language settings of the user who authenticated the API. By default, on all regions, all user's Language settings are set to "Use Web Browser settings". If you were to call an API using that user from a server, the server will not know what language to call the API in. In this case, it looks at the domain's "Localization" language settings (the system locale). This is information is saved within the Administrator settings. The API will call the API in that language automatically.
Different regions have different "Localization" language settings set on them, by default: cybozu.com (JP region) -> English kintone.com (US region) -> Japanese cybozu.cn (CN region) -> Simplified Chinese
[Case 1.] US region user has their language settings set as "Use Web Browser settings" -> API from server will be called in English
[Case 2.] US region user has their language settings set as "Japanese" -> API from server will be called in Japanese
[Case 3.] JP region user has their language settings set as "Use Web Browser settings" -> API from server will be called in Japanese
[Case 4.] CN region user has their language settings set as "English" -> API from server will be called in English
There are many things to consider when calling APIs and handling languages. I have summed up some examples in kintone here https://qiita.com/will-yama/items/662de9d8cb8f42343ef1
I think yamaryu0508's suggestion is a good place to start off. If won't cover every issue, but I think we can fix other issues as we go on.
@will-yama Thank you for letting me know. It seems to be difficult to determine the language setting explicitly. So I'll implement the simple @yamaryu0508 solution.
@icoxfog417 Thank you! I will plan to play around with the SDK on a US region environment :)
Now just Japanese region is available. Could you please support the US and Chinese region like go-kintone or cli-kintone ?
Here is my idea.
Thanks.