# Integration Dashboard Source: https://quetzal.mintlify.app/en-US/dashboard/integration-dashboard Navigating the dashboard once you've linked a repository The Quetzal Integration Dashboard is a window to configure and monitor your integrations. It can be accessed by selecting ["Integrations"](https://getquetzal.com/dashboard/integrations) in the navigation menu of the main dashboard. ## Managing Your Integration The integration dashboard offers tools for configuring settings and monitoring the work of Quetzal. As your code is ingested, strings, translations, and text from the code will be visible. Changes made to content in the dasboard will be propagated to source control as configured. Quetzal features can be toggled under the Content Settings tab, and the rules concerning how Quetzal interacts with your source control can be configured under the Changes tab. ## Changes Tab This panel shows the branches currently being monitored and updated by Quetzal. Each branch listed here will be monitored for changes which affect localization in real time. The available actions: * Remove: Remove the branch from being monitored. Updates will stop. * Reset: Roll back any processing and have it run fresh. This might be needed if settings were modified extensively and the processing done has become outdated. The settings pane allows you to define the behavior of these branches. Rules can be set up to automatically process new branches. Changes can be set to be published via pull request, direct commits, or not at all. The "Automatically merge translations into main branch independently" option can be set to automatically merge new translations into main as they become ready. For more detail on the changes Quetzal will publish, check our committing changes documentation. New branches can be added three ways- Automation, the 'Add Branch' button, or by commenting /quetzal start on a pull request. [More Information](/en-US/install/committing-changes) ## Translations Tab The translations tab has the same structure as your main translations tab, but scoped to the current integration. The three panes give read and update access to: * Strings in your app and their translations * Glossary terms in your app and their translations * Proposed translation revisions to confirm or reject. ## Content Settings This tab defines the settings central to the behavior of your Quetzal integration. The primary feature set can be toggled on and off in the first General tab: * Perform translations: Quetzal will generate missing translations. If this is off, untranslated strings will stay that way. * Audit existing translation: Quetzal will propose revisions to existing translations. If this is off, existing translations will never be modified. * Wrap missing strings: Quetzal will modify your code to ensure all user-facing content is translated. If this is off, your code will never be modified. * Translate special content: Attempt to translate images and other advanced content (Beta) * Text Files: Update localized text files whenever their source updates (Beta) ### Wrapping Settings If "Wrap missing strings" is enabled, further settings will determine how and when Quetzal will update your code to translate missing strings. File types can be listed to scope updates to particular filetypes. Content Rules: Guidelines provided to the ai to limit the strings that end up being classified as needing translation. Refactoring: By default, we will refactor your code minimally to ensure localization works. This will never involve large rewrites, but rather small edits such as moving strings or adding mechanisms in scope. You can turn this off, or specify specific guidelines. ## Language Define which locales to translate into for this integration. There are also three sections for adding guidelines for the AI to consider: * For translating into each locale * For translating glossary terms * For auditing existing translations ## Keys Define guidelines for defining translation keys within your codebase. ## Advanced / LOCALIZATION.md The advanced tab lets you modify the LOCALIZATION.md file which defines the localization patterns the codebase adheres to. This is generated automatically on linking, but can be updated if any patterns are incorrect or incomplete. This document is referred to whenever code is updated by AI. If "Wrap missing strings" is disabled, this document is mostly irrelevant. # Choosing a Framework Source: https://quetzal.mintlify.app/en-US/install/choosing-a-framework Advice for picking a reliable localization pattern for your codebase ## Quetzal's Role Quetzal is designed to work with whichever systems and libraries you are already using. We do not provide libraries or tools to be installed in your code. Instead, you first decide on a localization scheme on your end, and Quetzal can take charge of managing it. This lets you have all of the freedom to implement localization in a way that works for you, but with the confidence that the legwork to maintain it will always be completed. However, we have some tips in picking the best framework, if you do not yet have one ## Scope As a reminder, these tools and tips are designed for translating static strings defined within your codebase. If you have other content in need of translating, you can use our API. ## The Worst Thing You Could Possibly Do The single worst possible choice for code localization is to try to roll your own, or localize without relying on an existing system. We see countless codebases with entirely novel and custom translation mechanisms, and they very often have blind spots which force heinous patterns for translating strings down the line. It is strongly recommended to use a battletested solution, even if it seems like overkill at the start. ## Rule of Thumb Most of the time, there will be several localization patterns for your stack. We recommend: * First Party Any time there is a localization scheme baked into the stack (ie, Apple's Swift localization, Android's string resource loading, packages like @angular/localize) it's usually a sign that it is maintained specifically for your use case. Unless you have a good reason, opt for this first. If no first party scheme exists, you should look for something: * Open Source: If no good first party solution exists, you are looking for the most beloved third-party open source solution. There is usually only a couple. ## Variation Between Localization Mechanisms There are a few ways in which localization patterns differ, and while all have their place, here are some thoughts on the differences you will encounter in practice: ### Key vs. Exact Text Most localization systems rely on keys to map to text. So the text "Hello!" might map to "greeting.standard", and your code will refer to "greeting.standard" as the primary unit being translated. Some codebases will try to avoid this, and instead use the raw text as the unit of translation. This can make code more readable, and reduces cognitive load (you don't need to keep track of another data point, a key) However, we highly recommend you use keys, even if your solution supports a plaintext approach. There are two reasons: 1- Complex strings can run into formatting issues 2- Disambiguating the translation content from the translation id makes updates more graceful If code readability is a concern, often you can include the plaintext version as a placeholder at the moment of translation. Many libraries offer support for both patterns, so it is crucial to think through which you want to use before handing your code off to Quetzal. ### Extraction vs. Manual Updates Some systems rely on developers manually seeding translation files. Other systems have a script which parses your code, and builds translation files automatically. Other systems allow for both. Both systems have their place and work just fine. Extraction based systems are stricter about code structure, but require less upkeep. Since Quetzal will manage your translation files regardless, we would suggest you go with a system that relies on manual updates. This gives us an easier time updating the files ourselves. In some cases, extraction based systems also demand more cognitive load to ensure compliance, which comes with limited benefit when using Quetzal. ### String formatting For complex strings with plurals or other dynamic values, your library will often have their own rules and patterns for encoding strings. At Quetzal, we love the [ICU Message Format](https://unicode-org.github.io/icu/userguide/format_parse/messages/) which is the best attempt at standardizing these rules. While we support all formatting schemes, make sure the format is flexible enough to handle the structure and variance you will need. # Committing Changes Source: https://quetzal.mintlify.app/en-US/install/committing-changes How Quetzal commits changes to your codebase Quetzal publishes changes to your codebase via source control. The timing and structure of the changes can be set up to best fit your team's workflow. ## What Gets Published? New translations, translations * New translations * Translation revisions * Code updates for localization coverage These features can be turned on and off in your integration's settings. ## How Changes Are Published Changes are committed to your codebase via Github commits. By default, changes are published to a single branch by a single localization focused pull request. You can change this to instead publish by direct commits ## Active branches By default, Quetzal only monitors a single branch and publishes changes to it. You can add new branches to track by setting a filter for which new branches to process, or by invoking Quetzal in the comments of a pull request. Branches can also be added manually via the dashboard. Active branches are processed and updated by Quetzal in real time, ensuring localization is up to date. ## Translation Only Branch You have the option to split translation updates from other code updates. This would allow translation changes to be automatically merged into main, while leaving other code changes to be published via a different pattern. ## Manual Updates If you would prefer to update your codebase manually, you can instead pull changes via our API. Changes can be queried and worked into your workflow on your own for maximum control. # Is My Stack Supported? Source: https://quetzal.mintlify.app/en-US/install/is-my-stack-supported Check to see whether Quetzal is compatible with your exact stack. ## Checklist Quetzal is designed to work with all stacks and all localization patterns. However, there are still some requirements. ## Translatable Content Quetzal is meant to be used to translate static strings defined in your codebase. For anything else, you can use our API. This means UI Strings, documents of pure text, and other strings defined in files of code. Images, user generated strings, or other strings encountered at runtime are not in the scope of these tools. ## Supported Formats At present, Quetzal works with the following stacks: * Javascript/Typescript * Next.js/React * Swift * Kotlin * Java * Python * HTML/XML * Text documents (.txt, .mdx, etc.) At this time, we do NOT support: * Vue/Svelte Quetzal is designed to handle all stacks gracefully. As such, if your framework is not listed, but you are interested, please reach out. We are excited to bring Quetzal to life for your stack. ## Supported Translation Libraries Quetzal should work with all translation libraries and patterns. However, Quetzal may struggle to navigate anti-patterns if your localization framework is poorly set up or poorly defined. If you are using a translation framework that has limited capabilities, Quetzal may struggle to localize properly given the constraints. Common blindspots of weak localization patterns include: * Pluralization * Dynamic content * Fragile string keying mechanism * Fragmented strings Most reputable translation mechanisms will handle this fine. Check out our tips on [choosing a framework](/en-US/install/choosing-a-framework). During initial setup, you can review and update a generated LOCALIZATION.md file to align Quetzal with the practices that work best for your team. ## Raw Text files Our support for translated content in raw text content is currently in beta. If you have documentation, blog posts, or other files written as text or markdown where multiple versions exist for each locale, Quetzal may struggle to hook into the required mechanisms. Monitor such an integration closely to ensure the initial behavior is correct. # Linking a Repository Source: https://quetzal.mintlify.app/en-US/install/linking-a-repository Installing Quetzal into your codebase ## Integrating with Quetzal Once your codebase is linked with Quetzal, we can begin delivering localization updates via source control. ## Prerequisites Quetzal currently only supports repositories hosted on GitHub. Verify that your stack is supported by reading our supported stacks. ## Linking a Repository Once you've [signed up](https://getquetzal.com/signup), you can [link a repository](https://getquetzal.com/onboarding) You will be prompted to install the Quetzal GitHub app to grant access to one or more repositories. Once installed, you will be prompted to select one to complete the installation with. ## Selecting Directory You will be prompted to scope the Quetzal integration to specific directories. If you have a repo with multiple distinct localization patterns (ie, a monorepo) it is best to set up multiple integrations in the same repo with directories which do not overlap. If your repository only has the same localization patterns throughout, you can leave this blank. ## Defining Locales You will be prompted to define which locales you would like to support for this integration. If the locales are already defined in the codebase, you can check off "Use locales currently in use in the codebase" Otherwise, this is your opportunity to define the set of languages. This can be updated later. ## Next Steps You will be prompted that the link is complete, and brought to the [integration dashboard](https://getquetzal.com/dashboard/integration) Quetzal will take some time to review your code and plan for next steps. Here you can monitor progress and configure the behavior of your integration. For a complete guide to using this dashboard, read our Integration Dashboard spec. # Setting Up Quetzal Source: https://quetzal.mintlify.app/en-US/start/existing-localization Integrating with Quetzal with an existing localization system ## Integrating With Quetzal If your codebase has an existing localization system, Quetzal can maintain it moving forward. Quetzal will adhere to your existing practices to update and audit localization. You can begin by [linking your codebase](/en-US/install/linking-a-repository). This will create an integration to provide localization uppdates to your code via git. ## What Will Quetzal Do? Once linked, Quetzal will translate future content, verify the quality of existing translations, and update your code to ensure full translation coverage. This integration currently only supports static content. Content generated at runtime, translated or otherwise, will not be affected by this integration. To translate runtime content, you can use your API. Features can be toggled in settings once a repository is linked. ## Compatibility To make sure your stack works with Quetzal ahead of time, you can [check compatibility with Quetzal](/en-US/install/is-my-stack-supported). # First Time Localization Source: https://quetzal.mintlify.app/en-US/start/first-time-localization Integrating with Quetzal without an existing localization system Heads up: For Swift applications, no existing localization is required to localize with Quetzal. Swift has standardized localization patterns that will be adhered to. ## Setting Up Localization Quetzal hooks into your existing localization patterns, but it does not provide, install, or set this up for you. Before linking your codebase with Quetzal, you should begin by setting up a localization system and translating a few strings to test. Quetzal will take it from there. Once the ground work for a localization is in your code, you can move on to [linking your codebase](/en-US/install/linking-a-repository). ## Resources For help with choosing a localization scheme which is a good fit for your codebase, you can read [our tips](/en-US/install/choosing-a-framework). To make sure your stack works with Quetzal ahead of time, you can [check compatibility with Quetzal](/en-US/install/is-my-stack-supported). # Getting Started Source: https://quetzal.mintlify.app/en-US/start/getting-started Integrate with Quetzal in minutes ## Welcome to Quetzal! This documentation will walk you through how to set up and use Quetzal in with your stack. ## Codebase Localization Quetzal is designed to maintain localization for static content in your application. Integration works a little differently depending on the current state of your code: No content in my codebase is translated, and I am looking to start There is a system for localization, but it is not used much or at all. There is already a system for localization and it is used extensively. ## Generated Content Localization For translating non-static content (user generated content, runtime generated content), our API is available. Talk with us to make sure the context profile is a good fit for Quetzal. ### Integration Steps Integrating generally takes four steps: [Sign up](https://getquetzal.com/signup) for Quetzal and you will be prompted to install the Quetzal GitHub App. If you already have an account, you can [link a repository directly](https://getquetzal.com/onboarding) Our initial analysis and sync will determine compatibility. Use the [Integration Dashboard](https://getquetzal.com/dashboard) to confirm settings. Going forward, localization updates will be published to git via pull requests or direct commits