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

Check Supported Languages #244

Open
m8406054 opened this issue Oct 18, 2023 · 0 comments
Open

Check Supported Languages #244

m8406054 opened this issue Oct 18, 2023 · 0 comments

Comments

@m8406054
Copy link

  • deep_translator version:
  • Python version:
  • Operating System:

Description

In "Check Supported Languages" section, you mentioned we can check the supported languages of each translator by calling the get_supported_languages function as below example.
langs_list = GoogleTranslator().get_supported_languages() # output: [arabic, french, english etc...]

What I Did

Problem1:
I would like to check the language supported list of LingueeTranslator and give a command like this,
langs_list = LingueeTranslator().get_supported_languages()

The VSCode throws an error like below
File "h:\my_prog\deep-translator\deep_translator\base.py", line 84, in _map_language_to_code
raise LanguageNotSupportedException(
deep_translator.exceptions.LanguageNotSupportedException: en --> No support for the provided language.

I also try PonsTranslator like below command, the error is same
langs_list = PonsTranslator().get_supported_languages()

Problem2:
I have tried my pdf file by following command and the content of abc.pdf have more than one page.
translated = GoogleTranslator(source='auto', target='chinese (traditional)').translate_file("abc.pdf")

the result of translated only have first page data, how can I get second and third pages translated data?
Do I need an extra processing to separate pdf file if content over one page?

I was wondering if you could do me a bit of a favor?

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

1 participant