Quetzalâs Role
Quetzal is designed to work with whichever systems and libraries you are already using. This means that we do NOT offer libraries or localization tools to be installed into 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 oneScope
As a reminder, these tools are designed for 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. Reinventing the wheel comes at great cost. Sooner or later you will realize that the wheel had hidden wisdom that you failed to capture. At that point, ripping your homebrewed system out and starting fresh can be tricky (and, worst of all, Quetzal does not yet support this!) 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. The up front ease is a trap- yes, installing a library for the first time can sometimes cause friction, but the payoff is worth it. Rely on an existing system at all costsRule of Thumb
Most of the time, there will be several localization patterns for your stack. Right off the bat, here are the ones you should look for:- 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.
- 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.
