"""
    @slash_command(name="old_translate")
    async def _trans_command(
        self,
        ctx,
        service: Option(
            str, "翻訳サービス/Select Translation Service", choices=["DeepL", "GoogleTrans"]
        ),
        language: Option(
            str,
            "翻訳先の言語/Select language you want to translate to",
            choices=["日本語", "English", "中文(简体)"],
        ),
        text: Option(
            str,
            "翻訳するテキスト(最大1024文字)/ Input text you want to translate(MAX:1024 Charactors)",
        ),
    ):
        print(f"slash,{ctx.guild.name}")
        if self.length_check(text):
            await ctx.respond("翻訳する文字は1024文字以下にしてください。", ephemeral=True)
            return
        else:
            pass
        if service == "DeepL":
            target = self.select_language(language)
            await ctx.defer(ephemeral=True)
            r = self.deepl_trans_request(text, target)
            if self.length_check_res(str(r)):
                await ctx.respond("翻訳結果が1024文字を超過しました。", ephemeral=True)
                return
            else:
                pass
            embeds, result_text = self.compose_embed(text, r, service)
            view = Result(embeds, result_text)
            tracker = ViewTracker(view, timeout=None)
            await tracker.track(InteractionProvider(ctx.interaction, ephemeral=True))
            return
        else:
            target = self.select_language(language)
            if target == "en-US":
                target = "en"
            if target == "zh":
                target = "zh-cn"
            await ctx.defer(ephemeral=True)
            r = self.google_trans_request(text, target)
            if self.length_check_res(str(r)):
                await ctx.respond("翻訳結果が1024文字を超過しました。", ephemeral=True)
                return
            else:
                pass
            embeds, result_text = self.compose_embed(text, r, service)
            view = Result(embeds, result_text)
            tracker = ViewTracker(view, timeout=None)
            await tracker.track(InteractionProvider(ctx.interaction, ephemeral=True))
            return

    def select_language(
        self, language: Literal["日本語", "English", "中文(简体)"]
    ) -> Literal["ja", "en-US", "zh"]:
        match language:
            case "日本語":
                return "ja"
            case "English":
                return "en-US"
            case "中文(简体)":
                return "zh"

    def deepl_trans_request(self, text: str, target: Literal["ja", "en-US", "zh"]):
        result = self.deepl_trans.translate_text(text, target_lang=target)
        return result

    def google_trans_request(self, text: str, target: Literal["ja", "en", "zh-cn"]):
        result = self.google_trans.translate(text, dest=target)
        return result

    def compose_embed(
        self,
        origin: str,
        result: Translated | TextResult,
        service: Literal["DeepL", "GoogleTrans"],
    ) -> tuple[list[discord.Embed], str]:
        embeds = []
        origin_embed = discord.Embed(
            color=15767485,
        )
        origin_embed.add_field(
            inline=False,
            name="[翻訳元/Origin]",
            value=origin,
        )
        if service == "DeepL":
            _src = deepl_lang_dic[result.detected_source_lang]
            origin_embed.set_footer(text=f"Language:{_src}")
        else:
            pass
        embeds.append(origin_embed)
        res_embed = discord.Embed(color=3447003)
        res_embed.set_footer(text=f"Translated by {service}")
        res_embed.add_field(
            inline=False,
            name="[翻訳結果/Result]",
            value=result.text,
        )
        embeds.append(res_embed)
        return embeds, result.text



    def length_check_res(self, result: str):
        if len(result) > 1024:
            return True
        else:
            return False
"""