Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add language-change setting ? #174

Open
gongbenhua opened this issue Sep 27, 2023 · 2 comments
Open

Can you add language-change setting ? #174

gongbenhua opened this issue Sep 27, 2023 · 2 comments

Comments

@gongbenhua
Copy link

Hi, Friends. I'm a dtcg player from China. In China there are lots of dtcg player who want to play on your simulater. But they may not familar with English like me. Can you add language-change setting so that oue chinese player can play as well. I konw a little about python and java code. If you need, I can help you a little

@WE-Kaito
Copy link
Owner

WE-Kaito commented Oct 4, 2023

Thanks for your interest in this project! 😊
Unfortunately language-settings are out of scope as I merely fetch the whole card data from digimoncard.io API (plan on changing it to a similar provider, soon) and writing/maintaining an own database would be a massive load of work.
However, if there was a chinese website which also provides the card library in json format with the same / similar card model, this could be an option for the future for collaborating devs to implement, when the game is feature-complete

@Lantern-r
Copy link
Contributor

Lantern-r commented Apr 22, 2024

I think you can fetch the whole card data from
https://api.digicamoe.com/api/cdb/cards(the api of https://app.digicamoe.cn/). For example,
https://api.digicamoe.com/api/cdb/cards/EX-07/EX7-017/C, you may get the information about EX7-017

{
    "data": {
        "card_id": 7485,
        "card_pack": 173,
        "serial": "EX7-017",
        "sub_serial": "04",
        "japName": "ユキアグモン",
        "scName": "雪亚古兽",
        "rarity": "C",
        "type": "数码兽卡",
        "color": [
            "蓝"
        ],
        "level": "3",
        "cost": "3",
        "cost_1": "0",
        "evo_cond": null,
        "DP": "2000",
        "overflow": null,
        "grade": "成长期",
        "attribute": "疫苗",
        "class": [
            "恐龙型"
        ],
        "effect": "≪冰装≫(这只数码兽在与安防数码兽以外的战斗中不比较DP而是比较进化源的张数)",
        "evo_cover_effect": "【攻击时】[1回合1次]将对手的1只数码兽的最上方的1张进化源丢弃。",
        "security_effect": "-",
        "rule_text": "特征:持有类型「冰雪型(氷雪型)」。",
        "overflow_text": null,
        "include_info": null,
        "rarity$SC": "C",
        "package": {
            "pack_id": 173,
            "pack_prefix": "EX-07",
            "pack_name": "额外补充包 数码兽界放者",
            "pack_japName": "エクストラブースター デジモンリベレイター",
            "pack_enName": "",
            "language": "ja",
            "pack_releaseDate": "2024/05/31",
            "pack_remark": "",
            "pack_cover": "173.MeiERCFJmG8.jpg"
        },
        "images": [
            {
                "id": 12350,
                "card_id": 7485,
                "img_rare": "",
                "img_path": "card/7485_12350.MMeG0mLnNyV.jpg",
                "thumb_path": "",
                "data": {}
            }
        ],
        "packs": [
            {
                "card_id": 7485,
                "serial": "EX7-017",
                "scName": "雪亚古兽",
                "japName": "ユキアグモン",
                "card_pack": 173,
                "include_info": null,
                "rarity": "C",
                "rarity$SC": "C",
                "package": {
                    "pack_id": 173,
                    "pack_prefix": "EX-07",
                    "pack_name": "额外补充包 数码兽界放者",
                    "language": "ja"
                },
                "images": [
                    {
                        "id": 12350,
                        "card_id": 7485,
                        "img_rare": "",
                        "img_path": "card/7485_12350.MMeG0mLnNyV.jpg",
                        "thumb_path": "",
                        "data": {}
                    }
                ]
            }
        ],
        "decks": [],
        "faqs": []
    },
    "message": "",
    "success": true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants