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

Arabic translation is not available #322

Open
fasnakv opened this issue Mar 18, 2024 · 9 comments
Open

Arabic translation is not available #322

fasnakv opened this issue Mar 18, 2024 · 9 comments
Labels
task A task for code improvement

Comments

@fasnakv
Copy link

fasnakv commented Mar 18, 2024

Hello,

I have come across news regarding the DeepL Translation API, which announces the availability of Arabic language translation. However, when I attempt to use Arabic language in My typo3 site version 12, it does not appear on the list as shown in the figure.
why I couldn't use the Arabic language in my typo3 site,I have the pro deepl account
Screenshot 2024-03-18 165533

@fasnakv fasnakv added the task A task for code improvement label Mar 18, 2024
@calien666
Copy link
Member

Hi @fasnakv,
you're right, arabic is available since Janurary, but at hte moment, the DeepL API doesn't add the language key to the list. The reason is, that arabic is currently not avaliable for document translation.
As we fetch the list from the API to avoid manual updating on changed langauges, the language is currently not available.

Please take a look at https://developers.deepl.com/docs/api-reference/languages for more information.

@fasnakv
Copy link
Author

fasnakv commented Mar 18, 2024

Dear @calien666
Thank you for the quick and informative reply.

@weisgerberm
Copy link

weisgerberm commented Mar 18, 2024

You can add it manually to your sites config. I did it this way and it works:

  • hreflang: ar-SA
    direction: rtl
    title: Arabic
    locale: ar_SA.UTF-8
    base: 'https://www.fellow.dog/ar/'
    websiteTitle: fellow.dog
    navigationTitle: العربية
    fallbackType: fallback
    fallbacks: '2'
    flag: sa
    enabled: false
    languageId: 27
    deeplTargetLanguage: AR

@fasnakv
Copy link
Author

fasnakv commented Mar 20, 2024

@weisgerberm arabic Automatic translation is working?

@weisgerberm
Copy link

@fasnakv yes, as mentioned above

@Fasna-kv
Copy link

@weisgerberm i got an error invalid value as shown in the figure ,when i select it doesnt select as i wish

Screenshot 2024-03-20 165158

hreflang: ar-SA
direction: rtl
title: Arabic
locale: ar_SA.UTF-8
base: '/ar/'
websiteTitle: ''
navigationTitle: العربية
fallbackType: fallback
fallbacks: '2'
flag: sa
enabled: true
languageId: 27
deeplTargetLanguage: AR

@calien666
Copy link
Member

@Fasna-kv as the extension always checks against the API, this error will always stay there, until DeepL adds arabic to the language API.
As @weisgerberm wrote, the translation should work as expected, but be aware, your'e not able changing your Site Configuration via backend as this will reset your deeplTargetLanguage value.

@Fasna-kv
Copy link

Sorry, in my case, the translation is not working properly. The language is still in English rather than Arabic, as shown in the figure.

Screenshot 2024-03-21 131528

@phillued
Copy link

This workaround does not work for me either

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

No branches or pull requests

5 participants