localingos 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "localingos",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "CLI tool to sync translations with Localingos",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -264,6 +264,13 @@ export function defineMessages<K extends string>(
264
264
  }
265
265
  \`\`\`
266
266
 
267
+ - **Add a language/locale selector** to the app UI in the most appropriate, visible location (e.g., navigation bar, header, settings page, or footer). The selector must:
268
+ - Display the available locales based on the translation files present in \`${outputDir}/\`
269
+ - Allow users to switch languages at runtime
270
+ - Persist the user's language preference (e.g., localStorage)
271
+ - Use the project's i18n framework to change the active locale (e.g., \`i18n.changeLanguage(locale)\` for i18next)
272
+ - Show locale names in their native language when possible (e.g., "Español" not "Spanish", "Deutsch" not "German")
273
+ - If a locale selector component already exists in the project, update it rather than creating a duplicate`;
267
274
  ---
268
275
 
269
276
  ### Step 2: For EVERY component with translatable strings, create a co-located \`*${msgExt}\` file