-
Notifications
You must be signed in to change notification settings - Fork 105
Translation: improved formatting #407
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3682fd6
improved formatting
mrdavidorok e647259
updated
mrdavidorok eca99ae
updated
mrdavidorok b24ba5f
updated
mrdavidorok 9a9f367
updated
mrdavidorok 9f18394
update
mrdavidorok 06a5d1f
Update docs/troubleshooting/translations/fix_google_translate_errors.md
mrdavidorok da49f52
Update docs/troubleshooting/translations/fix_google_translate_errors.md
mrdavidorok 2257dc8
Merge branch 'main' into david/translations
PoojaB26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"label": "Translations" | ||
} |
59 changes: 59 additions & 0 deletions
59
docs/troubleshooting/translations/fix_google_translate_errors.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
keywords: ['translation', 'localization', 'google'] | ||
slug: /fix-google-translate-errors | ||
title: Fix Google Translate Errors | ||
--- | ||
|
||
# Fix Google Translate Errors | ||
|
||
FlutterFlow integrates with Google Translate to help localize your app automatically. This guide outlines how to identify and resolve common issues with the translation integration. | ||
|
||
:::info[Prerequisites] | ||
- Google Translate integration must be enabled for the project. | ||
- At least one supported language must be added in **App Settings > Localization**. | ||
- Review the [Google Translate Integration](/concepts/localization/#add-multi-language-support) guide for setup instructions. | ||
::: | ||
|
||
## Common Translation Issues and Fixes: | ||
|
||
- **Long Text Forms** | ||
**Problem:** Attempting to translate long blocks of text in forms or widgets can lead to API timeouts or failures. | ||
**Solution:** Remove long text elements and translate them outside of FlutterFlow using external tools like Google Translate. Once translated, manually paste the content back into your project. Ensure the input field is empty before retrying automatic translation. | ||
|
||
- **Special Characters** | ||
**Problem:** Some special characters—such as emojis, accented symbols, or non-Latin characters—may not be supported by the Google Translate API and can cause translation to fail. | ||
**Solution:** Review the text and replace or remove any unsupported special characters. Then attempt the translation again. | ||
|
||
- **Exceeding Language Limit** | ||
**Problem:** Adding more than 10 language options in your project may result in translation failure. | ||
**Solution:** Limit your project to a maximum of 10 supported languages for translation to work reliably with Google Translate. | ||
|
||
## Steps to Troubleshoot Translation Failures: | ||
mrdavidorok marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
1. **Locate the Problem Area** | ||
Identify the specific widget, page, or field where translation fails. Focusing on the problematic component will make resolution faster. | ||
|
||
2. **Use the Translate All Button** | ||
In **App Settings > Localization**, click the **Translate All** button. The process will stop at the first failure, indicating the field or element causing the issue. | ||
|
||
3. **Check Chrome Developer Console** | ||
Open the Chrome DevTools console and monitor for any error logs related to translation requests. This can help identify issues such as invalid characters, request failures, or unsupported content. | ||
|
||
4. **Remove and Isolate Problematic Text** | ||
Temporarily delete the suspected text and retry the translation. If the translation proceeds successfully, that text is likely causing the failure. Manually translate and reinsert it. | ||
|
||
:::note | ||
Using shorter, plain-text strings without special characters improves success rates with the Google Translate API. | ||
::: | ||
|
||
:::info[Additional Help] | ||
If the issue persists after troubleshooting, reach out to [[email protected]](mailto:[email protected]) with the following: | ||
|
||
- Screenshot or screen recording of the failure | ||
- Console error logs (if available) | ||
- A description of where the failure occurs (page/widget/text field) | ||
|
||
This will help the support team resolve the issue faster. | ||
::: | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.