@intlayer/docs 7.5.0 → 7.5.2-canary.0

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.
Files changed (111) hide show
  1. package/README.md +19 -19
  2. package/blog/ar/l10n_platform_alternative/Lokalise.md +80 -0
  3. package/blog/ar/l10n_platform_alternative/crowdin.md +86 -0
  4. package/blog/ar/l10n_platform_alternative/phrase.md +82 -0
  5. package/blog/de/l10n_platform_alternative/Lokalise.md +84 -0
  6. package/blog/de/l10n_platform_alternative/crowdin.md +80 -0
  7. package/blog/de/l10n_platform_alternative/phrase.md +82 -0
  8. package/blog/en/l10n_platform_alternative/Lokalise.md +80 -0
  9. package/blog/en/l10n_platform_alternative/crowdin.md +80 -0
  10. package/blog/en/l10n_platform_alternative/phrase.md +78 -0
  11. package/blog/en-GB/l10n_platform_alternative/Lokalise.md +80 -0
  12. package/blog/en-GB/l10n_platform_alternative/crowdin.md +80 -0
  13. package/blog/en-GB/l10n_platform_alternative/phrase.md +78 -0
  14. package/blog/es/l10n_platform_alternative/Lokalise.md +80 -0
  15. package/blog/es/l10n_platform_alternative/crowdin.md +86 -0
  16. package/blog/es/l10n_platform_alternative/phrase.md +84 -0
  17. package/blog/fr/l10n_platform_alternative/Lokalise.md +84 -0
  18. package/blog/fr/l10n_platform_alternative/crowdin.md +86 -0
  19. package/blog/fr/l10n_platform_alternative/phrase.md +91 -0
  20. package/blog/hi/l10n_platform_alternative/Lokalise.md +86 -0
  21. package/blog/hi/l10n_platform_alternative/crowdin.md +84 -0
  22. package/blog/hi/l10n_platform_alternative/phrase.md +78 -0
  23. package/blog/id/l10n_platform_alternative/Lokalise.md +86 -0
  24. package/blog/id/l10n_platform_alternative/crowdin.md +84 -0
  25. package/blog/id/l10n_platform_alternative/phrase.md +89 -0
  26. package/blog/it/l10n_platform_alternative/Lokalise.md +84 -0
  27. package/blog/it/l10n_platform_alternative/crowdin.md +86 -0
  28. package/blog/it/l10n_platform_alternative/phrase.md +82 -0
  29. package/blog/ja/l10n_platform_alternative/Lokalise.md +80 -0
  30. package/blog/ja/l10n_platform_alternative/crowdin.md +80 -0
  31. package/blog/ja/l10n_platform_alternative/phrase.md +78 -0
  32. package/blog/ko/l10n_platform_alternative/Lokalise.md +80 -0
  33. package/blog/ko/l10n_platform_alternative/crowdin.md +86 -0
  34. package/blog/ko/l10n_platform_alternative/phrase.md +78 -0
  35. package/blog/pl/l10n_platform_alternative/Lokalise.md +84 -0
  36. package/blog/pl/l10n_platform_alternative/crowdin.md +80 -0
  37. package/blog/pl/l10n_platform_alternative/phrase.md +82 -0
  38. package/blog/pt/l10n_platform_alternative/Lokalise.md +80 -0
  39. package/blog/pt/l10n_platform_alternative/crowdin.md +86 -0
  40. package/blog/pt/l10n_platform_alternative/phrase.md +78 -0
  41. package/blog/ru/l10n_platform_alternative/Lokalise.md +80 -0
  42. package/blog/ru/l10n_platform_alternative/crowdin.md +86 -0
  43. package/blog/ru/l10n_platform_alternative/phrase.md +82 -0
  44. package/blog/tr/l10n_platform_alternative/Lokalise.md +80 -0
  45. package/blog/tr/l10n_platform_alternative/crowdin.md +80 -0
  46. package/blog/tr/l10n_platform_alternative/phrase.md +89 -0
  47. package/blog/vi/l10n_platform_alternative/Lokalise.md +87 -0
  48. package/blog/vi/l10n_platform_alternative/crowdin.md +80 -0
  49. package/blog/vi/l10n_platform_alternative/phrase.md +82 -0
  50. package/blog/zh/l10n_platform_alternative/Lokalise.md +80 -0
  51. package/blog/zh/l10n_platform_alternative/crowdin.md +84 -0
  52. package/blog/zh/l10n_platform_alternative/phrase.md +84 -0
  53. package/dist/cjs/generated/blog.entry.cjs +57 -0
  54. package/dist/cjs/generated/blog.entry.cjs.map +1 -1
  55. package/dist/esm/generated/blog.entry.mjs +57 -0
  56. package/dist/esm/generated/blog.entry.mjs.map +1 -1
  57. package/dist/types/generated/blog.entry.d.ts +3 -0
  58. package/dist/types/generated/blog.entry.d.ts.map +1 -1
  59. package/docs/ar/configuration.md +7 -0
  60. package/docs/ar/intlayer_with_nuxt.md +2 -2
  61. package/docs/ar/packages/intlayer/getLocaleName.md +17 -1
  62. package/docs/de/configuration.md +7 -0
  63. package/docs/de/intlayer_with_nuxt.md +2 -2
  64. package/docs/de/packages/intlayer/getLocaleName.md +17 -1
  65. package/docs/en/configuration.md +10 -0
  66. package/docs/en/intlayer_with_nuxt.md +2 -2
  67. package/docs/en/packages/intlayer/getLocaleName.md +17 -0
  68. package/docs/en-GB/configuration.md +7 -0
  69. package/docs/en-GB/intlayer_with_nuxt.md +2 -2
  70. package/docs/en-GB/packages/intlayer/getLocaleName.md +17 -1
  71. package/docs/es/configuration.md +7 -0
  72. package/docs/es/intlayer_with_nuxt.md +2 -2
  73. package/docs/es/packages/intlayer/getLocaleName.md +17 -1
  74. package/docs/fr/configuration.md +7 -0
  75. package/docs/fr/intlayer_with_nuxt.md +2 -2
  76. package/docs/fr/packages/intlayer/getLocaleName.md +17 -1
  77. package/docs/hi/configuration.md +7 -0
  78. package/docs/hi/intlayer_with_nuxt.md +2 -2
  79. package/docs/hi/packages/intlayer/getLocaleName.md +17 -1
  80. package/docs/id/configuration.md +7 -0
  81. package/docs/id/intlayer_with_nuxt.md +2 -2
  82. package/docs/id/packages/intlayer/getLocaleName.md +17 -0
  83. package/docs/it/configuration.md +7 -0
  84. package/docs/it/intlayer_with_nuxt.md +2 -2
  85. package/docs/it/packages/intlayer/getLocaleName.md +17 -1
  86. package/docs/ja/configuration.md +7 -0
  87. package/docs/ja/intlayer_with_nuxt.md +2 -2
  88. package/docs/ja/packages/intlayer/getLocaleName.md +17 -1
  89. package/docs/ko/configuration.md +7 -0
  90. package/docs/ko/intlayer_with_nuxt.md +2 -2
  91. package/docs/ko/packages/intlayer/getLocaleName.md +17 -1
  92. package/docs/pl/configuration.md +7 -0
  93. package/docs/pl/intlayer_with_nuxt.md +2 -2
  94. package/docs/pl/packages/intlayer/getLocaleName.md +17 -0
  95. package/docs/pt/configuration.md +7 -0
  96. package/docs/pt/intlayer_with_nuxt.md +2 -2
  97. package/docs/pt/packages/intlayer/getLocaleName.md +17 -1
  98. package/docs/ru/configuration.md +7 -0
  99. package/docs/ru/intlayer_with_nuxt.md +2 -2
  100. package/docs/ru/packages/intlayer/getLocaleName.md +17 -1
  101. package/docs/tr/configuration.md +7 -0
  102. package/docs/tr/intlayer_with_nuxt.md +2 -2
  103. package/docs/tr/packages/intlayer/getLocaleName.md +17 -0
  104. package/docs/vi/configuration.md +7 -0
  105. package/docs/vi/intlayer_with_nuxt.md +2 -2
  106. package/docs/vi/packages/intlayer/getLocaleName.md +17 -0
  107. package/docs/zh/configuration.md +7 -0
  108. package/docs/zh/intlayer_with_nuxt.md +2 -2
  109. package/docs/zh/packages/intlayer/getLocaleName.md +17 -1
  110. package/package.json +6 -6
  111. package/src/generated/blog.entry.ts +57 -0
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: Agregar polyfills para React Native y entornos más antiguos
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: Historial inicial
@@ -33,7 +36,6 @@ La función `getLocaleName` devuelve el nombre localizado de un locale dado (`ta
33
36
  ## Parámetros
34
37
 
35
38
  - `displayLocale: Locales`
36
-
37
39
  - **Descripción**: El locale en el que se mostrará el nombre del locale objetivo.
38
40
  - **Tipo**: Enum o cadena que representa locales válidos.
39
41
 
@@ -117,3 +119,17 @@ getLocaleName("unknown-locale"); // Salida: "Unknown locale"
117
119
  - La función devuelve por defecto el propio nombre del `displayLocale`.
118
120
  - **Traducciones faltantes:**
119
121
  - Si `localeNameTranslations` no contiene una entrada para el `targetLocale` o el `displayLocale` específico, la función recurre al `ownLocalesName` o devuelve `"Unknown locale"`.
122
+
123
+ ## Polyfills para React Native y entornos más antiguos
124
+
125
+ La función `getLocaleName` depende de la API `Intl.DisplayNames`, que no está disponible en React Native o entornos JavaScript más antiguos. Si estás usando `getLocaleName` en estos entornos, necesitas agregar polyfills.
126
+
127
+ Importa los polyfills temprano en tu aplicación, idealmente en tu archivo de entrada (por ejemplo, `index.js`, `App.tsx`, o `main.tsx`):
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ Para más detalles, consulta la [documentación de polyfills de FormatJS](https://formatjs.io/docs/polyfills/intl-displaynames/).
@@ -519,6 +519,13 @@ Intlayer prend en charge plusieurs fournisseurs d'IA pour une flexibilité et un
519
519
  - _Par défaut_ : Aucun
520
520
  - _Description_ : Fournit un contexte supplémentaire sur votre application au modèle d'IA, l'aidant à générer des traductions plus précises et contextuellement appropriées. Cela peut inclure des informations sur le domaine de votre application, le public cible, le ton ou une terminologie spécifique.
521
521
 
522
+ - **baseURL** :
523
+ - _Type_ : `string`
524
+ - _Par défaut_ : Aucun
525
+ - _Description_ : L'URL de base pour l'API d'IA.
526
+ - _Exemple_ : `'https://api.openai.com/v1'`
527
+ - _Note_ : Peut être utilisé pour pointer vers un point de terminaison d'API d'IA local ou personnalisé.
528
+
522
529
  ### Configuration de la compilation
523
530
 
524
531
  Paramètres qui contrôlent la manière dont Intlayer optimise et construit l'internationalisation de votre application.
@@ -373,11 +373,11 @@ import { useIntlayer } from "vue-intlayer";
373
373
  const content = useIntlayer("home-page");
374
374
 
375
375
  useHead({
376
- title: content.metaTitle.value,
376
+ title: content.metaTitle.raw,
377
377
  meta: [
378
378
  {
379
379
  name: "description",
380
- content: content.metaDescription.value,
380
+ content: content.metaDescription.raw,
381
381
  },
382
382
  ],
383
383
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: Ajout de polyfills pour React Native et les environnements plus anciens
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: Historique initial
@@ -33,7 +36,6 @@ La fonction `getLocaleName` renvoie le nom localisé d'une locale donnée (`targ
33
36
  ## Paramètres
34
37
 
35
38
  - `displayLocale: Locales`
36
-
37
39
  - **Description** : La locale dans laquelle le nom de la locale cible sera affiché.
38
40
  - **Type** : Enum ou chaîne de caractères représentant des locales valides.
39
41
 
@@ -117,3 +119,17 @@ getLocaleName("unknown-locale"); // Résultat : "Locale inconnue"
117
119
  - La fonction retourne par défaut le nom propre du `displayLocale`.
118
120
  - **Traductions manquantes :**
119
121
  - Si `localeNameTranslations` ne contient pas d'entrée pour le `targetLocale` ou le `displayLocale` spécifique, la fonction revient au `ownLocalesName` ou retourne `"Unknown locale"`.
122
+
123
+ ## Polyfills pour React Native et les environnements plus anciens
124
+
125
+ La fonction `getLocaleName` dépend de l'API `Intl.DisplayNames`, qui n'est pas disponible dans React Native ou les environnements JavaScript plus anciens. Si vous utilisez `getLocaleName` dans ces environnements, vous devez ajouter des polyfills.
126
+
127
+ Importez les polyfills tôt dans votre application, idéalement dans votre fichier d'entrée (par exemple, `index.js`, `App.tsx`, ou `main.tsx`) :
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ Pour plus de détails, consultez la [documentation des polyfills FormatJS](https://formatjs.io/docs/polyfills/intl-displaynames/).
@@ -515,6 +515,13 @@ Intlayer बेहतर लचीलापन और विकल्प के
515
515
  - _डिफ़ॉल्ट_: कोई नहीं
516
516
  - _विवरण_: आपके एप्लिकेशन के बारे में अतिरिक्त संदर्भ AI मॉडल को प्रदान करता है, जिससे यह अधिक सटीक और संदर्भानुसार उपयुक्त अनुवाद उत्पन्न कर सके। इसमें आपके ऐप के डोमेन, लक्षित दर्शक, टोन, या विशिष्ट शब्दावली की जानकारी शामिल हो सकती है।
517
517
 
518
+ - **baseURL**:
519
+ - _प्रकार_: `string`
520
+ - _डिफ़ॉल्ट_: कोई नहीं
521
+ - _विवरण_: AI API के लिए आधार URL।
522
+ - _उदाहरण_: `'https://api.openai.com/v1'`
523
+ - _नोट_: स्थानीय या कस्टम AI API एंडपॉइंट को इंगित करने के लिए उपयोग किया जा सकता है।
524
+
518
525
  ### बिल्ड कॉन्फ़िगरेशन
519
526
 
520
527
  सेटिंग्स जो नियंत्रित करती हैं कि Intlayer आपके एप्लिकेशन की अंतरराष्ट्रीयकरण को कैसे अनुकूलित और बिल्ड करता है।
@@ -373,11 +373,11 @@ import { useIntlayer } from "vue-intlayer";
373
373
  const content = useIntlayer("home-page");
374
374
 
375
375
  useHead({
376
- title: content.metaTitle.value,
376
+ title: content.metaTitle.raw,
377
377
  meta: [
378
378
  {
379
379
  name: "description",
380
- content: content.metaDescription.value,
380
+ content: content.metaDescription.raw,
381
381
  },
382
382
  ],
383
383
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: React Native और पुराने वातावरण के लिए polyfills जोड़ें
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: प्रारंभिक इतिहास
@@ -33,7 +36,6 @@ history:
33
36
  ## पैरामीटर
34
37
 
35
38
  - `displayLocale: Locales`
36
-
37
39
  - **विवरण**: वह लोकल जिसमें लक्ष्य लोकल का नाम प्रदर्शित किया जाएगा।
38
40
  - **प्रकार**: वैध लोकल का प्रतिनिधित्व करने वाला Enum या स्ट्रिंग।
39
41
 
@@ -117,3 +119,17 @@ getLocaleName("unknown-locale"); // आउटपुट: "Unknown locale"
117
119
  - फ़ंक्शन डिफ़ॉल्ट रूप से `displayLocale` के अपने नाम को लौटाता है।
118
120
  - **अनुवाद गायब:**
119
121
  - यदि `localeNameTranslations` में `targetLocale` या विशिष्ट `displayLocale` के लिए कोई प्रविष्टि नहीं है, तो फ़ंक्शन `ownLocalesName` पर वापस चला जाता है या `"Unknown locale"` लौटाता है।
122
+
123
+ ## React Native और पुराने वातावरण के लिए Polyfills
124
+
125
+ `getLocaleName` फ़ंक्शन `Intl.DisplayNames` API पर निर्भर करता है, जो React Native या पुराने JavaScript वातावरण में उपलब्ध नहीं है। यदि आप इन वातावरणों में `getLocaleName` का उपयोग कर रहे हैं, तो आपको polyfills जोड़ने की आवश्यकता है।
126
+
127
+ अपने एप्लिकेशन में जल्दी polyfills आयात करें, आदर्श रूप से अपनी प्रवेश बिंदु फ़ाइल में (उदाहरण के लिए, `index.js`, `App.tsx`, या `main.tsx`):
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ अधिक विवरण के लिए, [FormatJS polyfills दस्तावेज़](https://formatjs.io/docs/polyfills/intl-displaynames/) देखें।
@@ -657,6 +657,13 @@ Intlayer mendukung beberapa provider AI untuk fleksibilitas dan pilihan yang leb
657
657
  - _Default_: Tidak ada
658
658
  - _Deskripsi_: Memberikan konteks tambahan tentang aplikasi Anda kepada model AI, membantu menghasilkan terjemahan yang lebih akurat dan sesuai konteks. Ini dapat mencakup informasi tentang domain aplikasi Anda, audiens target, nada, atau terminologi khusus.
659
659
 
660
+ - **baseURL**:
661
+ - _Tipe_: `string`
662
+ - _Default_: Tidak ada
663
+ - _Deskripsi_: URL dasar untuk API AI.
664
+ - _Contoh_: `'https://api.openai.com/v1'`
665
+ - _Catatan_: Dapat digunakan untuk menunjuk ke endpoint API AI lokal atau kustom.
666
+
660
667
  ### Konfigurasi Build
661
668
 
662
669
  Pengaturan yang mengontrol bagaimana Intlayer mengoptimalkan dan membangun internasionalisasi aplikasi Anda.
@@ -374,11 +374,11 @@ import { useIntlayer } from "vue-intlayer";
374
374
  const content = useIntlayer("home-page");
375
375
 
376
376
  useHead({
377
- title: content.metaTitle.value,
377
+ title: content.metaTitle.raw,
378
378
  meta: [
379
379
  {
380
380
  name: "description",
381
- content: content.metaDescription.value,
381
+ content: content.metaDescription.raw,
382
382
  },
383
383
  ],
384
384
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: Tambahkan polyfills untuk React Native dan lingkungan yang lebih lama
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: Inisialisasi riwayat
@@ -117,3 +120,17 @@ getLocaleName("unknown-locale"); // Output: "Unknown locale"
117
120
  - Fungsi secara default mengembalikan nama dari `displayLocale` itu sendiri.
118
121
  - **Terjemahan yang hilang:**
119
122
  - Jika `localeNameTranslations` tidak berisi entri untuk `targetLocale` atau `displayLocale` tertentu, fungsi akan kembali ke `ownLocalesName` atau mengembalikan `"Unknown locale"`.
123
+
124
+ ## Polyfills untuk React Native dan Lingkungan yang Lebih Lama
125
+
126
+ Fungsi `getLocaleName` bergantung pada API `Intl.DisplayNames`, yang tidak tersedia di React Native atau lingkungan JavaScript yang lebih lama. Jika Anda menggunakan `getLocaleName` di lingkungan ini, Anda perlu menambahkan polyfills.
127
+
128
+ Impor polyfills di awal aplikasi Anda, idealnya di file titik masuk Anda (misalnya, `index.js`, `App.tsx`, atau `main.tsx`):
129
+
130
+ ```typescript
131
+ import "intl";
132
+ import "@formatjs/intl-locale/polyfill";
133
+ import "@formatjs/intl-displaynames/polyfill";
134
+ ```
135
+
136
+ Untuk detail lebih lanjut, lihat [dokumentasi polyfills FormatJS](https://formatjs.io/docs/polyfills/intl-displaynames/).
@@ -515,6 +515,13 @@ Intlayer supporta più provider AI per una maggiore flessibilità e scelta. I pr
515
515
  - _Predefinito_: Nessuno
516
516
  - _Descrizione_: Fornisce un contesto aggiuntivo sulla tua applicazione al modello AI, aiutandolo a generare traduzioni più accurate e contestualmente appropriate. Questo può includere informazioni sul dominio della tua app, il pubblico target, il tono o terminologia specifica.
517
517
 
518
+ - **baseURL**:
519
+ - _Tipo_: `string`
520
+ - _Predefinito_: Nessuno
521
+ - _Descrizione_: L'URL di base per l'API AI.
522
+ - _Esempio_: `'https://api.openai.com/v1'`
523
+ - _Nota_: Può essere utilizzato per puntare a un endpoint API AI locale o personalizzato.
524
+
518
525
  ### Configurazione della Build
519
526
 
520
527
  Impostazioni che controllano come Intlayer ottimizza e costruisce l'internazionalizzazione della tua applicazione.
@@ -374,11 +374,11 @@ import { useIntlayer } from "vue-intlayer";
374
374
  const content = useIntlayer("home-page");
375
375
 
376
376
  useHead({
377
- title: content.metaTitle.value,
377
+ title: content.metaTitle.raw,
378
378
  meta: [
379
379
  {
380
380
  name: "description",
381
- content: content.metaDescription.value,
381
+ content: content.metaDescription.raw,
382
382
  },
383
383
  ],
384
384
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: Aggiungere polyfills per React Native e ambienti più vecchi
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: Inizio cronologia
@@ -33,7 +36,6 @@ La funzione `getLocaleName` restituisce il nome localizzato di una determinata l
33
36
  ## Parametri
34
37
 
35
38
  - `displayLocale: Locales`
36
-
37
39
  - **Descrizione**: La località in cui verrà visualizzato il nome della località target.
38
40
  - **Tipo**: Enum o stringa che rappresenta località valide.
39
41
 
@@ -117,3 +119,17 @@ getLocaleName("unknown-locale"); // Output: "Unknown locale"
117
119
  - La funzione restituisce per default il nome proprio del `displayLocale`.
118
120
  - **Traduzioni mancanti:**
119
121
  - Se `localeNameTranslations` non contiene una voce per il `targetLocale` o per il `displayLocale` specifico, la funzione ricorre a `ownLocalesName` oppure restituisce `"Unknown locale"`.
122
+
123
+ ## Polyfills per React Native e ambienti più vecchi
124
+
125
+ La funzione `getLocaleName` dipende dall'API `Intl.DisplayNames`, che non è disponibile in React Native o in ambienti JavaScript più vecchi. Se stai usando `getLocaleName` in questi ambienti, devi aggiungere polyfills.
126
+
127
+ Importa i polyfills all'inizio della tua applicazione, idealmente nel tuo file di ingresso (ad esempio, `index.js`, `App.tsx` o `main.tsx`):
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ Per maggiori dettagli, consulta la [documentazione dei polyfills FormatJS](https://formatjs.io/docs/polyfills/intl-displaynames/).
@@ -516,6 +516,13 @@ Intlayerは、柔軟性と選択肢を高めるために複数のAIプロバイ
516
516
  - _デフォルト_: なし
517
517
  - _説明_: AIモデルに対してアプリケーションの追加コンテキストを提供し、より正確で文脈に適した翻訳を生成するのに役立ちます。これには、アプリのドメイン、ターゲットユーザー、トーン、特定の用語などの情報が含まれます。
518
518
 
519
+ - **baseURL**:
520
+ - _タイプ_: `string`
521
+ - _デフォルト_: なし
522
+ - _説明_: AI APIのベースURL。
523
+ - _例_: `'https://api.openai.com/v1'`
524
+ - _注意_: ローカルまたはカスタムのAI APIエンドポイントを指すために使用できます。
525
+
519
526
  ### ビルド設定
520
527
 
521
528
  Intlayerがアプリケーションの国際化をどのように最適化しビルドするかを制御する設定。
@@ -373,11 +373,11 @@ import { useIntlayer } from "vue-intlayer";
373
373
  const content = useIntlayer("home-page");
374
374
 
375
375
  useHead({
376
- title: content.metaTitle.value,
376
+ title: content.metaTitle.raw,
377
377
  meta: [
378
378
  {
379
379
  name: "description",
380
- content: content.metaDescription.value,
380
+ content: content.metaDescription.raw,
381
381
  },
382
382
  ],
383
383
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: React Native と古い環境用の polyfills を追加
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: 履歴の初期化
@@ -33,7 +36,6 @@ history:
33
36
  ## パラメーター
34
37
 
35
38
  - `displayLocale: Locales`
36
-
37
39
  - **説明**: 対象ロケールの名前が表示されるロケール。
38
40
  - **型**: 有効なロケールを表す列挙型または文字列。
39
41
 
@@ -117,3 +119,17 @@ getLocaleName("unknown-locale"); // 出力: "Unknown locale"
117
119
  - 関数はデフォルトで `displayLocale` 自身の名前を返します。
118
120
  - **翻訳が見つからない場合:**
119
121
  - `localeNameTranslations` に `targetLocale` または特定の `displayLocale` のエントリが存在しない場合、関数は `ownLocalesName` にフォールバックするか、 `"Unknown locale"` を返します。
122
+
123
+ ## React Native と古い環境用の Polyfills
124
+
125
+ `getLocaleName` 関数は `Intl.DisplayNames` API に依存しており、この API は React Native や古い JavaScript 環境では利用できません。これらの環境で `getLocaleName` を使用する場合は、polyfills を追加する必要があります。
126
+
127
+ アプリケーションの早期に polyfills をインポートしてください。理想的には、エントリポイントファイル(例:`index.js`、`App.tsx`、または `main.tsx`)で行います:
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ 詳細については、[FormatJS polyfills ドキュメント](https://formatjs.io/docs/polyfills/intl-displaynames/)を参照してください。
@@ -518,6 +518,13 @@ Intlayer는 향상된 유연성과 선택권을 위해 여러 AI 공급자를
518
518
  - _기본값_: 없음
519
519
  - _설명_: AI 모델에 애플리케이션에 대한 추가 컨텍스트를 제공하여 더 정확하고 상황에 적합한 번역을 생성하도록 돕습니다. 여기에는 앱의 도메인, 대상 사용자, 톤 또는 특정 용어에 대한 정보가 포함될 수 있습니다.
520
520
 
521
+ - **baseURL**:
522
+ - _유형_: `string`
523
+ - _기본값_: 없음
524
+ - _설명_: AI API의 기본 URL입니다.
525
+ - _예시_: `'https://api.openai.com/v1'`
526
+ - _참고_: 로컬 또는 사용자 정의 AI API 엔드포인트를 가리키는 데 사용할 수 있습니다.
527
+
521
528
  ### 빌드 구성
522
529
 
523
530
  Intlayer가 애플리케이션의 국제화를 최적화하고 빌드하는 방식을 제어하는 설정입니다.
@@ -373,11 +373,11 @@ import { useIntlayer } from "vue-intlayer";
373
373
  const content = useIntlayer("home-page");
374
374
 
375
375
  useHead({
376
- title: content.metaTitle.value,
376
+ title: content.metaTitle.raw,
377
377
  meta: [
378
378
  {
379
379
  name: "description",
380
- content: content.metaDescription.value,
380
+ content: content.metaDescription.raw,
381
381
  },
382
382
  ],
383
383
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: React Native 및 구형 환경용 polyfills 추가
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: 초기 이력
@@ -33,7 +36,6 @@ history:
33
36
  ## 매개변수
34
37
 
35
38
  - `displayLocale: Locales`
36
-
37
39
  - **설명**: 대상 로케일의 이름이 표시될 로케일입니다.
38
40
  - **타입**: 유효한 로케일을 나타내는 열거형 또는 문자열입니다.
39
41
 
@@ -117,3 +119,17 @@ getLocaleName("unknown-locale"); // 출력: "Unknown locale"
117
119
  - 함수는 기본적으로 `displayLocale` 자신의 이름을 반환합니다.
118
120
  - **번역 누락:**
119
121
  - `localeNameTranslations`에 `targetLocale` 또는 특정 `displayLocale`에 대한 항목이 없으면, 함수는 `ownLocalesName`을 사용하거나 `"Unknown locale"`을 반환합니다.
122
+
123
+ ## React Native 및 구형 환경용 Polyfills
124
+
125
+ `getLocaleName` 함수는 `Intl.DisplayNames` API에 의존하며, 이 API는 React Native나 구형 JavaScript 환경에서는 사용할 수 없습니다. 이러한 환경에서 `getLocaleName`을 사용하는 경우 polyfills를 추가해야 합니다.
126
+
127
+ 애플리케이션 초기에 polyfills를 가져오세요. 가능하면 진입점 파일(예: `index.js`, `App.tsx`, 또는 `main.tsx`)에서 수행하세요:
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ 자세한 내용은 [FormatJS polyfills 문서](https://formatjs.io/docs/polyfills/intl-displaynames/)를 참조하세요.
@@ -657,6 +657,13 @@ Intlayer obsługuje wielu dostawców AI, aby zapewnić większą elastyczność
657
657
  - _Domyślnie_: Brak
658
658
  - _Opis_: Dostarcza dodatkowy kontekst dotyczący Twojej aplikacji dla modelu AI, pomagając mu generować dokładniejsze i kontekstowo odpowiednie tłumaczenia. Może to obejmować informacje o domenie aplikacji, docelowej grupie odbiorców, tonie lub specyficznej terminologii.
659
659
 
660
+ - **baseURL**:
661
+ - _Typ_: `string`
662
+ - _Domyślnie_: Brak
663
+ - _Opis_: Podstawowy URL dla API AI.
664
+ - _Przykład_: `'https://api.openai.com/v1'`
665
+ - _Uwaga_: Może być używany do wskazania lokalnego lub niestandardowego punktu końcowego API AI.
666
+
660
667
  ### Konfiguracja Budowania
661
668
 
662
669
  Ustawienia kontrolujące, jak Intlayer optymalizuje i buduje internacjonalizację Twojej aplikacji.
@@ -373,11 +373,11 @@ import { useIntlayer } from "vue-intlayer";
373
373
  const content = useIntlayer("home-page");
374
374
 
375
375
  useHead({
376
- title: content.metaTitle.value,
376
+ title: content.metaTitle.raw,
377
377
  meta: [
378
378
  {
379
379
  name: "description",
380
- content: content.metaDescription.value,
380
+ content: content.metaDescription.raw,
381
381
  },
382
382
  ],
383
383
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: Dodaj polyfills dla React Native i starszych środowisk
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: Inicjalizacja historii
@@ -116,3 +119,17 @@ getLocaleName("unknown-locale"); // Wynik: "Unknown locale"
116
119
  - Funkcja domyślnie zwraca własną nazwę `displayLocale`.
117
120
  - **Brakujące tłumaczenia:**
118
121
  - Jeśli `localeNameTranslations` nie zawiera wpisu dla `targetLocale` lub konkretnego `displayLocale`, funkcja korzysta z `ownLocalesName` lub zwraca `"Unknown locale"`.
122
+
123
+ ## Polyfills dla React Native i starszych środowisk
124
+
125
+ Funkcja `getLocaleName` zależy od API `Intl.DisplayNames`, które nie jest dostępne w React Native lub starszych środowiskach JavaScript. Jeśli używasz `getLocaleName` w tych środowiskach, musisz dodać polyfills.
126
+
127
+ Zaimportuj polyfills wcześnie w swojej aplikacji, najlepiej w pliku punktu wejścia (np. `index.js`, `App.tsx` lub `main.tsx`):
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ Aby uzyskać więcej szczegółów, zobacz [dokumentację polyfills FormatJS](https://formatjs.io/docs/polyfills/intl-displaynames/).
@@ -515,6 +515,13 @@ O Intlayer suporta múltiplos provedores de IA para maior flexibilidade e escolh
515
515
  - _Padrão_: Nenhum
516
516
  - _Descrição_: Fornece contexto adicional sobre sua aplicação para o modelo de IA, ajudando-o a gerar traduções mais precisas e contextualmente apropriadas. Isso pode incluir informações sobre o domínio do seu app, público-alvo, tom ou terminologia específica.
517
517
 
518
+ - **baseURL**:
519
+ - _Tipo_: `string`
520
+ - _Padrão_: Nenhum
521
+ - _Descrição_: A URL base para a API de IA.
522
+ - _Exemplo_: `'https://api.openai.com/v1'`
523
+ - _Nota_: Pode ser usado para apontar para um endpoint de API de IA local ou personalizado.
524
+
518
525
  ### Configuração de Build
519
526
 
520
527
  Configurações que controlam como o Intlayer otimiza e constrói a internacionalização da sua aplicação.
@@ -373,11 +373,11 @@ import { useIntlayer } from "vue-intlayer";
373
373
  const content = useIntlayer("home-page");
374
374
 
375
375
  useHead({
376
- title: content.metaTitle.value,
376
+ title: content.metaTitle.raw,
377
377
  meta: [
378
378
  {
379
379
  name: "description",
380
- content: content.metaDescription.value,
380
+ content: content.metaDescription.raw,
381
381
  },
382
382
  ],
383
383
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: Adicionar polyfills para React Native e ambientes mais antigos
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: Histórico inicial
@@ -33,7 +36,6 @@ A função `getLocaleName` retorna o nome localizado de um determinado locale (`
33
36
  ## Parâmetros
34
37
 
35
38
  - `displayLocale: Locales`
36
-
37
39
  - **Descrição**: O locale no qual o nome do locale alvo será exibido.
38
40
  - **Tipo**: Enum ou string representando locales válidos.
39
41
 
@@ -117,3 +119,17 @@ getLocaleName("unknown-locale"); // Saída: "Unknown locale"
117
119
  - A função retorna por padrão o próprio nome do `displayLocale`.
118
120
  - **Traduções ausentes:**
119
121
  - Se `localeNameTranslations` não contiver uma entrada para o `targetLocale` ou para o `displayLocale` específico, a função recorre ao `ownLocalesName` ou retorna `"Unknown locale"`.
122
+
123
+ ## Polyfills para React Native e ambientes mais antigos
124
+
125
+ A função `getLocaleName` depende da API `Intl.DisplayNames`, que não está disponível no React Native ou em ambientes JavaScript mais antigos. Se você estiver usando `getLocaleName` nesses ambientes, precisa adicionar polyfills.
126
+
127
+ Importe os polyfills no início da sua aplicação, idealmente no seu arquivo de entrada (por exemplo, `index.js`, `App.tsx` ou `main.tsx`):
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ Para mais detalhes, consulte a [documentação de polyfills do FormatJS](https://formatjs.io/docs/polyfills/intl-displaynames/).
@@ -515,6 +515,13 @@ Intlayer поддерживает несколько провайдеров ИИ
515
515
  - _По умолчанию_: Нет
516
516
  - _Описание_: Предоставляет дополнительный контекст о вашем приложении для модели ИИ, помогая ей генерировать более точные и контекстно уместные переводы. Это может включать информацию о домене вашего приложения, целевой аудитории, тоне или специфической терминологии.
517
517
 
518
+ - **baseURL**:
519
+ - _Тип_: `string`
520
+ - _По умолчанию_: Нет
521
+ - _Описание_: Базовый URL для API ИИ.
522
+ - _Пример_: `'https://api.openai.com/v1'`
523
+ - _Примечание_: Может использоваться для указания локальной или пользовательской конечной точки API ИИ.
524
+
518
525
  ### Конфигурация сборки
519
526
 
520
527
  Настройки, которые контролируют, как Intlayer оптимизирует и собирает интернационализацию вашего приложения.
@@ -373,11 +373,11 @@ import { useIntlayer } from "vue-intlayer";
373
373
  const content = useIntlayer("home-page");
374
374
 
375
375
  useHead({
376
- title: content.metaTitle.value,
376
+ title: content.metaTitle.raw,
377
377
  meta: [
378
378
  {
379
379
  name: "description",
380
- content: content.metaDescription.value,
380
+ content: content.metaDescription.raw,
381
381
  },
382
382
  ],
383
383
  });
@@ -19,6 +19,9 @@ slugs:
19
19
  - intlayer
20
20
  - getLocaleName
21
21
  history:
22
+ - version: 7.5.0
23
+ date: 2025-12-18
24
+ changes: Добавление polyfills для React Native и старых сред
22
25
  - version: 5.5.10
23
26
  date: 2025-06-29
24
27
  changes: Инициализация истории
@@ -33,7 +36,6 @@ history:
33
36
  ## Параметры
34
37
 
35
38
  - `displayLocale: Locales`
36
-
37
39
  - **Описание**: Локаль, на языке которой будет отображаться название целевой локали.
38
40
  - **Тип**: Enum или строка, представляющая допустимые локали.
39
41
 
@@ -117,3 +119,17 @@ getLocaleName("unknown-locale"); // Вывод: "Unknown locale"
117
119
  - Функция по умолчанию возвращает собственное имя `displayLocale`.
118
120
  - **Отсутствие переводов:**
119
121
  - Если `localeNameTranslations` не содержит записи для `targetLocale` или конкретного `displayLocale`, функция возвращает `ownLocalesName` или `"Unknown locale"`.
122
+
123
+ ## Polyfills для React Native и старых сред
124
+
125
+ Функция `getLocaleName` зависит от API `Intl.DisplayNames`, которая недоступна в React Native или старых средах JavaScript. Если вы используете `getLocaleName` в этих средах, вам нужно добавить polyfills.
126
+
127
+ Импортируйте polyfills в начале вашего приложения, желательно в файле точки входа (например, `index.js`, `App.tsx` или `main.tsx`):
128
+
129
+ ```typescript
130
+ import "intl";
131
+ import "@formatjs/intl-locale/polyfill";
132
+ import "@formatjs/intl-displaynames/polyfill";
133
+ ```
134
+
135
+ Для получения дополнительной информации см. [документацию по polyfills FormatJS](https://formatjs.io/docs/polyfills/intl-displaynames/).
@@ -517,6 +517,13 @@ Intlayer, artırılmış esneklik ve seçenek için birden fazla AI sağlayıcı
517
517
  - _Varsayılan_: Yok
518
518
  - _Açıklama_: AI modeline uygulamanız hakkında ek bağlam sağlar, böylece daha doğru ve bağlama uygun çeviriler oluşturmasına yardımcı olur. Bu, uygulamanızın alanı, hedef kitlesi, tonu veya belirli terminolojisi hakkında bilgiler içerebilir.
519
519
 
520
+ - **baseURL**:
521
+ - _Tür_: `string`
522
+ - _Varsayılan_: Yok
523
+ - _Açıklama_: AI API için temel URL.
524
+ - _Örnek_: `'https://api.openai.com/v1'`
525
+ - _Not_: Yerel veya özel bir AI API uç noktasını işaret etmek için kullanılabilir.
526
+
520
527
  ### Derleme Yapılandırması
521
528
 
522
529
  Intlayer'ın uygulamanızın uluslararasılaştırmasını nasıl optimize edip derleyeceğini kontrol eden ayarlar.
@@ -373,11 +373,11 @@ import { useIntlayer } from "vue-intlayer";
373
373
  const content = useIntlayer("home-page");
374
374
 
375
375
  useHead({
376
- title: content.metaTitle.value,
376
+ title: content.metaTitle.raw,
377
377
  meta: [
378
378
  {
379
379
  name: "description",
380
- content: content.metaDescription.value,
380
+ content: content.metaDescription.raw,
381
381
  },
382
382
  ],
383
383
  });