@umituz/react-native-localization 1.0.0 → 1.2.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 (899) hide show
  1. package/README.md +78 -15
  2. package/lib/infrastructure/config/i18n.d.ts +4 -1
  3. package/lib/infrastructure/config/i18n.d.ts.map +1 -1
  4. package/lib/infrastructure/config/i18n.js +204 -27
  5. package/lib/infrastructure/config/i18n.js.map +1 -1
  6. package/lib/infrastructure/config/languages.d.ts +1 -1
  7. package/lib/infrastructure/config/languages.d.ts.map +1 -1
  8. package/lib/infrastructure/config/languages.js +2 -2
  9. package/lib/infrastructure/config/languages.js.map +1 -1
  10. package/lib/infrastructure/config/languagesData.js +2 -2
  11. package/lib/infrastructure/config/languagesData.js.map +1 -1
  12. package/lib/infrastructure/locales/ar-SA/auth.json +32 -0
  13. package/lib/infrastructure/locales/ar-SA/branding.json +9 -0
  14. package/lib/infrastructure/locales/ar-SA/datetime.json +140 -0
  15. package/lib/infrastructure/locales/ar-SA/errors.json +43 -0
  16. package/lib/infrastructure/locales/ar-SA/flashcards.json +287 -0
  17. package/lib/infrastructure/locales/ar-SA/general.json +61 -0
  18. package/lib/infrastructure/locales/ar-SA/index.d.ts +778 -0
  19. package/lib/infrastructure/locales/ar-SA/index.d.ts.map +1 -0
  20. package/lib/infrastructure/locales/ar-SA/index.js +46 -0
  21. package/lib/infrastructure/locales/ar-SA/index.js.map +1 -0
  22. package/lib/infrastructure/locales/ar-SA/navigation.json +58 -0
  23. package/lib/infrastructure/locales/ar-SA/onboarding.json +76 -0
  24. package/lib/infrastructure/locales/ar-SA/settings.json +53 -0
  25. package/lib/infrastructure/locales/bg-BG/auth.json +32 -0
  26. package/lib/infrastructure/locales/bg-BG/branding.json +9 -0
  27. package/lib/infrastructure/locales/bg-BG/datetime.json +140 -0
  28. package/lib/infrastructure/locales/bg-BG/errors.json +43 -0
  29. package/lib/infrastructure/locales/bg-BG/flashcards.json +287 -0
  30. package/lib/infrastructure/locales/bg-BG/general.json +61 -0
  31. package/lib/infrastructure/locales/bg-BG/index.d.ts +778 -0
  32. package/lib/infrastructure/locales/bg-BG/index.d.ts.map +1 -0
  33. package/lib/infrastructure/locales/bg-BG/index.js +46 -0
  34. package/lib/infrastructure/locales/bg-BG/index.js.map +1 -0
  35. package/lib/infrastructure/locales/bg-BG/navigation.json +58 -0
  36. package/lib/infrastructure/locales/bg-BG/onboarding.json +76 -0
  37. package/lib/infrastructure/locales/bg-BG/settings.json +53 -0
  38. package/lib/infrastructure/locales/cs-CZ/branding.json +9 -0
  39. package/lib/infrastructure/locales/cs-CZ/datetime.json +140 -0
  40. package/lib/infrastructure/locales/cs-CZ/errors.json +43 -0
  41. package/lib/infrastructure/locales/cs-CZ/flashcards.json +287 -0
  42. package/lib/infrastructure/locales/cs-CZ/general.json +61 -0
  43. package/lib/infrastructure/locales/cs-CZ/index.d.ts +745 -0
  44. package/lib/infrastructure/locales/cs-CZ/index.d.ts.map +1 -0
  45. package/lib/infrastructure/locales/cs-CZ/index.js +43 -0
  46. package/lib/infrastructure/locales/cs-CZ/index.js.map +1 -0
  47. package/lib/infrastructure/locales/cs-CZ/navigation.json +58 -0
  48. package/lib/infrastructure/locales/cs-CZ/onboarding.json +76 -0
  49. package/lib/infrastructure/locales/cs-CZ/settings.json +53 -0
  50. package/lib/infrastructure/locales/da-DK/branding.json +9 -0
  51. package/lib/infrastructure/locales/da-DK/datetime.json +140 -0
  52. package/lib/infrastructure/locales/da-DK/errors.json +43 -0
  53. package/lib/infrastructure/locales/da-DK/flashcards.json +287 -0
  54. package/lib/infrastructure/locales/da-DK/general.json +61 -0
  55. package/lib/infrastructure/locales/da-DK/index.d.ts +745 -0
  56. package/lib/infrastructure/locales/da-DK/index.d.ts.map +1 -0
  57. package/lib/infrastructure/locales/da-DK/index.js +43 -0
  58. package/lib/infrastructure/locales/da-DK/index.js.map +1 -0
  59. package/lib/infrastructure/locales/da-DK/navigation.json +58 -0
  60. package/lib/infrastructure/locales/da-DK/onboarding.json +76 -0
  61. package/lib/infrastructure/locales/da-DK/settings.json +53 -0
  62. package/lib/infrastructure/locales/de-DE/branding.json +9 -0
  63. package/lib/infrastructure/locales/de-DE/datetime.json +140 -0
  64. package/lib/infrastructure/locales/de-DE/errors.json +43 -0
  65. package/lib/infrastructure/locales/de-DE/flashcards.json +287 -0
  66. package/lib/infrastructure/locales/de-DE/general.json +61 -0
  67. package/lib/infrastructure/locales/de-DE/index.d.ts +745 -0
  68. package/lib/infrastructure/locales/de-DE/index.d.ts.map +1 -0
  69. package/lib/infrastructure/locales/de-DE/index.js +43 -0
  70. package/lib/infrastructure/locales/de-DE/index.js.map +1 -0
  71. package/lib/infrastructure/locales/de-DE/navigation.json +58 -0
  72. package/lib/infrastructure/locales/de-DE/onboarding.json +76 -0
  73. package/lib/infrastructure/locales/de-DE/settings.json +53 -0
  74. package/lib/infrastructure/locales/el-GR/branding.json +9 -0
  75. package/lib/infrastructure/locales/el-GR/datetime.json +140 -0
  76. package/lib/infrastructure/locales/el-GR/errors.json +43 -0
  77. package/lib/infrastructure/locales/el-GR/flashcards.json +287 -0
  78. package/lib/infrastructure/locales/el-GR/general.json +61 -0
  79. package/lib/infrastructure/locales/el-GR/index.d.ts +745 -0
  80. package/lib/infrastructure/locales/el-GR/index.d.ts.map +1 -0
  81. package/lib/infrastructure/locales/el-GR/index.js +43 -0
  82. package/lib/infrastructure/locales/el-GR/index.js.map +1 -0
  83. package/lib/infrastructure/locales/el-GR/navigation.json +58 -0
  84. package/lib/infrastructure/locales/el-GR/onboarding.json +76 -0
  85. package/lib/infrastructure/locales/el-GR/settings.json +53 -0
  86. package/lib/infrastructure/locales/en-AU/branding.json +9 -0
  87. package/lib/infrastructure/locales/en-AU/datetime.json +140 -0
  88. package/lib/infrastructure/locales/en-AU/errors.json +43 -0
  89. package/lib/infrastructure/locales/en-AU/flashcards.json +77 -0
  90. package/lib/infrastructure/locales/en-AU/general.json +61 -0
  91. package/lib/infrastructure/locales/en-AU/index.d.ts +535 -0
  92. package/lib/infrastructure/locales/en-AU/index.d.ts.map +1 -0
  93. package/lib/infrastructure/locales/en-AU/index.js +43 -0
  94. package/lib/infrastructure/locales/en-AU/index.js.map +1 -0
  95. package/lib/infrastructure/locales/en-AU/navigation.json +58 -0
  96. package/lib/infrastructure/locales/en-AU/onboarding.json +76 -0
  97. package/lib/infrastructure/locales/en-AU/settings.json +53 -0
  98. package/lib/infrastructure/locales/en-CA/branding.json +9 -0
  99. package/lib/infrastructure/locales/en-CA/datetime.json +140 -0
  100. package/lib/infrastructure/locales/en-CA/errors.json +43 -0
  101. package/lib/infrastructure/locales/en-CA/flashcards.json +77 -0
  102. package/lib/infrastructure/locales/en-CA/general.json +61 -0
  103. package/lib/infrastructure/locales/en-CA/index.d.ts +535 -0
  104. package/lib/infrastructure/locales/en-CA/index.d.ts.map +1 -0
  105. package/lib/infrastructure/locales/en-CA/index.js +43 -0
  106. package/lib/infrastructure/locales/en-CA/index.js.map +1 -0
  107. package/lib/infrastructure/locales/en-CA/navigation.json +58 -0
  108. package/lib/infrastructure/locales/en-CA/onboarding.json +76 -0
  109. package/lib/infrastructure/locales/en-CA/settings.json +53 -0
  110. package/lib/infrastructure/locales/en-GB/branding.json +9 -0
  111. package/lib/infrastructure/locales/en-GB/datetime.json +140 -0
  112. package/lib/infrastructure/locales/en-GB/errors.json +43 -0
  113. package/lib/infrastructure/locales/en-GB/flashcards.json +77 -0
  114. package/lib/infrastructure/locales/en-GB/general.json +61 -0
  115. package/lib/infrastructure/locales/en-GB/index.d.ts +535 -0
  116. package/lib/infrastructure/locales/en-GB/index.d.ts.map +1 -0
  117. package/lib/infrastructure/locales/en-GB/index.js +43 -0
  118. package/lib/infrastructure/locales/en-GB/index.js.map +1 -0
  119. package/lib/infrastructure/locales/en-GB/navigation.json +58 -0
  120. package/lib/infrastructure/locales/en-GB/onboarding.json +76 -0
  121. package/lib/infrastructure/locales/en-GB/settings.json +53 -0
  122. package/lib/infrastructure/locales/en-US/auth.json +32 -0
  123. package/lib/infrastructure/locales/en-US/branding.json +9 -0
  124. package/lib/infrastructure/locales/en-US/flashcards.json +310 -0
  125. package/lib/infrastructure/locales/en-US/general.json +6 -1
  126. package/lib/infrastructure/locales/en-US/index.d.ts +350 -332
  127. package/lib/infrastructure/locales/en-US/index.d.ts.map +1 -1
  128. package/lib/infrastructure/locales/en-US/index.js +30 -19
  129. package/lib/infrastructure/locales/en-US/index.js.map +1 -1
  130. package/lib/infrastructure/locales/en-US/navigation.json +4 -1
  131. package/lib/infrastructure/locales/en-US/settings.json +0 -12
  132. package/lib/infrastructure/locales/es-ES/branding.json +9 -0
  133. package/lib/infrastructure/locales/es-ES/datetime.json +140 -0
  134. package/lib/infrastructure/locales/es-ES/errors.json +43 -0
  135. package/lib/infrastructure/locales/es-ES/flashcards.json +287 -0
  136. package/lib/infrastructure/locales/es-ES/general.json +61 -0
  137. package/lib/infrastructure/locales/es-ES/index.d.ts +745 -0
  138. package/lib/infrastructure/locales/es-ES/index.d.ts.map +1 -0
  139. package/lib/infrastructure/locales/es-ES/index.js +43 -0
  140. package/lib/infrastructure/locales/es-ES/index.js.map +1 -0
  141. package/lib/infrastructure/locales/es-ES/navigation.json +58 -0
  142. package/lib/infrastructure/locales/es-ES/onboarding.json +76 -0
  143. package/lib/infrastructure/locales/es-ES/settings.json +53 -0
  144. package/lib/infrastructure/locales/es-MX/branding.json +9 -0
  145. package/lib/infrastructure/locales/es-MX/datetime.json +140 -0
  146. package/lib/infrastructure/locales/es-MX/errors.json +43 -0
  147. package/lib/infrastructure/locales/es-MX/flashcards.json +276 -0
  148. package/lib/infrastructure/locales/es-MX/general.json +61 -0
  149. package/lib/infrastructure/locales/es-MX/index.d.ts +734 -0
  150. package/lib/infrastructure/locales/es-MX/index.d.ts.map +1 -0
  151. package/lib/infrastructure/locales/es-MX/index.js +43 -0
  152. package/lib/infrastructure/locales/es-MX/index.js.map +1 -0
  153. package/lib/infrastructure/locales/es-MX/navigation.json +58 -0
  154. package/lib/infrastructure/locales/es-MX/onboarding.json +76 -0
  155. package/lib/infrastructure/locales/es-MX/settings.json +53 -0
  156. package/lib/infrastructure/locales/fi-FI/branding.json +9 -0
  157. package/lib/infrastructure/locales/fi-FI/datetime.json +140 -0
  158. package/lib/infrastructure/locales/fi-FI/errors.json +43 -0
  159. package/lib/infrastructure/locales/fi-FI/flashcards.json +287 -0
  160. package/lib/infrastructure/locales/fi-FI/general.json +61 -0
  161. package/lib/infrastructure/locales/fi-FI/index.d.ts +745 -0
  162. package/lib/infrastructure/locales/fi-FI/index.d.ts.map +1 -0
  163. package/lib/infrastructure/locales/fi-FI/index.js +43 -0
  164. package/lib/infrastructure/locales/fi-FI/index.js.map +1 -0
  165. package/lib/infrastructure/locales/fi-FI/navigation.json +58 -0
  166. package/lib/infrastructure/locales/fi-FI/onboarding.json +76 -0
  167. package/lib/infrastructure/locales/fi-FI/settings.json +53 -0
  168. package/lib/infrastructure/locales/fr-CA/branding.json +9 -0
  169. package/lib/infrastructure/locales/fr-CA/datetime.json +140 -0
  170. package/lib/infrastructure/locales/fr-CA/errors.json +43 -0
  171. package/lib/infrastructure/locales/fr-CA/flashcards.json +287 -0
  172. package/lib/infrastructure/locales/fr-CA/general.json +61 -0
  173. package/lib/infrastructure/locales/fr-CA/index.d.ts +745 -0
  174. package/lib/infrastructure/locales/fr-CA/index.d.ts.map +1 -0
  175. package/lib/infrastructure/locales/fr-CA/index.js +43 -0
  176. package/lib/infrastructure/locales/fr-CA/index.js.map +1 -0
  177. package/lib/infrastructure/locales/fr-CA/navigation.json +58 -0
  178. package/lib/infrastructure/locales/fr-CA/onboarding.json +76 -0
  179. package/lib/infrastructure/locales/fr-CA/settings.json +53 -0
  180. package/lib/infrastructure/locales/fr-FR/branding.json +9 -0
  181. package/lib/infrastructure/locales/fr-FR/datetime.json +140 -0
  182. package/lib/infrastructure/locales/fr-FR/errors.json +43 -0
  183. package/lib/infrastructure/locales/fr-FR/flashcards.json +287 -0
  184. package/lib/infrastructure/locales/fr-FR/general.json +61 -0
  185. package/lib/infrastructure/locales/fr-FR/index.d.ts +745 -0
  186. package/lib/infrastructure/locales/fr-FR/index.d.ts.map +1 -0
  187. package/lib/infrastructure/locales/fr-FR/index.js +43 -0
  188. package/lib/infrastructure/locales/fr-FR/index.js.map +1 -0
  189. package/lib/infrastructure/locales/fr-FR/navigation.json +58 -0
  190. package/lib/infrastructure/locales/fr-FR/onboarding.json +76 -0
  191. package/lib/infrastructure/locales/fr-FR/settings.json +53 -0
  192. package/lib/infrastructure/locales/hi-IN/branding.json +9 -0
  193. package/lib/infrastructure/locales/hi-IN/datetime.json +140 -0
  194. package/lib/infrastructure/locales/hi-IN/errors.json +43 -0
  195. package/lib/infrastructure/locales/hi-IN/flashcards.json +287 -0
  196. package/lib/infrastructure/locales/hi-IN/general.json +61 -0
  197. package/lib/infrastructure/locales/hi-IN/index.d.ts +745 -0
  198. package/lib/infrastructure/locales/hi-IN/index.d.ts.map +1 -0
  199. package/lib/infrastructure/locales/hi-IN/index.js +43 -0
  200. package/lib/infrastructure/locales/hi-IN/index.js.map +1 -0
  201. package/lib/infrastructure/locales/hi-IN/navigation.json +58 -0
  202. package/lib/infrastructure/locales/hi-IN/onboarding.json +76 -0
  203. package/lib/infrastructure/locales/hi-IN/settings.json +53 -0
  204. package/lib/infrastructure/locales/hr-HR/branding.json +9 -0
  205. package/lib/infrastructure/locales/hr-HR/datetime.json +140 -0
  206. package/lib/infrastructure/locales/hr-HR/errors.json +43 -0
  207. package/lib/infrastructure/locales/hr-HR/flashcards.json +276 -0
  208. package/lib/infrastructure/locales/hr-HR/general.json +61 -0
  209. package/lib/infrastructure/locales/hr-HR/index.d.ts +734 -0
  210. package/lib/infrastructure/locales/hr-HR/index.d.ts.map +1 -0
  211. package/lib/infrastructure/locales/hr-HR/index.js +43 -0
  212. package/lib/infrastructure/locales/hr-HR/index.js.map +1 -0
  213. package/lib/infrastructure/locales/hr-HR/navigation.json +58 -0
  214. package/lib/infrastructure/locales/hr-HR/onboarding.json +76 -0
  215. package/lib/infrastructure/locales/hr-HR/settings.json +53 -0
  216. package/lib/infrastructure/locales/hu-HU/branding.json +9 -0
  217. package/lib/infrastructure/locales/hu-HU/datetime.json +140 -0
  218. package/lib/infrastructure/locales/hu-HU/errors.json +43 -0
  219. package/lib/infrastructure/locales/hu-HU/flashcards.json +287 -0
  220. package/lib/infrastructure/locales/hu-HU/general.json +61 -0
  221. package/lib/infrastructure/locales/hu-HU/index.d.ts +745 -0
  222. package/lib/infrastructure/locales/hu-HU/index.d.ts.map +1 -0
  223. package/lib/infrastructure/locales/hu-HU/index.js +43 -0
  224. package/lib/infrastructure/locales/hu-HU/index.js.map +1 -0
  225. package/lib/infrastructure/locales/hu-HU/navigation.json +58 -0
  226. package/lib/infrastructure/locales/hu-HU/onboarding.json +76 -0
  227. package/lib/infrastructure/locales/hu-HU/settings.json +53 -0
  228. package/lib/infrastructure/locales/id-ID/branding.json +9 -0
  229. package/lib/infrastructure/locales/id-ID/datetime.json +140 -0
  230. package/lib/infrastructure/locales/id-ID/errors.json +43 -0
  231. package/lib/infrastructure/locales/id-ID/flashcards.json +287 -0
  232. package/lib/infrastructure/locales/id-ID/general.json +61 -0
  233. package/lib/infrastructure/locales/id-ID/index.d.ts +745 -0
  234. package/lib/infrastructure/locales/id-ID/index.d.ts.map +1 -0
  235. package/lib/infrastructure/locales/id-ID/index.js +43 -0
  236. package/lib/infrastructure/locales/id-ID/index.js.map +1 -0
  237. package/lib/infrastructure/locales/id-ID/navigation.json +58 -0
  238. package/lib/infrastructure/locales/id-ID/onboarding.json +76 -0
  239. package/lib/infrastructure/locales/id-ID/settings.json +53 -0
  240. package/lib/infrastructure/locales/it-IT/branding.json +9 -0
  241. package/lib/infrastructure/locales/it-IT/datetime.json +140 -0
  242. package/lib/infrastructure/locales/it-IT/errors.json +43 -0
  243. package/lib/infrastructure/locales/it-IT/flashcards.json +287 -0
  244. package/lib/infrastructure/locales/it-IT/general.json +61 -0
  245. package/lib/infrastructure/locales/it-IT/index.d.ts +745 -0
  246. package/lib/infrastructure/locales/it-IT/index.d.ts.map +1 -0
  247. package/lib/infrastructure/locales/it-IT/index.js +43 -0
  248. package/lib/infrastructure/locales/it-IT/index.js.map +1 -0
  249. package/lib/infrastructure/locales/it-IT/navigation.json +58 -0
  250. package/lib/infrastructure/locales/it-IT/onboarding.json +76 -0
  251. package/lib/infrastructure/locales/it-IT/settings.json +53 -0
  252. package/lib/infrastructure/locales/ja-JP/branding.json +9 -0
  253. package/lib/infrastructure/locales/ja-JP/datetime.json +140 -0
  254. package/lib/infrastructure/locales/ja-JP/errors.json +43 -0
  255. package/lib/infrastructure/locales/ja-JP/flashcards.json +287 -0
  256. package/lib/infrastructure/locales/ja-JP/general.json +61 -0
  257. package/lib/infrastructure/locales/ja-JP/index.d.ts +745 -0
  258. package/lib/infrastructure/locales/ja-JP/index.d.ts.map +1 -0
  259. package/lib/infrastructure/locales/ja-JP/index.js +43 -0
  260. package/lib/infrastructure/locales/ja-JP/index.js.map +1 -0
  261. package/lib/infrastructure/locales/ja-JP/navigation.json +58 -0
  262. package/lib/infrastructure/locales/ja-JP/onboarding.json +76 -0
  263. package/lib/infrastructure/locales/ja-JP/settings.json +53 -0
  264. package/lib/infrastructure/locales/ko-KR/branding.json +9 -0
  265. package/lib/infrastructure/locales/ko-KR/datetime.json +140 -0
  266. package/lib/infrastructure/locales/ko-KR/errors.json +43 -0
  267. package/lib/infrastructure/locales/ko-KR/flashcards.json +287 -0
  268. package/lib/infrastructure/locales/ko-KR/general.json +61 -0
  269. package/lib/infrastructure/locales/ko-KR/index.d.ts +745 -0
  270. package/lib/infrastructure/locales/ko-KR/index.d.ts.map +1 -0
  271. package/lib/infrastructure/locales/ko-KR/index.js +43 -0
  272. package/lib/infrastructure/locales/ko-KR/index.js.map +1 -0
  273. package/lib/infrastructure/locales/ko-KR/navigation.json +58 -0
  274. package/lib/infrastructure/locales/ko-KR/onboarding.json +76 -0
  275. package/lib/infrastructure/locales/ko-KR/settings.json +53 -0
  276. package/lib/infrastructure/locales/ms-MY/branding.json +9 -0
  277. package/lib/infrastructure/locales/ms-MY/datetime.json +140 -0
  278. package/lib/infrastructure/locales/ms-MY/errors.json +43 -0
  279. package/lib/infrastructure/locales/ms-MY/flashcards.json +287 -0
  280. package/lib/infrastructure/locales/ms-MY/general.json +61 -0
  281. package/lib/infrastructure/locales/ms-MY/index.d.ts +745 -0
  282. package/lib/infrastructure/locales/ms-MY/index.d.ts.map +1 -0
  283. package/lib/infrastructure/locales/ms-MY/index.js +43 -0
  284. package/lib/infrastructure/locales/ms-MY/index.js.map +1 -0
  285. package/lib/infrastructure/locales/ms-MY/navigation.json +58 -0
  286. package/lib/infrastructure/locales/ms-MY/onboarding.json +76 -0
  287. package/lib/infrastructure/locales/ms-MY/settings.json +53 -0
  288. package/lib/infrastructure/locales/nl-NL/branding.json +9 -0
  289. package/lib/infrastructure/locales/nl-NL/datetime.json +140 -0
  290. package/lib/infrastructure/locales/nl-NL/errors.json +43 -0
  291. package/lib/infrastructure/locales/nl-NL/flashcards.json +287 -0
  292. package/lib/infrastructure/locales/nl-NL/general.json +61 -0
  293. package/lib/infrastructure/locales/nl-NL/index.d.ts +745 -0
  294. package/lib/infrastructure/locales/nl-NL/index.d.ts.map +1 -0
  295. package/lib/infrastructure/locales/nl-NL/index.js +43 -0
  296. package/lib/infrastructure/locales/nl-NL/index.js.map +1 -0
  297. package/lib/infrastructure/locales/nl-NL/navigation.json +58 -0
  298. package/lib/infrastructure/locales/nl-NL/onboarding.json +76 -0
  299. package/lib/infrastructure/locales/nl-NL/settings.json +53 -0
  300. package/lib/infrastructure/locales/no-NO/branding.json +9 -0
  301. package/lib/infrastructure/locales/no-NO/datetime.json +140 -0
  302. package/lib/infrastructure/locales/no-NO/errors.json +43 -0
  303. package/lib/infrastructure/locales/no-NO/flashcards.json +287 -0
  304. package/lib/infrastructure/locales/no-NO/general.json +61 -0
  305. package/lib/infrastructure/locales/no-NO/index.d.ts +745 -0
  306. package/lib/infrastructure/locales/no-NO/index.d.ts.map +1 -0
  307. package/lib/infrastructure/locales/no-NO/index.js +43 -0
  308. package/lib/infrastructure/locales/no-NO/index.js.map +1 -0
  309. package/lib/infrastructure/locales/no-NO/navigation.json +58 -0
  310. package/lib/infrastructure/locales/no-NO/onboarding.json +76 -0
  311. package/lib/infrastructure/locales/no-NO/settings.json +53 -0
  312. package/lib/infrastructure/locales/pl-PL/branding.json +9 -0
  313. package/lib/infrastructure/locales/pl-PL/datetime.json +140 -0
  314. package/lib/infrastructure/locales/pl-PL/errors.json +43 -0
  315. package/lib/infrastructure/locales/pl-PL/flashcards.json +287 -0
  316. package/lib/infrastructure/locales/pl-PL/general.json +61 -0
  317. package/lib/infrastructure/locales/pl-PL/index.d.ts +745 -0
  318. package/lib/infrastructure/locales/pl-PL/index.d.ts.map +1 -0
  319. package/lib/infrastructure/locales/pl-PL/index.js +43 -0
  320. package/lib/infrastructure/locales/pl-PL/index.js.map +1 -0
  321. package/lib/infrastructure/locales/pl-PL/navigation.json +58 -0
  322. package/lib/infrastructure/locales/pl-PL/onboarding.json +76 -0
  323. package/lib/infrastructure/locales/pl-PL/settings.json +53 -0
  324. package/lib/infrastructure/locales/pt-BR/branding.json +9 -0
  325. package/lib/infrastructure/locales/pt-BR/datetime.json +140 -0
  326. package/lib/infrastructure/locales/pt-BR/errors.json +43 -0
  327. package/lib/infrastructure/locales/pt-BR/flashcards.json +287 -0
  328. package/lib/infrastructure/locales/pt-BR/general.json +61 -0
  329. package/lib/infrastructure/locales/pt-BR/index.d.ts +745 -0
  330. package/lib/infrastructure/locales/pt-BR/index.d.ts.map +1 -0
  331. package/lib/infrastructure/locales/pt-BR/index.js +43 -0
  332. package/lib/infrastructure/locales/pt-BR/index.js.map +1 -0
  333. package/lib/infrastructure/locales/pt-BR/navigation.json +58 -0
  334. package/lib/infrastructure/locales/pt-BR/onboarding.json +76 -0
  335. package/lib/infrastructure/locales/pt-BR/settings.json +53 -0
  336. package/lib/infrastructure/locales/pt-PT/branding.json +9 -0
  337. package/lib/infrastructure/locales/pt-PT/datetime.json +140 -0
  338. package/lib/infrastructure/locales/pt-PT/errors.json +43 -0
  339. package/lib/infrastructure/locales/pt-PT/flashcards.json +287 -0
  340. package/lib/infrastructure/locales/pt-PT/general.json +61 -0
  341. package/lib/infrastructure/locales/pt-PT/index.d.ts +745 -0
  342. package/lib/infrastructure/locales/pt-PT/index.d.ts.map +1 -0
  343. package/lib/infrastructure/locales/pt-PT/index.js +43 -0
  344. package/lib/infrastructure/locales/pt-PT/index.js.map +1 -0
  345. package/lib/infrastructure/locales/pt-PT/navigation.json +58 -0
  346. package/lib/infrastructure/locales/pt-PT/onboarding.json +76 -0
  347. package/lib/infrastructure/locales/pt-PT/settings.json +53 -0
  348. package/lib/infrastructure/locales/ro-RO/branding.json +9 -0
  349. package/lib/infrastructure/locales/ro-RO/datetime.json +140 -0
  350. package/lib/infrastructure/locales/ro-RO/errors.json +43 -0
  351. package/lib/infrastructure/locales/ro-RO/flashcards.json +287 -0
  352. package/lib/infrastructure/locales/ro-RO/general.json +61 -0
  353. package/lib/infrastructure/locales/ro-RO/index.d.ts +745 -0
  354. package/lib/infrastructure/locales/ro-RO/index.d.ts.map +1 -0
  355. package/lib/infrastructure/locales/ro-RO/index.js +43 -0
  356. package/lib/infrastructure/locales/ro-RO/index.js.map +1 -0
  357. package/lib/infrastructure/locales/ro-RO/navigation.json +58 -0
  358. package/lib/infrastructure/locales/ro-RO/onboarding.json +76 -0
  359. package/lib/infrastructure/locales/ro-RO/settings.json +53 -0
  360. package/lib/infrastructure/locales/ru-RU/branding.json +9 -0
  361. package/lib/infrastructure/locales/ru-RU/datetime.json +140 -0
  362. package/lib/infrastructure/locales/ru-RU/errors.json +43 -0
  363. package/lib/infrastructure/locales/ru-RU/flashcards.json +276 -0
  364. package/lib/infrastructure/locales/ru-RU/general.json +61 -0
  365. package/lib/infrastructure/locales/ru-RU/index.d.ts +734 -0
  366. package/lib/infrastructure/locales/ru-RU/index.d.ts.map +1 -0
  367. package/lib/infrastructure/locales/ru-RU/index.js +43 -0
  368. package/lib/infrastructure/locales/ru-RU/index.js.map +1 -0
  369. package/lib/infrastructure/locales/ru-RU/navigation.json +58 -0
  370. package/lib/infrastructure/locales/ru-RU/onboarding.json +76 -0
  371. package/lib/infrastructure/locales/ru-RU/settings.json +53 -0
  372. package/lib/infrastructure/locales/sk-SK/branding.json +9 -0
  373. package/lib/infrastructure/locales/sk-SK/datetime.json +140 -0
  374. package/lib/infrastructure/locales/sk-SK/errors.json +43 -0
  375. package/lib/infrastructure/locales/sk-SK/flashcards.json +287 -0
  376. package/lib/infrastructure/locales/sk-SK/general.json +61 -0
  377. package/lib/infrastructure/locales/sk-SK/index.d.ts +745 -0
  378. package/lib/infrastructure/locales/sk-SK/index.d.ts.map +1 -0
  379. package/lib/infrastructure/locales/sk-SK/index.js +43 -0
  380. package/lib/infrastructure/locales/sk-SK/index.js.map +1 -0
  381. package/lib/infrastructure/locales/sk-SK/navigation.json +58 -0
  382. package/lib/infrastructure/locales/sk-SK/onboarding.json +76 -0
  383. package/lib/infrastructure/locales/sk-SK/settings.json +53 -0
  384. package/lib/infrastructure/locales/sv-SE/branding.json +9 -0
  385. package/lib/infrastructure/locales/sv-SE/datetime.json +140 -0
  386. package/lib/infrastructure/locales/sv-SE/errors.json +43 -0
  387. package/lib/infrastructure/locales/sv-SE/flashcards.json +287 -0
  388. package/lib/infrastructure/locales/sv-SE/general.json +61 -0
  389. package/lib/infrastructure/locales/sv-SE/index.d.ts +745 -0
  390. package/lib/infrastructure/locales/sv-SE/index.d.ts.map +1 -0
  391. package/lib/infrastructure/locales/sv-SE/index.js +43 -0
  392. package/lib/infrastructure/locales/sv-SE/index.js.map +1 -0
  393. package/lib/infrastructure/locales/sv-SE/navigation.json +58 -0
  394. package/lib/infrastructure/locales/sv-SE/onboarding.json +76 -0
  395. package/lib/infrastructure/locales/sv-SE/settings.json +53 -0
  396. package/lib/infrastructure/locales/th-TH/branding.json +9 -0
  397. package/lib/infrastructure/locales/th-TH/datetime.json +140 -0
  398. package/lib/infrastructure/locales/th-TH/errors.json +43 -0
  399. package/lib/infrastructure/locales/th-TH/flashcards.json +287 -0
  400. package/lib/infrastructure/locales/th-TH/general.json +61 -0
  401. package/lib/infrastructure/locales/th-TH/index.d.ts +745 -0
  402. package/lib/infrastructure/locales/th-TH/index.d.ts.map +1 -0
  403. package/lib/infrastructure/locales/th-TH/index.js +43 -0
  404. package/lib/infrastructure/locales/th-TH/index.js.map +1 -0
  405. package/lib/infrastructure/locales/th-TH/navigation.json +58 -0
  406. package/lib/infrastructure/locales/th-TH/onboarding.json +76 -0
  407. package/lib/infrastructure/locales/th-TH/settings.json +53 -0
  408. package/lib/infrastructure/locales/tl-PH/branding.json +9 -0
  409. package/lib/infrastructure/locales/tl-PH/datetime.json +140 -0
  410. package/lib/infrastructure/locales/tl-PH/errors.json +43 -0
  411. package/lib/infrastructure/locales/tl-PH/flashcards.json +287 -0
  412. package/lib/infrastructure/locales/tl-PH/general.json +61 -0
  413. package/lib/infrastructure/locales/tl-PH/index.d.ts +745 -0
  414. package/lib/infrastructure/locales/tl-PH/index.d.ts.map +1 -0
  415. package/lib/infrastructure/locales/tl-PH/index.js +43 -0
  416. package/lib/infrastructure/locales/tl-PH/index.js.map +1 -0
  417. package/lib/infrastructure/locales/tl-PH/navigation.json +58 -0
  418. package/lib/infrastructure/locales/tl-PH/onboarding.json +76 -0
  419. package/lib/infrastructure/locales/tl-PH/settings.json +53 -0
  420. package/lib/infrastructure/locales/tr-TR/branding.json +9 -0
  421. package/lib/infrastructure/locales/tr-TR/datetime.json +140 -0
  422. package/lib/infrastructure/locales/tr-TR/errors.json +43 -0
  423. package/lib/infrastructure/locales/tr-TR/flashcards.json +287 -0
  424. package/lib/infrastructure/locales/tr-TR/general.json +61 -0
  425. package/lib/infrastructure/locales/tr-TR/index.d.ts +745 -0
  426. package/lib/infrastructure/locales/tr-TR/index.d.ts.map +1 -0
  427. package/lib/infrastructure/locales/tr-TR/index.js +43 -0
  428. package/lib/infrastructure/locales/tr-TR/index.js.map +1 -0
  429. package/lib/infrastructure/locales/tr-TR/navigation.json +58 -0
  430. package/lib/infrastructure/locales/tr-TR/onboarding.json +76 -0
  431. package/lib/infrastructure/locales/tr-TR/settings.json +53 -0
  432. package/lib/infrastructure/locales/uk-UA/branding.json +9 -0
  433. package/lib/infrastructure/locales/uk-UA/datetime.json +140 -0
  434. package/lib/infrastructure/locales/uk-UA/errors.json +43 -0
  435. package/lib/infrastructure/locales/uk-UA/flashcards.json +287 -0
  436. package/lib/infrastructure/locales/uk-UA/general.json +61 -0
  437. package/lib/infrastructure/locales/uk-UA/index.d.ts +745 -0
  438. package/lib/infrastructure/locales/uk-UA/index.d.ts.map +1 -0
  439. package/lib/infrastructure/locales/uk-UA/index.js +43 -0
  440. package/lib/infrastructure/locales/uk-UA/index.js.map +1 -0
  441. package/lib/infrastructure/locales/uk-UA/navigation.json +58 -0
  442. package/lib/infrastructure/locales/uk-UA/onboarding.json +76 -0
  443. package/lib/infrastructure/locales/uk-UA/settings.json +53 -0
  444. package/lib/infrastructure/locales/vi-VN/branding.json +9 -0
  445. package/lib/infrastructure/locales/vi-VN/datetime.json +140 -0
  446. package/lib/infrastructure/locales/vi-VN/errors.json +43 -0
  447. package/lib/infrastructure/locales/vi-VN/flashcards.json +287 -0
  448. package/lib/infrastructure/locales/vi-VN/general.json +61 -0
  449. package/lib/infrastructure/locales/vi-VN/index.d.ts +745 -0
  450. package/lib/infrastructure/locales/vi-VN/index.d.ts.map +1 -0
  451. package/lib/infrastructure/locales/vi-VN/index.js +43 -0
  452. package/lib/infrastructure/locales/vi-VN/index.js.map +1 -0
  453. package/lib/infrastructure/locales/vi-VN/navigation.json +58 -0
  454. package/lib/infrastructure/locales/vi-VN/onboarding.json +76 -0
  455. package/lib/infrastructure/locales/vi-VN/settings.json +53 -0
  456. package/lib/infrastructure/locales/zh-CN/branding.json +9 -0
  457. package/lib/infrastructure/locales/zh-CN/datetime.json +140 -0
  458. package/lib/infrastructure/locales/zh-CN/errors.json +43 -0
  459. package/lib/infrastructure/locales/zh-CN/flashcards.json +287 -0
  460. package/lib/infrastructure/locales/zh-CN/general.json +61 -0
  461. package/lib/infrastructure/locales/zh-CN/index.d.ts +745 -0
  462. package/lib/infrastructure/locales/zh-CN/index.d.ts.map +1 -0
  463. package/lib/infrastructure/locales/zh-CN/index.js +43 -0
  464. package/lib/infrastructure/locales/zh-CN/index.js.map +1 -0
  465. package/lib/infrastructure/locales/zh-CN/navigation.json +58 -0
  466. package/lib/infrastructure/locales/zh-CN/onboarding.json +76 -0
  467. package/lib/infrastructure/locales/zh-CN/settings.json +53 -0
  468. package/lib/infrastructure/locales/zh-TW/branding.json +9 -0
  469. package/lib/infrastructure/locales/zh-TW/datetime.json +140 -0
  470. package/lib/infrastructure/locales/zh-TW/errors.json +43 -0
  471. package/lib/infrastructure/locales/zh-TW/flashcards.json +287 -0
  472. package/lib/infrastructure/locales/zh-TW/general.json +61 -0
  473. package/lib/infrastructure/locales/zh-TW/index.d.ts +745 -0
  474. package/lib/infrastructure/locales/zh-TW/index.d.ts.map +1 -0
  475. package/lib/infrastructure/locales/zh-TW/index.js +43 -0
  476. package/lib/infrastructure/locales/zh-TW/index.js.map +1 -0
  477. package/lib/infrastructure/locales/zh-TW/navigation.json +58 -0
  478. package/lib/infrastructure/locales/zh-TW/onboarding.json +76 -0
  479. package/lib/infrastructure/locales/zh-TW/settings.json +53 -0
  480. package/lib/infrastructure/storage/AsyncStorageWrapper.d.ts.map +1 -1
  481. package/lib/infrastructure/storage/AsyncStorageWrapper.js +6 -2
  482. package/lib/infrastructure/storage/AsyncStorageWrapper.js.map +1 -1
  483. package/lib/infrastructure/storage/LocalizationStore.d.ts +7 -2
  484. package/lib/infrastructure/storage/LocalizationStore.d.ts.map +1 -1
  485. package/lib/infrastructure/storage/LocalizationStore.js +116 -35
  486. package/lib/infrastructure/storage/LocalizationStore.js.map +1 -1
  487. package/package.json +9 -2
  488. package/scripts/check-translations.js +354 -0
  489. package/scripts/createLocaleLoaders.js +178 -0
  490. package/scripts/remove-unused-keys.js +216 -0
  491. package/scripts/setup-languages.js +122 -0
  492. package/scripts/translate-missing.js +500 -0
  493. package/scripts/utils/findLocalesDir.js +79 -0
  494. package/src/infrastructure/config/i18n.ts +195 -27
  495. package/src/infrastructure/config/languages.ts +3 -3
  496. package/src/infrastructure/config/languagesData.ts +3 -2
  497. package/src/infrastructure/locales/ar-SA/auth.json +32 -0
  498. package/src/infrastructure/locales/ar-SA/branding.json +9 -0
  499. package/src/infrastructure/locales/ar-SA/datetime.json +140 -0
  500. package/src/infrastructure/locales/ar-SA/errors.json +43 -0
  501. package/src/infrastructure/locales/ar-SA/flashcards.json +287 -0
  502. package/src/infrastructure/locales/ar-SA/general.json +61 -0
  503. package/src/infrastructure/locales/ar-SA/index.ts +48 -0
  504. package/src/infrastructure/locales/ar-SA/navigation.json +58 -0
  505. package/src/infrastructure/locales/ar-SA/onboarding.json +76 -0
  506. package/src/infrastructure/locales/ar-SA/settings.json +53 -0
  507. package/src/infrastructure/locales/bg-BG/auth.json +32 -0
  508. package/src/infrastructure/locales/bg-BG/branding.json +9 -0
  509. package/src/infrastructure/locales/bg-BG/datetime.json +140 -0
  510. package/src/infrastructure/locales/bg-BG/errors.json +43 -0
  511. package/src/infrastructure/locales/bg-BG/flashcards.json +287 -0
  512. package/src/infrastructure/locales/bg-BG/general.json +61 -0
  513. package/src/infrastructure/locales/bg-BG/index.ts +48 -0
  514. package/src/infrastructure/locales/bg-BG/navigation.json +58 -0
  515. package/src/infrastructure/locales/bg-BG/onboarding.json +76 -0
  516. package/src/infrastructure/locales/bg-BG/settings.json +53 -0
  517. package/src/infrastructure/locales/cs-CZ/auth.json +32 -0
  518. package/src/infrastructure/locales/cs-CZ/branding.json +9 -0
  519. package/src/infrastructure/locales/cs-CZ/datetime.json +140 -0
  520. package/src/infrastructure/locales/cs-CZ/errors.json +43 -0
  521. package/src/infrastructure/locales/cs-CZ/flashcards.json +287 -0
  522. package/src/infrastructure/locales/cs-CZ/general.json +61 -0
  523. package/src/infrastructure/locales/cs-CZ/index.ts +45 -0
  524. package/src/infrastructure/locales/cs-CZ/navigation.json +58 -0
  525. package/src/infrastructure/locales/cs-CZ/onboarding.json +76 -0
  526. package/src/infrastructure/locales/cs-CZ/settings.json +53 -0
  527. package/src/infrastructure/locales/da-DK/auth.json +32 -0
  528. package/src/infrastructure/locales/da-DK/branding.json +9 -0
  529. package/src/infrastructure/locales/da-DK/datetime.json +140 -0
  530. package/src/infrastructure/locales/da-DK/errors.json +43 -0
  531. package/src/infrastructure/locales/da-DK/flashcards.json +287 -0
  532. package/src/infrastructure/locales/da-DK/general.json +61 -0
  533. package/src/infrastructure/locales/da-DK/index.ts +45 -0
  534. package/src/infrastructure/locales/da-DK/navigation.json +58 -0
  535. package/src/infrastructure/locales/da-DK/onboarding.json +76 -0
  536. package/src/infrastructure/locales/da-DK/settings.json +53 -0
  537. package/src/infrastructure/locales/de-DE/auth.json +32 -0
  538. package/src/infrastructure/locales/de-DE/branding.json +9 -0
  539. package/src/infrastructure/locales/de-DE/datetime.json +140 -0
  540. package/src/infrastructure/locales/de-DE/errors.json +43 -0
  541. package/src/infrastructure/locales/de-DE/flashcards.json +287 -0
  542. package/src/infrastructure/locales/de-DE/general.json +61 -0
  543. package/src/infrastructure/locales/de-DE/index.ts +45 -0
  544. package/src/infrastructure/locales/de-DE/navigation.json +58 -0
  545. package/src/infrastructure/locales/de-DE/onboarding.json +76 -0
  546. package/src/infrastructure/locales/de-DE/settings.json +53 -0
  547. package/src/infrastructure/locales/el-GR/auth.json +32 -0
  548. package/src/infrastructure/locales/el-GR/branding.json +9 -0
  549. package/src/infrastructure/locales/el-GR/datetime.json +140 -0
  550. package/src/infrastructure/locales/el-GR/errors.json +43 -0
  551. package/src/infrastructure/locales/el-GR/flashcards.json +287 -0
  552. package/src/infrastructure/locales/el-GR/general.json +61 -0
  553. package/src/infrastructure/locales/el-GR/index.ts +45 -0
  554. package/src/infrastructure/locales/el-GR/navigation.json +58 -0
  555. package/src/infrastructure/locales/el-GR/onboarding.json +76 -0
  556. package/src/infrastructure/locales/el-GR/settings.json +53 -0
  557. package/src/infrastructure/locales/en-AU/branding.json +11 -0
  558. package/src/infrastructure/locales/en-AU/datetime.json +140 -0
  559. package/src/infrastructure/locales/en-AU/errors.json +43 -0
  560. package/src/infrastructure/locales/en-AU/flashcards.json +83 -0
  561. package/src/infrastructure/locales/en-AU/general.json +61 -0
  562. package/src/infrastructure/locales/en-AU/index.ts +45 -0
  563. package/src/infrastructure/locales/en-AU/navigation.json +58 -0
  564. package/src/infrastructure/locales/en-AU/onboarding.json +76 -0
  565. package/src/infrastructure/locales/en-AU/settings.json +53 -0
  566. package/src/infrastructure/locales/en-CA/branding.json +11 -0
  567. package/src/infrastructure/locales/en-CA/datetime.json +140 -0
  568. package/src/infrastructure/locales/en-CA/errors.json +43 -0
  569. package/src/infrastructure/locales/en-CA/flashcards.json +83 -0
  570. package/src/infrastructure/locales/en-CA/general.json +61 -0
  571. package/src/infrastructure/locales/en-CA/index.ts +45 -0
  572. package/src/infrastructure/locales/en-CA/navigation.json +58 -0
  573. package/src/infrastructure/locales/en-CA/onboarding.json +76 -0
  574. package/src/infrastructure/locales/en-CA/settings.json +53 -0
  575. package/src/infrastructure/locales/en-GB/branding.json +11 -0
  576. package/src/infrastructure/locales/en-GB/datetime.json +140 -0
  577. package/src/infrastructure/locales/en-GB/errors.json +43 -0
  578. package/src/infrastructure/locales/en-GB/flashcards.json +83 -0
  579. package/src/infrastructure/locales/en-GB/general.json +61 -0
  580. package/src/infrastructure/locales/en-GB/index.ts +45 -0
  581. package/src/infrastructure/locales/en-GB/navigation.json +58 -0
  582. package/src/infrastructure/locales/en-GB/onboarding.json +76 -0
  583. package/src/infrastructure/locales/en-GB/settings.json +53 -0
  584. package/src/infrastructure/locales/en-US/auth.json +32 -0
  585. package/src/infrastructure/locales/en-US/branding.json +11 -0
  586. package/src/infrastructure/locales/en-US/flashcards.json +310 -0
  587. package/src/infrastructure/locales/en-US/general.json +6 -1
  588. package/src/infrastructure/locales/en-US/index.ts +31 -19
  589. package/src/infrastructure/locales/en-US/navigation.json +4 -1
  590. package/src/infrastructure/locales/en-US/settings.json +0 -12
  591. package/src/infrastructure/locales/es-ES/auth.json +32 -0
  592. package/src/infrastructure/locales/es-ES/branding.json +9 -0
  593. package/src/infrastructure/locales/es-ES/datetime.json +140 -0
  594. package/src/infrastructure/locales/es-ES/errors.json +43 -0
  595. package/src/infrastructure/locales/es-ES/flashcards.json +287 -0
  596. package/src/infrastructure/locales/es-ES/general.json +61 -0
  597. package/src/infrastructure/locales/es-ES/index.ts +45 -0
  598. package/src/infrastructure/locales/es-ES/navigation.json +58 -0
  599. package/src/infrastructure/locales/es-ES/onboarding.json +76 -0
  600. package/src/infrastructure/locales/es-ES/settings.json +53 -0
  601. package/src/infrastructure/locales/es-MX/auth.json +32 -0
  602. package/src/infrastructure/locales/es-MX/branding.json +9 -0
  603. package/src/infrastructure/locales/es-MX/datetime.json +140 -0
  604. package/src/infrastructure/locales/es-MX/errors.json +43 -0
  605. package/src/infrastructure/locales/es-MX/flashcards.json +276 -0
  606. package/src/infrastructure/locales/es-MX/general.json +61 -0
  607. package/src/infrastructure/locales/es-MX/index.ts +45 -0
  608. package/src/infrastructure/locales/es-MX/navigation.json +58 -0
  609. package/src/infrastructure/locales/es-MX/onboarding.json +76 -0
  610. package/src/infrastructure/locales/es-MX/settings.json +53 -0
  611. package/src/infrastructure/locales/fi-FI/auth.json +32 -0
  612. package/src/infrastructure/locales/fi-FI/branding.json +9 -0
  613. package/src/infrastructure/locales/fi-FI/datetime.json +140 -0
  614. package/src/infrastructure/locales/fi-FI/errors.json +43 -0
  615. package/src/infrastructure/locales/fi-FI/flashcards.json +287 -0
  616. package/src/infrastructure/locales/fi-FI/general.json +61 -0
  617. package/src/infrastructure/locales/fi-FI/index.ts +45 -0
  618. package/src/infrastructure/locales/fi-FI/navigation.json +58 -0
  619. package/src/infrastructure/locales/fi-FI/onboarding.json +76 -0
  620. package/src/infrastructure/locales/fi-FI/settings.json +53 -0
  621. package/src/infrastructure/locales/fr-CA/auth.json +32 -0
  622. package/src/infrastructure/locales/fr-CA/branding.json +9 -0
  623. package/src/infrastructure/locales/fr-CA/datetime.json +140 -0
  624. package/src/infrastructure/locales/fr-CA/errors.json +43 -0
  625. package/src/infrastructure/locales/fr-CA/flashcards.json +287 -0
  626. package/src/infrastructure/locales/fr-CA/general.json +61 -0
  627. package/src/infrastructure/locales/fr-CA/index.ts +45 -0
  628. package/src/infrastructure/locales/fr-CA/navigation.json +58 -0
  629. package/src/infrastructure/locales/fr-CA/onboarding.json +76 -0
  630. package/src/infrastructure/locales/fr-CA/settings.json +53 -0
  631. package/src/infrastructure/locales/fr-FR/auth.json +32 -0
  632. package/src/infrastructure/locales/fr-FR/branding.json +9 -0
  633. package/src/infrastructure/locales/fr-FR/datetime.json +140 -0
  634. package/src/infrastructure/locales/fr-FR/errors.json +43 -0
  635. package/src/infrastructure/locales/fr-FR/flashcards.json +287 -0
  636. package/src/infrastructure/locales/fr-FR/general.json +61 -0
  637. package/src/infrastructure/locales/fr-FR/index.ts +45 -0
  638. package/src/infrastructure/locales/fr-FR/navigation.json +58 -0
  639. package/src/infrastructure/locales/fr-FR/onboarding.json +76 -0
  640. package/src/infrastructure/locales/fr-FR/settings.json +53 -0
  641. package/src/infrastructure/locales/hi-IN/auth.json +32 -0
  642. package/src/infrastructure/locales/hi-IN/branding.json +9 -0
  643. package/src/infrastructure/locales/hi-IN/datetime.json +140 -0
  644. package/src/infrastructure/locales/hi-IN/errors.json +43 -0
  645. package/src/infrastructure/locales/hi-IN/flashcards.json +287 -0
  646. package/src/infrastructure/locales/hi-IN/general.json +61 -0
  647. package/src/infrastructure/locales/hi-IN/index.ts +45 -0
  648. package/src/infrastructure/locales/hi-IN/navigation.json +58 -0
  649. package/src/infrastructure/locales/hi-IN/onboarding.json +76 -0
  650. package/src/infrastructure/locales/hi-IN/settings.json +53 -0
  651. package/src/infrastructure/locales/hr-HR/auth.json +32 -0
  652. package/src/infrastructure/locales/hr-HR/branding.json +9 -0
  653. package/src/infrastructure/locales/hr-HR/datetime.json +140 -0
  654. package/src/infrastructure/locales/hr-HR/errors.json +43 -0
  655. package/src/infrastructure/locales/hr-HR/flashcards.json +276 -0
  656. package/src/infrastructure/locales/hr-HR/general.json +61 -0
  657. package/src/infrastructure/locales/hr-HR/index.ts +45 -0
  658. package/src/infrastructure/locales/hr-HR/navigation.json +58 -0
  659. package/src/infrastructure/locales/hr-HR/onboarding.json +76 -0
  660. package/src/infrastructure/locales/hr-HR/settings.json +53 -0
  661. package/src/infrastructure/locales/hu-HU/auth.json +32 -0
  662. package/src/infrastructure/locales/hu-HU/branding.json +9 -0
  663. package/src/infrastructure/locales/hu-HU/datetime.json +140 -0
  664. package/src/infrastructure/locales/hu-HU/errors.json +43 -0
  665. package/src/infrastructure/locales/hu-HU/flashcards.json +287 -0
  666. package/src/infrastructure/locales/hu-HU/general.json +61 -0
  667. package/src/infrastructure/locales/hu-HU/index.ts +45 -0
  668. package/src/infrastructure/locales/hu-HU/navigation.json +58 -0
  669. package/src/infrastructure/locales/hu-HU/onboarding.json +76 -0
  670. package/src/infrastructure/locales/hu-HU/settings.json +53 -0
  671. package/src/infrastructure/locales/id-ID/auth.json +32 -0
  672. package/src/infrastructure/locales/id-ID/branding.json +9 -0
  673. package/src/infrastructure/locales/id-ID/datetime.json +140 -0
  674. package/src/infrastructure/locales/id-ID/errors.json +43 -0
  675. package/src/infrastructure/locales/id-ID/flashcards.json +287 -0
  676. package/src/infrastructure/locales/id-ID/general.json +61 -0
  677. package/src/infrastructure/locales/id-ID/index.ts +45 -0
  678. package/src/infrastructure/locales/id-ID/navigation.json +58 -0
  679. package/src/infrastructure/locales/id-ID/onboarding.json +76 -0
  680. package/src/infrastructure/locales/id-ID/settings.json +53 -0
  681. package/src/infrastructure/locales/it-IT/auth.json +32 -0
  682. package/src/infrastructure/locales/it-IT/branding.json +9 -0
  683. package/src/infrastructure/locales/it-IT/datetime.json +140 -0
  684. package/src/infrastructure/locales/it-IT/errors.json +43 -0
  685. package/src/infrastructure/locales/it-IT/flashcards.json +287 -0
  686. package/src/infrastructure/locales/it-IT/general.json +61 -0
  687. package/src/infrastructure/locales/it-IT/index.ts +45 -0
  688. package/src/infrastructure/locales/it-IT/navigation.json +58 -0
  689. package/src/infrastructure/locales/it-IT/onboarding.json +76 -0
  690. package/src/infrastructure/locales/it-IT/settings.json +53 -0
  691. package/src/infrastructure/locales/ja-JP/auth.json +32 -0
  692. package/src/infrastructure/locales/ja-JP/branding.json +9 -0
  693. package/src/infrastructure/locales/ja-JP/datetime.json +140 -0
  694. package/src/infrastructure/locales/ja-JP/errors.json +43 -0
  695. package/src/infrastructure/locales/ja-JP/flashcards.json +287 -0
  696. package/src/infrastructure/locales/ja-JP/general.json +61 -0
  697. package/src/infrastructure/locales/ja-JP/index.ts +45 -0
  698. package/src/infrastructure/locales/ja-JP/navigation.json +58 -0
  699. package/src/infrastructure/locales/ja-JP/onboarding.json +76 -0
  700. package/src/infrastructure/locales/ja-JP/settings.json +53 -0
  701. package/src/infrastructure/locales/ko-KR/auth.json +32 -0
  702. package/src/infrastructure/locales/ko-KR/branding.json +9 -0
  703. package/src/infrastructure/locales/ko-KR/datetime.json +140 -0
  704. package/src/infrastructure/locales/ko-KR/errors.json +43 -0
  705. package/src/infrastructure/locales/ko-KR/flashcards.json +287 -0
  706. package/src/infrastructure/locales/ko-KR/general.json +61 -0
  707. package/src/infrastructure/locales/ko-KR/index.ts +45 -0
  708. package/src/infrastructure/locales/ko-KR/navigation.json +58 -0
  709. package/src/infrastructure/locales/ko-KR/onboarding.json +76 -0
  710. package/src/infrastructure/locales/ko-KR/settings.json +53 -0
  711. package/src/infrastructure/locales/ms-MY/auth.json +32 -0
  712. package/src/infrastructure/locales/ms-MY/branding.json +9 -0
  713. package/src/infrastructure/locales/ms-MY/datetime.json +140 -0
  714. package/src/infrastructure/locales/ms-MY/errors.json +43 -0
  715. package/src/infrastructure/locales/ms-MY/flashcards.json +287 -0
  716. package/src/infrastructure/locales/ms-MY/general.json +61 -0
  717. package/src/infrastructure/locales/ms-MY/index.ts +45 -0
  718. package/src/infrastructure/locales/ms-MY/navigation.json +58 -0
  719. package/src/infrastructure/locales/ms-MY/onboarding.json +76 -0
  720. package/src/infrastructure/locales/ms-MY/settings.json +53 -0
  721. package/src/infrastructure/locales/nl-NL/auth.json +32 -0
  722. package/src/infrastructure/locales/nl-NL/branding.json +9 -0
  723. package/src/infrastructure/locales/nl-NL/datetime.json +140 -0
  724. package/src/infrastructure/locales/nl-NL/errors.json +43 -0
  725. package/src/infrastructure/locales/nl-NL/flashcards.json +287 -0
  726. package/src/infrastructure/locales/nl-NL/general.json +61 -0
  727. package/src/infrastructure/locales/nl-NL/index.ts +45 -0
  728. package/src/infrastructure/locales/nl-NL/navigation.json +58 -0
  729. package/src/infrastructure/locales/nl-NL/onboarding.json +76 -0
  730. package/src/infrastructure/locales/nl-NL/settings.json +53 -0
  731. package/src/infrastructure/locales/no-NO/auth.json +32 -0
  732. package/src/infrastructure/locales/no-NO/branding.json +9 -0
  733. package/src/infrastructure/locales/no-NO/datetime.json +140 -0
  734. package/src/infrastructure/locales/no-NO/errors.json +43 -0
  735. package/src/infrastructure/locales/no-NO/flashcards.json +287 -0
  736. package/src/infrastructure/locales/no-NO/general.json +61 -0
  737. package/src/infrastructure/locales/no-NO/index.ts +45 -0
  738. package/src/infrastructure/locales/no-NO/navigation.json +58 -0
  739. package/src/infrastructure/locales/no-NO/onboarding.json +76 -0
  740. package/src/infrastructure/locales/no-NO/settings.json +53 -0
  741. package/src/infrastructure/locales/pl-PL/auth.json +32 -0
  742. package/src/infrastructure/locales/pl-PL/branding.json +9 -0
  743. package/src/infrastructure/locales/pl-PL/datetime.json +140 -0
  744. package/src/infrastructure/locales/pl-PL/errors.json +43 -0
  745. package/src/infrastructure/locales/pl-PL/flashcards.json +287 -0
  746. package/src/infrastructure/locales/pl-PL/general.json +61 -0
  747. package/src/infrastructure/locales/pl-PL/index.ts +45 -0
  748. package/src/infrastructure/locales/pl-PL/navigation.json +58 -0
  749. package/src/infrastructure/locales/pl-PL/onboarding.json +76 -0
  750. package/src/infrastructure/locales/pl-PL/settings.json +53 -0
  751. package/src/infrastructure/locales/pt-BR/auth.json +32 -0
  752. package/src/infrastructure/locales/pt-BR/branding.json +9 -0
  753. package/src/infrastructure/locales/pt-BR/datetime.json +140 -0
  754. package/src/infrastructure/locales/pt-BR/errors.json +43 -0
  755. package/src/infrastructure/locales/pt-BR/flashcards.json +287 -0
  756. package/src/infrastructure/locales/pt-BR/general.json +61 -0
  757. package/src/infrastructure/locales/pt-BR/index.ts +45 -0
  758. package/src/infrastructure/locales/pt-BR/navigation.json +58 -0
  759. package/src/infrastructure/locales/pt-BR/onboarding.json +76 -0
  760. package/src/infrastructure/locales/pt-BR/settings.json +53 -0
  761. package/src/infrastructure/locales/pt-PT/auth.json +32 -0
  762. package/src/infrastructure/locales/pt-PT/branding.json +9 -0
  763. package/src/infrastructure/locales/pt-PT/datetime.json +140 -0
  764. package/src/infrastructure/locales/pt-PT/errors.json +43 -0
  765. package/src/infrastructure/locales/pt-PT/flashcards.json +287 -0
  766. package/src/infrastructure/locales/pt-PT/general.json +61 -0
  767. package/src/infrastructure/locales/pt-PT/index.ts +45 -0
  768. package/src/infrastructure/locales/pt-PT/navigation.json +58 -0
  769. package/src/infrastructure/locales/pt-PT/onboarding.json +76 -0
  770. package/src/infrastructure/locales/pt-PT/settings.json +53 -0
  771. package/src/infrastructure/locales/ro-RO/auth.json +32 -0
  772. package/src/infrastructure/locales/ro-RO/branding.json +9 -0
  773. package/src/infrastructure/locales/ro-RO/datetime.json +140 -0
  774. package/src/infrastructure/locales/ro-RO/errors.json +43 -0
  775. package/src/infrastructure/locales/ro-RO/flashcards.json +287 -0
  776. package/src/infrastructure/locales/ro-RO/general.json +61 -0
  777. package/src/infrastructure/locales/ro-RO/index.ts +45 -0
  778. package/src/infrastructure/locales/ro-RO/navigation.json +58 -0
  779. package/src/infrastructure/locales/ro-RO/onboarding.json +76 -0
  780. package/src/infrastructure/locales/ro-RO/settings.json +53 -0
  781. package/src/infrastructure/locales/ru-RU/auth.json +32 -0
  782. package/src/infrastructure/locales/ru-RU/branding.json +9 -0
  783. package/src/infrastructure/locales/ru-RU/datetime.json +140 -0
  784. package/src/infrastructure/locales/ru-RU/errors.json +43 -0
  785. package/src/infrastructure/locales/ru-RU/flashcards.json +276 -0
  786. package/src/infrastructure/locales/ru-RU/general.json +61 -0
  787. package/src/infrastructure/locales/ru-RU/index.ts +45 -0
  788. package/src/infrastructure/locales/ru-RU/navigation.json +58 -0
  789. package/src/infrastructure/locales/ru-RU/onboarding.json +76 -0
  790. package/src/infrastructure/locales/ru-RU/settings.json +53 -0
  791. package/src/infrastructure/locales/sk-SK/auth.json +32 -0
  792. package/src/infrastructure/locales/sk-SK/branding.json +9 -0
  793. package/src/infrastructure/locales/sk-SK/datetime.json +140 -0
  794. package/src/infrastructure/locales/sk-SK/errors.json +43 -0
  795. package/src/infrastructure/locales/sk-SK/flashcards.json +287 -0
  796. package/src/infrastructure/locales/sk-SK/general.json +61 -0
  797. package/src/infrastructure/locales/sk-SK/index.ts +45 -0
  798. package/src/infrastructure/locales/sk-SK/navigation.json +58 -0
  799. package/src/infrastructure/locales/sk-SK/onboarding.json +76 -0
  800. package/src/infrastructure/locales/sk-SK/settings.json +53 -0
  801. package/src/infrastructure/locales/sv-SE/auth.json +32 -0
  802. package/src/infrastructure/locales/sv-SE/branding.json +9 -0
  803. package/src/infrastructure/locales/sv-SE/datetime.json +140 -0
  804. package/src/infrastructure/locales/sv-SE/errors.json +43 -0
  805. package/src/infrastructure/locales/sv-SE/flashcards.json +287 -0
  806. package/src/infrastructure/locales/sv-SE/general.json +61 -0
  807. package/src/infrastructure/locales/sv-SE/index.ts +45 -0
  808. package/src/infrastructure/locales/sv-SE/navigation.json +58 -0
  809. package/src/infrastructure/locales/sv-SE/onboarding.json +76 -0
  810. package/src/infrastructure/locales/sv-SE/settings.json +53 -0
  811. package/src/infrastructure/locales/th-TH/auth.json +32 -0
  812. package/src/infrastructure/locales/th-TH/branding.json +9 -0
  813. package/src/infrastructure/locales/th-TH/datetime.json +140 -0
  814. package/src/infrastructure/locales/th-TH/errors.json +43 -0
  815. package/src/infrastructure/locales/th-TH/flashcards.json +287 -0
  816. package/src/infrastructure/locales/th-TH/general.json +61 -0
  817. package/src/infrastructure/locales/th-TH/index.ts +45 -0
  818. package/src/infrastructure/locales/th-TH/navigation.json +58 -0
  819. package/src/infrastructure/locales/th-TH/onboarding.json +76 -0
  820. package/src/infrastructure/locales/th-TH/settings.json +53 -0
  821. package/src/infrastructure/locales/tl-PH/auth.json +32 -0
  822. package/src/infrastructure/locales/tl-PH/branding.json +9 -0
  823. package/src/infrastructure/locales/tl-PH/datetime.json +140 -0
  824. package/src/infrastructure/locales/tl-PH/errors.json +43 -0
  825. package/src/infrastructure/locales/tl-PH/flashcards.json +287 -0
  826. package/src/infrastructure/locales/tl-PH/general.json +61 -0
  827. package/src/infrastructure/locales/tl-PH/index.ts +45 -0
  828. package/src/infrastructure/locales/tl-PH/navigation.json +58 -0
  829. package/src/infrastructure/locales/tl-PH/onboarding.json +76 -0
  830. package/src/infrastructure/locales/tl-PH/settings.json +53 -0
  831. package/src/infrastructure/locales/tr-TR/auth.json +32 -0
  832. package/src/infrastructure/locales/tr-TR/branding.json +9 -0
  833. package/src/infrastructure/locales/tr-TR/datetime.json +140 -0
  834. package/src/infrastructure/locales/tr-TR/errors.json +43 -0
  835. package/src/infrastructure/locales/tr-TR/flashcards.json +287 -0
  836. package/src/infrastructure/locales/tr-TR/general.json +61 -0
  837. package/src/infrastructure/locales/tr-TR/index.ts +45 -0
  838. package/src/infrastructure/locales/tr-TR/navigation.json +58 -0
  839. package/src/infrastructure/locales/tr-TR/onboarding.json +76 -0
  840. package/src/infrastructure/locales/tr-TR/settings.json +53 -0
  841. package/src/infrastructure/locales/uk-UA/auth.json +32 -0
  842. package/src/infrastructure/locales/uk-UA/branding.json +9 -0
  843. package/src/infrastructure/locales/uk-UA/datetime.json +140 -0
  844. package/src/infrastructure/locales/uk-UA/errors.json +43 -0
  845. package/src/infrastructure/locales/uk-UA/flashcards.json +287 -0
  846. package/src/infrastructure/locales/uk-UA/general.json +61 -0
  847. package/src/infrastructure/locales/uk-UA/index.ts +45 -0
  848. package/src/infrastructure/locales/uk-UA/navigation.json +58 -0
  849. package/src/infrastructure/locales/uk-UA/onboarding.json +76 -0
  850. package/src/infrastructure/locales/uk-UA/settings.json +53 -0
  851. package/src/infrastructure/locales/vi-VN/auth.json +32 -0
  852. package/src/infrastructure/locales/vi-VN/branding.json +9 -0
  853. package/src/infrastructure/locales/vi-VN/datetime.json +140 -0
  854. package/src/infrastructure/locales/vi-VN/errors.json +43 -0
  855. package/src/infrastructure/locales/vi-VN/flashcards.json +287 -0
  856. package/src/infrastructure/locales/vi-VN/general.json +61 -0
  857. package/src/infrastructure/locales/vi-VN/index.ts +45 -0
  858. package/src/infrastructure/locales/vi-VN/navigation.json +58 -0
  859. package/src/infrastructure/locales/vi-VN/onboarding.json +76 -0
  860. package/src/infrastructure/locales/vi-VN/settings.json +53 -0
  861. package/src/infrastructure/locales/zh-CN/auth.json +32 -0
  862. package/src/infrastructure/locales/zh-CN/branding.json +9 -0
  863. package/src/infrastructure/locales/zh-CN/datetime.json +140 -0
  864. package/src/infrastructure/locales/zh-CN/errors.json +43 -0
  865. package/src/infrastructure/locales/zh-CN/flashcards.json +287 -0
  866. package/src/infrastructure/locales/zh-CN/general.json +61 -0
  867. package/src/infrastructure/locales/zh-CN/index.ts +45 -0
  868. package/src/infrastructure/locales/zh-CN/navigation.json +58 -0
  869. package/src/infrastructure/locales/zh-CN/onboarding.json +76 -0
  870. package/src/infrastructure/locales/zh-CN/settings.json +53 -0
  871. package/src/infrastructure/locales/zh-TW/auth.json +32 -0
  872. package/src/infrastructure/locales/zh-TW/branding.json +9 -0
  873. package/src/infrastructure/locales/zh-TW/datetime.json +140 -0
  874. package/src/infrastructure/locales/zh-TW/errors.json +43 -0
  875. package/src/infrastructure/locales/zh-TW/flashcards.json +287 -0
  876. package/src/infrastructure/locales/zh-TW/general.json +61 -0
  877. package/src/infrastructure/locales/zh-TW/index.ts +45 -0
  878. package/src/infrastructure/locales/zh-TW/navigation.json +58 -0
  879. package/src/infrastructure/locales/zh-TW/onboarding.json +76 -0
  880. package/src/infrastructure/locales/zh-TW/settings.json +53 -0
  881. package/src/infrastructure/scripts/createLocaleLoaders.js +177 -0
  882. package/src/infrastructure/storage/AsyncStorageWrapper.ts +4 -2
  883. package/src/infrastructure/storage/LocalizationStore.ts +140 -39
  884. package/lib/infrastructure/locales/en-US/animation.json +0 -30
  885. package/lib/infrastructure/locales/en-US/audio.json +0 -56
  886. package/lib/infrastructure/locales/en-US/emoji.json +0 -29
  887. package/lib/infrastructure/locales/en-US/forms.json +0 -38
  888. package/lib/infrastructure/locales/en-US/icons.json +0 -34
  889. package/lib/infrastructure/locales/en-US/location.json +0 -49
  890. package/lib/infrastructure/locales/en-US/media.json +0 -49
  891. package/lib/infrastructure/locales/en-US/toast.json +0 -38
  892. package/src/infrastructure/locales/en-US/animation.json +0 -30
  893. package/src/infrastructure/locales/en-US/audio.json +0 -56
  894. package/src/infrastructure/locales/en-US/emoji.json +0 -29
  895. package/src/infrastructure/locales/en-US/forms.json +0 -38
  896. package/src/infrastructure/locales/en-US/icons.json +0 -34
  897. package/src/infrastructure/locales/en-US/location.json +0 -49
  898. package/src/infrastructure/locales/en-US/media.json +0 -49
  899. package/src/infrastructure/locales/en-US/toast.json +0 -38
@@ -0,0 +1,500 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable no-console */
3
+
4
+ const fs = require('fs');
5
+ const path = require('path');
6
+ const https = require('https');
7
+ const { getLocalesDir } = require('./utils/findLocalesDir');
8
+
9
+ // Parse command line arguments
10
+ const args = process.argv.slice(2);
11
+ const options = {
12
+ verbose: args.includes('--verbose') || args.includes('-v'),
13
+ force: args.includes('--force') || args.includes('-f'),
14
+ keysFilter: args.find(a => a.startsWith('--keys='))?.split('=')[1]?.split(','),
15
+ report: args.includes('--report') || args.includes('-r'),
16
+ };
17
+
18
+ // Statistics tracking
19
+ const stats = {
20
+ totalLanguages: 0,
21
+ totalFiles: 0,
22
+ totalKeys: 0,
23
+ translated: 0,
24
+ skipped: 0,
25
+ errors: 0,
26
+ };
27
+
28
+ // Language codes mapping for Google Translate API
29
+ const LANGUAGE_MAP = {
30
+ 'ar-SA': 'ar', // Arabic
31
+ 'bg-BG': 'bg', // Bulgarian
32
+ 'cs-CZ': 'cs', // Czech
33
+ 'da-DK': 'da', // Danish
34
+ 'de-DE': 'de', // German (already complete)
35
+ 'el-GR': 'el', // Greek
36
+ 'en-AU': 'en', // English (skip)
37
+ 'en-CA': 'en', // English (skip)
38
+ 'en-GB': 'en', // English (skip)
39
+ 'es-ES': 'es', // Spanish (already complete)
40
+ 'es-MX': 'es', // Spanish (already complete)
41
+ 'fi-FI': 'fi', // Finnish
42
+ 'fr-CA': 'fr', // French
43
+ 'fr-FR': 'fr', // French (already complete)
44
+ 'hi-IN': 'hi', // Hindi
45
+ 'hr-HR': 'hr', // Croatian
46
+ 'hu-HU': 'hu', // Hungarian
47
+ 'id-ID': 'id', // Indonesian
48
+ 'it-IT': 'it', // Italian
49
+ 'ja-JP': 'ja', // Japanese
50
+ 'ko-KR': 'ko', // Korean
51
+ 'ms-MY': 'ms', // Malay
52
+ 'nl-NL': 'nl', // Dutch
53
+ 'no-NO': 'no', // Norwegian
54
+ 'pl-PL': 'pl', // Polish
55
+ 'pt-BR': 'pt', // Portuguese
56
+ 'pt-PT': 'pt', // Portuguese
57
+ 'ro-RO': 'ro', // Romanian
58
+ 'ru-RU': 'ru', // Russian
59
+ 'sk-SK': 'sk', // Slovak
60
+ 'sv-SE': 'sv', // Swedish
61
+ 'th-TH': 'th', // Thai
62
+ 'tl-PH': 'tl', // Tagalog
63
+ 'tr-TR': 'tr', // Turkish (already complete)
64
+ 'uk-UA': 'uk', // Ukrainian
65
+ 'vi-VN': 'vi', // Vietnamese
66
+ 'zh-CN': 'zh-CN', // Chinese Simplified
67
+ 'zh-TW': 'zh-TW', // Chinese Traditional
68
+ };
69
+
70
+ // Only skip actual brand names - everything else should be translated
71
+ // Note: Even common words like "Email", "OK", "Premium" should be localized
72
+ const SKIP_WORDS = new Set([
73
+ 'Google',
74
+ 'Apple',
75
+ 'Facebook',
76
+ 'Instagram',
77
+ 'Twitter',
78
+ 'WhatsApp',
79
+ ]);
80
+
81
+ /**
82
+ * Simple Google Translate API call using free endpoint
83
+ * Note: This uses Google's unofficial API. For production, use official API with key.
84
+ */
85
+ async function translateText(text, targetLang) {
86
+ return new Promise((resolve, _reject) => {
87
+ if (SKIP_WORDS.has(text)) {
88
+ resolve(text);
89
+ return;
90
+ }
91
+
92
+ const encodedText = encodeURIComponent(text);
93
+ const url = `https://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodedText}`;
94
+
95
+ https
96
+ .get(url, res => {
97
+ let data = '';
98
+ res.on('data', chunk => {
99
+ data += chunk;
100
+ });
101
+ res.on('end', () => {
102
+ try {
103
+ const parsed = JSON.parse(data);
104
+ const translated = parsed[0]
105
+ .map(item => item[0])
106
+ .join('')
107
+ .trim();
108
+ resolve(translated || text);
109
+ } catch (error) {
110
+ console.warn(
111
+ `āš ļø Translation failed for "${text}" to ${targetLang}:`,
112
+ error.message
113
+ );
114
+ resolve(text); // Fallback to original
115
+ }
116
+ });
117
+ })
118
+ .on('error', err => {
119
+ console.warn(
120
+ `āš ļø Network error translating "${text}" to ${targetLang}:`,
121
+ err.message
122
+ );
123
+ resolve(text); // Fallback to original
124
+ });
125
+ });
126
+ }
127
+
128
+ /**
129
+ * Add delay between API calls to avoid rate limiting
130
+ */
131
+ function delay(ms) {
132
+ return new Promise(resolve => setTimeout(resolve, ms));
133
+ }
134
+
135
+ /**
136
+ * Check if a value needs translation (is missing or undefined)
137
+ *
138
+ * IMPROVED DETECTION:
139
+ * - Respects --force flag to retranslate everything
140
+ * - Respects --keys filter for selective retranslation
141
+ * - Shows skip reasons in --verbose mode
142
+ * - Protects manual translations by default
143
+ */
144
+ function needsTranslation(key, value, enValue) {
145
+ // --force mode: Always translate
146
+ if (options.force) {
147
+ if (options.verbose) {
148
+ console.log(` šŸ”„ Force mode: translating "${key}"`);
149
+ }
150
+ return true;
151
+ }
152
+
153
+ // --keys filter: Only translate specified keys
154
+ if (options.keysFilter && !options.keysFilter.includes(key)) {
155
+ if (options.verbose) {
156
+ console.log(` ā­ļø Skipping "${key}": not in --keys filter`);
157
+ }
158
+ stats.skipped++;
159
+ return false;
160
+ }
161
+
162
+ // Translate if value is missing/undefined
163
+ if (value === undefined || value === null) {
164
+ if (options.verbose) {
165
+ console.log(` āœ… Translating "${key}": missing value`);
166
+ }
167
+ return true;
168
+ }
169
+
170
+ if (typeof value !== 'string') {
171
+ if (options.verbose) {
172
+ console.log(` ā­ļø Skipping "${key}": non-string value`);
173
+ }
174
+ stats.skipped++;
175
+ return false;
176
+ }
177
+
178
+ // Skip brand names only
179
+ if (SKIP_WORDS.has(value)) {
180
+ if (options.verbose) {
181
+ console.log(` ā­ļø Skipping "${key}": brand name`);
182
+ }
183
+ stats.skipped++;
184
+ return false;
185
+ }
186
+
187
+ // Skip numeric values and placeholders (0.00, phone numbers, etc.)
188
+ if (/^[\d\s.+()-]+$/.test(value)) {
189
+ if (options.verbose) {
190
+ console.log(` ā­ļø Skipping "${key}": numeric value`);
191
+ }
192
+ stats.skipped++;
193
+ return false;
194
+ }
195
+
196
+ // Skip email addresses
197
+ if (/^[\w.-]+@[\w.-]+\.\w+$/.test(value)) {
198
+ if (options.verbose) {
199
+ console.log(` ā­ļø Skipping "${key}": email address`);
200
+ }
201
+ stats.skipped++;
202
+ return false;
203
+ }
204
+
205
+ // Skip URLs
206
+ if (value.startsWith('http://') || value.startsWith('https://')) {
207
+ if (options.verbose) {
208
+ console.log(` ā­ļø Skipping "${key}": URL`);
209
+ }
210
+ stats.skipped++;
211
+ return false;
212
+ }
213
+
214
+ // Skip if already translated (value is different from English)
215
+ // This protects manual translations!
216
+ if (value !== enValue) {
217
+ if (options.verbose) {
218
+ console.log(` ā­ļø Skipping "${key}": already translated (manual or previous auto)`);
219
+ }
220
+ stats.skipped++;
221
+ return false;
222
+ }
223
+
224
+ // If we get here, value exists and equals enValue
225
+ // This means it hasn't been translated yet - TRANSLATE IT!
226
+ if (options.verbose) {
227
+ console.log(` āœ… Translating "${key}": equals English source`);
228
+ }
229
+ return true;
230
+ }
231
+
232
+ /**
233
+ * Recursively find and translate missing values
234
+ */
235
+ async function translateObject(enObj, targetObj, targetLang, path = '') {
236
+ let translatedCount = 0;
237
+
238
+ for (const key in enObj) {
239
+ const currentPath = path ? `${path}.${key}` : key;
240
+ stats.totalKeys++;
241
+
242
+ if (typeof enObj[key] === 'object' && enObj[key] !== null) {
243
+ if (!targetObj[key] || typeof targetObj[key] !== 'object') {
244
+ targetObj[key] = {};
245
+ }
246
+ translatedCount += await translateObject(
247
+ enObj[key],
248
+ targetObj[key],
249
+ targetLang,
250
+ currentPath
251
+ );
252
+ } else if (typeof enObj[key] === 'string') {
253
+ const originalValue = enObj[key];
254
+
255
+ // Skip placeholders like {{count}}, {{mood}}, etc.
256
+ if (originalValue.includes('{{') && originalValue.includes('}}')) {
257
+ if (options.verbose) {
258
+ console.log(
259
+ ` ā­ļø Skipping placeholder: ${currentPath} = "${originalValue}"`
260
+ );
261
+ }
262
+ stats.skipped++;
263
+ continue;
264
+ }
265
+
266
+ // Check if needs translation
267
+ if (needsTranslation(key, targetObj[key], originalValue)) {
268
+ if (!options.verbose) {
269
+ // Only show in non-verbose mode (verbose already shows in needsTranslation)
270
+ console.log(` šŸ”„ Translating: ${currentPath} = "${originalValue}"`);
271
+ }
272
+
273
+ try {
274
+ const translated = await translateText(originalValue, targetLang);
275
+ targetObj[key] = translated;
276
+ translatedCount++;
277
+ stats.translated++;
278
+
279
+ // Add delay to avoid rate limiting (200ms between requests)
280
+ await delay(200);
281
+ } catch (error) {
282
+ console.error(` āŒ Failed to translate "${currentPath}":`, error.message);
283
+ stats.errors++;
284
+ }
285
+ }
286
+ }
287
+ }
288
+
289
+ return translatedCount;
290
+ }
291
+
292
+ /**
293
+ * Translate missing strings for a single file
294
+ */
295
+ async function translateFile(enUSFile, targetFile, langCode) {
296
+ const enUS = JSON.parse(fs.readFileSync(enUSFile, 'utf8'));
297
+ const target = JSON.parse(fs.readFileSync(targetFile, 'utf8'));
298
+
299
+ const targetLang = LANGUAGE_MAP[langCode];
300
+ if (!targetLang) {
301
+ console.log(` āš ļø No language mapping for ${langCode}, skipping`);
302
+ return 0;
303
+ }
304
+
305
+ // Note: English variants (en-AU, en-CA, en-GB) will also be translated
306
+ // Google Translate may use regional variations and accents
307
+
308
+ const translatedCount = await translateObject(enUS, target, targetLang);
309
+
310
+ if (translatedCount > 0) {
311
+ // Ensure parent directory exists before writing
312
+ const targetDir = path.dirname(targetFile);
313
+ if (!fs.existsSync(targetDir)) {
314
+ fs.mkdirSync(targetDir, { recursive: true });
315
+ }
316
+ fs.writeFileSync(targetFile, JSON.stringify(target, null, 2) + '\n');
317
+ }
318
+
319
+ return translatedCount;
320
+ }
321
+
322
+ /**
323
+ * Show usage information
324
+ */
325
+ function showUsage() {
326
+ console.log(`
327
+ šŸ“– Google Translate Auto-Translation Script
328
+
329
+ USAGE:
330
+ npm run i18n:translate [options]
331
+
332
+ OPTIONS:
333
+ --verbose, -v Show detailed translation decisions
334
+ --force, -f Force retranslate all keys (overwrite manual translations)
335
+ --keys=key1,key2 Only translate specific keys (comma-separated)
336
+ --report, -r Show detailed statistics report
337
+
338
+ EXAMPLES:
339
+ npm run i18n:translate
340
+ → Translate only missing keys, skip manual translations
341
+
342
+ npm run i18n:translate --verbose
343
+ → Show why each key is translated or skipped
344
+
345
+ npm run i18n:translate --force
346
+ → Retranslate ALL keys, overwriting manual translations
347
+
348
+ npm run i18n:translate --keys=save,cancel,delete
349
+ → Only retranslate these specific keys
350
+
351
+ npm run i18n:translate --verbose --keys=title
352
+ → Verbose mode for specific key translation
353
+
354
+ BEHAVIOR:
355
+ āœ… Protects manual translations by default
356
+ āœ… Only translates missing keys or keys that equal English
357
+ āœ… Use --force to override protection
358
+ āœ… Use --keys to selectively retranslate specific keys
359
+
360
+ NOTE:
361
+ Scripts automatically find your project's locales directory.
362
+ Supported paths:
363
+ - src/domains/localization/infrastructure/locales
364
+ - src/locales
365
+ - locales
366
+ `);
367
+ process.exit(0);
368
+ }
369
+
370
+ // Show usage if --help
371
+ if (args.includes('--help') || args.includes('-h')) {
372
+ showUsage();
373
+ }
374
+
375
+ /**
376
+ * Main function to translate all missing strings
377
+ */
378
+ async function translateAllLanguages() {
379
+ // Find project's locales directory
380
+ const localesDir = getLocalesDir();
381
+ const enUSDir = path.join(localesDir, 'en-US');
382
+
383
+ // Automatically discover all JSON files in en-US directory
384
+ const files = fs
385
+ .readdirSync(enUSDir)
386
+ .filter(file => file.endsWith('.json'))
387
+ .sort();
388
+
389
+ // Get languages that need translation (skip complete ones)
390
+ const skipLanguages = new Set([
391
+ 'en-US', // Base language - skip translation
392
+ 'en-AU', // English variant - copy from en-US
393
+ 'en-CA', // English variant - copy from en-US
394
+ 'en-GB', // English variant - copy from en-US
395
+ ]);
396
+
397
+ const allLanguages = fs
398
+ .readdirSync(localesDir)
399
+ .filter(
400
+ dir =>
401
+ !skipLanguages.has(dir) &&
402
+ fs.statSync(path.join(localesDir, dir)).isDirectory()
403
+ )
404
+ .sort();
405
+
406
+ console.log('šŸš€ Starting automatic translation...\n');
407
+
408
+ // Show options if any are active
409
+ if (options.verbose || options.force || options.keysFilter || options.report) {
410
+ console.log('āš™ļø Active options:');
411
+ if (options.verbose) console.log(' • Verbose mode: ON');
412
+ if (options.force) console.log(' • Force retranslate: ON (āš ļø will overwrite manual translations)');
413
+ if (options.keysFilter) console.log(` • Keys filter: ${options.keysFilter.join(', ')}`);
414
+ if (options.report) console.log(' • Detailed report: ON');
415
+ console.log('');
416
+ }
417
+
418
+ console.log(`šŸ“Š Languages to translate: ${allLanguages.length}`);
419
+ console.log(`šŸ“„ Files per language: ${files.length}`);
420
+ console.log(
421
+ `ā±ļø Estimated time: ~${Math.ceil((allLanguages.length * files.length * 50 * 0.2) / 60)} minutes\n`
422
+ );
423
+ console.log(
424
+ '⚔ Running with optimized speed (200ms delay between translations)\n'
425
+ );
426
+
427
+ stats.totalLanguages = allLanguages.length;
428
+ stats.totalFiles = files.length;
429
+
430
+ let totalTranslated = 0;
431
+ let totalLanguages = 0;
432
+
433
+ for (const langCode of allLanguages) {
434
+ console.log(`\nšŸŒ Translating ${langCode}...`);
435
+ totalLanguages++;
436
+
437
+ let langTranslated = 0;
438
+
439
+ for (const file of files) {
440
+ const enUSFile = path.join(enUSDir, file);
441
+ const targetDir = path.join(localesDir, langCode);
442
+ const targetFile = path.join(targetDir, file);
443
+
444
+ // Ensure target directory exists
445
+ if (!fs.existsSync(targetDir)) {
446
+ fs.mkdirSync(targetDir, { recursive: true });
447
+ }
448
+
449
+ // Create target file if it doesn't exist (create empty structure)
450
+ if (!fs.existsSync(targetFile)) {
451
+ console.log(` šŸ“ Creating ${file} (new file)`);
452
+ // Create empty object - translation will populate it
453
+ fs.writeFileSync(targetFile, JSON.stringify({}, null, 2) + '\n');
454
+ }
455
+
456
+ const count = await translateFile(enUSFile, targetFile, langCode);
457
+ langTranslated += count;
458
+ totalTranslated += count;
459
+
460
+ // Only log files that were actually translated
461
+ if (count > 0) {
462
+ console.log(` āœ… ${file}: ${count} strings translated`);
463
+ }
464
+ }
465
+
466
+ console.log(
467
+ ` šŸ“Š ${langCode} summary: ${langTranslated} strings translated`
468
+ );
469
+ }
470
+
471
+ console.log(`\nāœ… Translation completed!`);
472
+ console.log(` Languages processed: ${totalLanguages}`);
473
+ console.log(` Total strings translated: ${totalTranslated}`);
474
+
475
+ // Show detailed statistics if --report or --verbose
476
+ if (options.report || options.verbose) {
477
+ console.log(`\nšŸ“Š DETAILED STATISTICS:`);
478
+ console.log(` Total keys processed: ${stats.totalKeys}`);
479
+ console.log(` Translated: ${stats.translated} (${((stats.translated / stats.totalKeys) * 100).toFixed(1)}%)`);
480
+ console.log(` Skipped: ${stats.skipped} (${((stats.skipped / stats.totalKeys) * 100).toFixed(1)}%)`);
481
+ if (stats.errors > 0) {
482
+ console.log(` Errors: ${stats.errors} āŒ`);
483
+ }
484
+
485
+ console.log(`\nšŸ’” TIPS:`);
486
+ console.log(` • Manual translations are protected (skipped) by default`);
487
+ console.log(` • Use --force to retranslate everything`);
488
+ console.log(` • Use --keys=key1,key2 to retranslate specific keys`);
489
+ console.log(` • Use --verbose to see why keys are skipped`);
490
+ }
491
+
492
+ console.log(
493
+ `\nšŸ“ Next step: Run 'npm run i18n:check' to verify translations.`
494
+ );
495
+ }
496
+
497
+ translateAllLanguages().catch(error => {
498
+ console.error('āŒ Translation failed:', error);
499
+ process.exit(1);
500
+ });
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Utility to find project's locales directory
4
+ * Searches common paths for localization files
5
+ */
6
+
7
+ const fs = require('fs');
8
+ const path = require('path');
9
+
10
+ /**
11
+ * Find locales directory in project
12
+ * @returns {string|null} Path to locales directory or null if not found
13
+ */
14
+ function findLocalesDir() {
15
+ const projectRoot = process.cwd();
16
+
17
+ // Common paths to search
18
+ const possiblePaths = [
19
+ // DDD structure
20
+ path.join(projectRoot, 'src/domains/localization/infrastructure/locales'),
21
+ path.join(projectRoot, 'src/domains/i18n/infrastructure/locales'),
22
+ path.join(projectRoot, 'src/infrastructure/localization/locales'),
23
+ // Simple structure
24
+ path.join(projectRoot, 'src/locales'),
25
+ path.join(projectRoot, 'locales'),
26
+ path.join(projectRoot, 'translations'),
27
+ // Alternative DDD
28
+ path.join(projectRoot, 'src/features/localization/locales'),
29
+ ];
30
+
31
+ // Find first existing path with en-US directory
32
+ for (const possiblePath of possiblePaths) {
33
+ const enUSPath = path.join(possiblePath, 'en-US');
34
+ if (fs.existsSync(possiblePath) && fs.existsSync(enUSPath)) {
35
+ return possiblePath;
36
+ }
37
+ }
38
+
39
+ return null;
40
+ }
41
+
42
+ /**
43
+ * Get or create locales directory
44
+ * @param {boolean} createIfNotExists - Create directory if it doesn't exist (for setup script)
45
+ * @returns {string} Path to locales directory
46
+ */
47
+ function getLocalesDir(createIfNotExists = false) {
48
+ let localesDir = findLocalesDir();
49
+
50
+ if (!localesDir) {
51
+ if (createIfNotExists) {
52
+ // Try to create in most common location
53
+ const projectRoot = process.cwd();
54
+ localesDir = path.join(projectRoot, 'src/domains/localization/infrastructure/locales');
55
+ const enUSDir = path.join(localesDir, 'en-US');
56
+
57
+ if (!fs.existsSync(localesDir)) {
58
+ fs.mkdirSync(localesDir, { recursive: true });
59
+ fs.mkdirSync(enUSDir, { recursive: true });
60
+ console.log(`āœ… Created locales directory: ${localesDir}`);
61
+ }
62
+
63
+ return localesDir;
64
+ }
65
+
66
+ console.error('āŒ Locales directory not found!');
67
+ console.error('\nPlease create a locales directory in one of these locations:');
68
+ console.error(' - src/domains/localization/infrastructure/locales');
69
+ console.error(' - src/locales');
70
+ console.error(' - locales');
71
+ console.error('\nOr run: npm run i18n:setup');
72
+ process.exit(1);
73
+ }
74
+
75
+ return localesDir;
76
+ }
77
+
78
+ module.exports = { findLocalesDir, getLocalesDir };
79
+