Localizely logo
  • Home
  • Getting started
  • How it works
  • Pricing
  • FAQ
Sign up

Do I need to include the country code in the locale in Flutter? 

No.

However, if you want to cover more variations of the language (e.g. es-ES, es-MX, etc.), then it is required.
The same applies to script codes (e.g. zh-Hans, zh-Hant, etc.).

It should also be noted that it is a good practice to have a generic fallback language in order to avoid wrong language resolution.

Related Flutter internationalization questions:

Flutter internationalization tutorial:

Learn about internationalization in Flutter
Localizely logo
About
Free tools
Boring stuff
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
Newsletter
Copyrights 2026 © Localizely