@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,354 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable no-console */
3
+
4
+ const fs = require('fs');
5
+ const path = require('path');
6
+ const { getLocalesDir } = require('./utils/findLocalesDir');
7
+
8
+ // Function to get all keys from an object recursively
9
+ function getAllKeys(obj, prefix = '') {
10
+ let keys = [];
11
+ for (const key in obj) {
12
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
13
+ const fullKey = prefix ? `${prefix}.${key}` : key;
14
+ if (
15
+ typeof obj[key] === 'object' &&
16
+ obj[key] !== null &&
17
+ !Array.isArray(obj[key])
18
+ ) {
19
+ keys = keys.concat(getAllKeys(obj[key], fullKey));
20
+ } else {
21
+ keys.push(fullKey);
22
+ }
23
+ }
24
+ }
25
+ return keys;
26
+ }
27
+
28
+ // Function to get value by key path
29
+ function getValueByPath(obj, path) {
30
+ return path.split('.').reduce((current, key) => current && current[key], obj);
31
+ }
32
+
33
+ // Function to compare two translation objects
34
+ function compareTranslations(enUS, targetLang, filePath, langCode) {
35
+ const enKeys = getAllKeys(enUS);
36
+ const targetKeys = getAllKeys(targetLang);
37
+
38
+ const missingInTarget = enKeys.filter(key => !targetKeys.includes(key));
39
+ const extraInTarget = targetKeys.filter(key => !enKeys.includes(key));
40
+
41
+ const issues = [];
42
+
43
+ // Check for missing keys in target language
44
+ if (missingInTarget.length > 0) {
45
+ issues.push({
46
+ type: 'missing',
47
+ message: `Missing keys in ${langCode}: ${missingInTarget.join(', ')}`,
48
+ keys: missingInTarget,
49
+ });
50
+ }
51
+
52
+ // Check for extra keys in target language
53
+ if (extraInTarget.length > 0) {
54
+ issues.push({
55
+ type: 'extra',
56
+ message: `Extra keys in ${langCode}: ${extraInTarget.join(', ')}`,
57
+ keys: extraInTarget,
58
+ });
59
+ }
60
+
61
+ // Check for empty or placeholder values in target language
62
+ enKeys.forEach(key => {
63
+ if (targetKeys.includes(key)) {
64
+ const enValue = getValueByPath(enUS, key);
65
+ const targetValue = getValueByPath(targetLang, key);
66
+
67
+ // Skip checking if the value is the same and it's a common English word that doesn't need translation
68
+ const commonEnglishWords = [
69
+ 'Premium',
70
+ 'EULA',
71
+ 'Plan',
72
+ 'OK',
73
+ 'API',
74
+ 'URL',
75
+ 'iOS',
76
+ 'Android',
77
+ 'minute',
78
+ 'min',
79
+ 'Sessions',
80
+ 'Points',
81
+ 'Nature',
82
+ 'Instrumental',
83
+ 'Piano',
84
+ 'Silence',
85
+ 'Pause',
86
+ 'Gratitude',
87
+ 'Notes',
88
+ '5 min',
89
+ '10 min',
90
+ '15 min',
91
+ '20 min',
92
+ '30 min',
93
+ '{{count}} min',
94
+ '{{duration}} min',
95
+ '{{duration}} • {{cycles}} cycles',
96
+ 'No',
97
+ 'Error',
98
+ 'Try Again',
99
+ 'Back',
100
+ 'Oops! Something went wrong',
101
+ "We encountered an unexpected error. Don't worry, your meditation data is safe.",
102
+ "This screen doesn't exist.",
103
+ 'Go to home screen!',
104
+ 'No meditation cards available',
105
+ "Thank you for reporting this bug! We'll investigate and fix it as soon as possible.",
106
+ "Thank you for your feature request! We'll consider it for future updates.",
107
+ 'Thank you for your suggestion! We appreciate your input and will review it carefully.',
108
+ 'Your feedback has been submitted successfully. We appreciate your input!',
109
+ 'Continue',
110
+ 'Go Home',
111
+ 'Start Meditating',
112
+ 'Begin Your Journey',
113
+ 'Detailed statistics',
114
+ 'Achievement badges',
115
+ 'Weekly/monthly reports',
116
+ 'Sign Up',
117
+ 'Sign In',
118
+ 'Breathe In',
119
+ 'Hold',
120
+ 'Breathe Out',
121
+ 'Rest',
122
+ 'Find a comfortable seated position',
123
+ 'Focus on slow, controlled movements',
124
+ "Don't force the breath, let it flow naturally",
125
+ 'Cycle {{current}} of {{total}}',
126
+ '{{inhale}}s in • {{hold}}s hold • {{exhale}}s out',
127
+ 'Total elapsed: {{time}}',
128
+ 'Cancel',
129
+ 'End Session',
130
+ 'Reset',
131
+ "Today's Progress",
132
+ 'See All',
133
+ 'Total Time',
134
+ 'Streak',
135
+ 'Last Session',
136
+ 'minutes completed',
137
+ 'Find a quiet, comfortable space',
138
+ 'Focus on your breath naturally',
139
+ 'Let thoughts come and go without judgment',
140
+ 'Start with shorter sessions and build up',
141
+ 'Legal',
142
+ 'Loading sounds...',
143
+ ];
144
+ const shouldSkip =
145
+ commonEnglishWords.includes(enValue) && targetValue === enValue;
146
+
147
+ // Check if value needs translation
148
+ // Skip if already translated (different from English) - protects manual translations
149
+ const isAlreadyTranslated = targetValue !== enValue;
150
+
151
+ if (
152
+ !shouldSkip &&
153
+ !isAlreadyTranslated &&
154
+ (!targetValue ||
155
+ (typeof targetValue === 'string' && targetValue.trim() === '') ||
156
+ targetValue === enValue ||
157
+ targetValue.includes('[NEEDS TRANSLATION]') ||
158
+ targetValue.includes('[MISSING:') ||
159
+ targetValue.includes('[ÇEVİRİ GEREKLİ:') ||
160
+ targetValue.includes('[TRANSLATE:'))
161
+ ) {
162
+ issues.push({
163
+ type: 'translation',
164
+ message: `Key "${key}" has empty, missing, or untranslated value`,
165
+ key: key,
166
+ enValue: enValue,
167
+ targetValue: targetValue,
168
+ });
169
+ }
170
+ }
171
+ });
172
+
173
+ return {
174
+ file: filePath,
175
+ issues: issues,
176
+ totalEnKeys: enKeys.length,
177
+ totalTargetKeys: targetKeys.length,
178
+ missingCount: missingInTarget.length,
179
+ extraCount: extraInTarget.length,
180
+ };
181
+ }
182
+
183
+ // Main function
184
+ function main() {
185
+ const args = process.argv.slice(2);
186
+ const targetLanguage = args.find(arg => !arg.startsWith('--'));
187
+
188
+ if (!targetLanguage) {
189
+ console.log('Kullanım: npm run i18n:check <dil-kodu>');
190
+ console.log('Örnek: npm run i18n:check de-DE');
191
+ console.log('Örnek: npm run i18n:check fr-FR');
192
+ console.log('Örnek: npm run i18n:check tr-TR');
193
+ console.log(
194
+ 'Örnek: npm run i18n:check spanish (tüm İspanyolca varyantları)'
195
+ );
196
+ console.log(
197
+ '\nTüm dilleri kontrol etmek için: npm run i18n:check all'
198
+ );
199
+ process.exit(1);
200
+ }
201
+
202
+ // Find project's locales directory
203
+ const localesDir = getLocalesDir();
204
+ const enUSDir = path.join(localesDir, 'en-US');
205
+
206
+ // 🔥 CRITICAL FIX: Auto-discover all JSON files (NO HARDCODED LIST!)
207
+ // This ensures check-translations works with ANY en-US file structure
208
+ const files = fs
209
+ .readdirSync(enUSDir)
210
+ .filter(file => file.endsWith('.json'))
211
+ .sort();
212
+
213
+ if (files.length === 0) {
214
+ console.error('❌ No JSON files found in en-US directory!');
215
+ process.exit(1);
216
+ }
217
+
218
+ console.log(`🔍 Discovered ${files.length} translation files in en-US:\n ${files.join(', ')}\n`);
219
+
220
+ // Get all language directories
221
+ const allLanguageDirs = fs
222
+ .readdirSync(localesDir)
223
+ .filter(dir => {
224
+ const fullPath = path.join(localesDir, dir);
225
+ return fs.statSync(fullPath).isDirectory() && dir !== 'en-US';
226
+ })
227
+ .sort();
228
+
229
+ // Determine which languages to process
230
+ let languageDirs = allLanguageDirs;
231
+ if (targetLanguage !== 'all') {
232
+ if (targetLanguage === 'spanish' || targetLanguage === 'es') {
233
+ // Check all Spanish variants
234
+ languageDirs = allLanguageDirs.filter(dir => dir.startsWith('es-'));
235
+ if (languageDirs.length === 0) {
236
+ console.log('❌ No Spanish variants found.');
237
+ process.exit(1);
238
+ }
239
+ } else if (allLanguageDirs.includes(targetLanguage)) {
240
+ languageDirs = [targetLanguage];
241
+ } else {
242
+ console.log(
243
+ `❌ Language ${targetLanguage} not found. Available languages: ${allLanguageDirs.join(', ')}`
244
+ );
245
+ process.exit(1);
246
+ }
247
+ }
248
+
249
+ let totalIssues = 0;
250
+ let totalMissing = 0;
251
+ let totalExtra = 0;
252
+ let totalTranslationIssues = 0;
253
+ let languagesWithIssues = 0;
254
+
255
+ console.log(
256
+ `🔍 Checking ${languageDirs.length} language(s) against English (en-US)...\n`
257
+ );
258
+
259
+ // Check each language
260
+ languageDirs.forEach(langCode => {
261
+ const langDir = path.join(localesDir, langCode);
262
+ let langIssues = 0;
263
+ let langMissing = 0;
264
+ let langExtra = 0;
265
+ let langTranslationIssues = 0;
266
+
267
+ console.log(`\n🌍 Checking ${langCode}...`);
268
+
269
+ files.forEach(file => {
270
+ const enUSPath = path.join(enUSDir, file);
271
+ const langPath = path.join(langDir, file);
272
+
273
+ if (!fs.existsSync(enUSPath)) {
274
+ console.log(` ❌ English file not found: ${file}`);
275
+ return;
276
+ }
277
+
278
+ if (!fs.existsSync(langPath)) {
279
+ console.log(` ❌ ${langCode} file not found: ${file}`);
280
+ return;
281
+ }
282
+
283
+ try {
284
+ const enUS = JSON.parse(fs.readFileSync(enUSPath, 'utf8'));
285
+ const langData = JSON.parse(fs.readFileSync(langPath, 'utf8'));
286
+
287
+ const comparison = compareTranslations(enUS, langData, file, langCode);
288
+
289
+ if (comparison.issues.length === 0) {
290
+ console.log(` ✅ ${file}: Complete`);
291
+ } else {
292
+ console.log(
293
+ ` 📄 ${file}: ${comparison.missingCount} missing, ${comparison.extraCount} extra, ${comparison.issues.filter(i => i.type === 'translation').length} untranslated`
294
+ );
295
+
296
+ // Show detailed issues for debugging
297
+ comparison.issues.forEach(issue => {
298
+ if (issue.type === 'translation') {
299
+ console.log(
300
+ ` 🔍 ${issue.key}: "${issue.enValue}" → "${issue.targetValue || '[EMPTY]'}"`
301
+ );
302
+ } else if (issue.type === 'extra') {
303
+ console.log(` ➕ Extra keys: ${issue.keys.join(', ')}`);
304
+ } else if (issue.type === 'missing') {
305
+ console.log(` ➖ Missing keys: ${issue.keys.join(', ')}`);
306
+ }
307
+ langIssues++;
308
+ totalIssues++;
309
+ if (issue.type === 'missing') {
310
+ langMissing += issue.keys.length;
311
+ totalMissing += issue.keys.length;
312
+ } else if (issue.type === 'extra') {
313
+ langExtra += issue.keys.length;
314
+ totalExtra += issue.keys.length;
315
+ } else if (issue.type === 'translation') {
316
+ langTranslationIssues++;
317
+ totalTranslationIssues++;
318
+ }
319
+ });
320
+ }
321
+ } catch (error) {
322
+ console.log(` ❌ Error processing ${file}: ${error.message}`);
323
+ }
324
+ });
325
+
326
+ // Summary for this language
327
+ if (langIssues === 0) {
328
+ console.log(` 🎉 ${langCode}: All translations complete!`);
329
+ } else {
330
+ languagesWithIssues++;
331
+ console.log(
332
+ ` ⚠️ ${langCode}: ${langIssues} issues (${langMissing} missing, ${langExtra} extra, ${langTranslationIssues} translation issues)`
333
+ );
334
+ }
335
+ });
336
+
337
+ console.log('\n📊 Summary:');
338
+ console.log(` Languages checked: ${languageDirs.length}`);
339
+ console.log(` Languages with issues: ${languagesWithIssues}`);
340
+ console.log(` Total issues found: ${totalIssues}`);
341
+ console.log(` Missing keys: ${totalMissing}`);
342
+ console.log(` Extra keys: ${totalExtra}`);
343
+ console.log(` Translation issues: ${totalTranslationIssues}`);
344
+
345
+ if (totalIssues === 0) {
346
+ console.log('\n🎉 All translations are complete and correct!');
347
+ process.exit(0);
348
+ } else {
349
+ console.log(`\n⚠️ ${languagesWithIssues} language(s) need attention.`);
350
+ process.exit(1);
351
+ }
352
+ }
353
+
354
+ main();
@@ -0,0 +1,178 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable */
3
+ /**
4
+ * Auto-Loader Generator for Localization
5
+ *
6
+ * NOTE: This is a Node.js build script, not React Native code.
7
+ * ESLint is disabled for this file as it uses Node.js APIs (require, __dirname, process, console).
8
+ *
9
+ * Automatically scans locale directories and generates index.ts files
10
+ * that import all .json translation files.
11
+ *
12
+ * Features:
13
+ * - Dynamic JSON file detection (no hardcoded mappings)
14
+ * - Nested namespace structure for better organization
15
+ * - Supports all languages automatically
16
+ * - Clean, maintainable output
17
+ *
18
+ * Usage:
19
+ * npm run localization:create-loaders # Generate all
20
+ * node scripts/createLocaleLoaders.js en-US # Generate single language
21
+ *
22
+ * Factory-First: This script is auto-copied to all generated apps
23
+ */
24
+
25
+ const fs = require('fs');
26
+ const path = require('path');
27
+
28
+ // Get the locales directory (works from scripts/ or root)
29
+ const getLocalesDir = () => {
30
+ const possiblePaths = [
31
+ path.join(__dirname, '../src/infrastructure/locales'), // Package structure
32
+ path.join(__dirname, '../locales'), // App structure from scripts/
33
+ path.join(process.cwd(), 'domains/localization/infrastructure/locales'), // App structure from root
34
+ path.join(process.cwd(), 'src/infrastructure/locales'), // Package from root
35
+ ];
36
+
37
+ for (const p of possiblePaths) {
38
+ if (fs.existsSync(p)) {
39
+ return p;
40
+ }
41
+ }
42
+
43
+ throw new Error('Could not find locales directory');
44
+ };
45
+
46
+ const localesDir = getLocalesDir();
47
+
48
+ /**
49
+ * Get all language directories dynamically
50
+ */
51
+ function getLanguageDirectories() {
52
+ return fs
53
+ .readdirSync(localesDir)
54
+ .filter(item => {
55
+ const itemPath = path.join(localesDir, item);
56
+ return fs.statSync(itemPath).isDirectory() && item.match(/^[a-z]{2}-[A-Z]{2}$/);
57
+ })
58
+ .sort();
59
+ }
60
+
61
+ /**
62
+ * Create auto-loader for a single language
63
+ */
64
+ function createAutoLoader(languageCode) {
65
+ const languageDir = path.join(localesDir, languageCode);
66
+
67
+ // Check if directory exists
68
+ if (!fs.existsSync(languageDir)) {
69
+ console.warn(`⚠️ Language directory not found: ${languageCode}`);
70
+ return false;
71
+ }
72
+
73
+ // Read all JSON files in the directory
74
+ const files = fs
75
+ .readdirSync(languageDir)
76
+ .filter(file => file.endsWith('.json'))
77
+ .sort();
78
+
79
+ if (files.length === 0) {
80
+ console.warn(`⚠️ No JSON files found in: ${languageCode}`);
81
+ return false;
82
+ }
83
+
84
+ // Create import statements and namespace mapping
85
+ const imports = [];
86
+ const namespaces = [];
87
+ const descriptions = [];
88
+
89
+ files.forEach(file => {
90
+ const moduleName = file.replace('.json', '');
91
+ imports.push(`import ${moduleName} from './${file}';`);
92
+ namespaces.push(moduleName);
93
+ descriptions.push(` * - ${moduleName}: ${file}`);
94
+ });
95
+
96
+ // Create the auto-loader content with nested structure
97
+ const content = `/**
98
+ * Auto-generated translation loader for ${languageCode}
99
+ *
100
+ * This file is automatically generated by:
101
+ * npm run localization:create-loaders
102
+ *
103
+ * DO NOT EDIT THIS FILE MANUALLY!
104
+ *
105
+ * Translation Modules:
106
+ ${descriptions.join('\n')}
107
+ *
108
+ * Generated: ${new Date().toISOString()}
109
+ */
110
+
111
+ // Import all translation modules
112
+ ${imports.join('\n')}
113
+
114
+ // Merge all modules into a single translation object
115
+ // Using nested structure for better namespace organization
116
+ const translations = {
117
+ ${namespaces.join(',\n ')},
118
+ };
119
+
120
+ export default translations;
121
+ `;
122
+
123
+ // Write the index.ts file
124
+ const indexPath = path.join(languageDir, 'index.ts');
125
+ fs.writeFileSync(indexPath, content, 'utf8');
126
+
127
+ console.log(`✅ Created auto-loader: ${languageCode}/index.ts (${files.length} modules)`);
128
+ return true;
129
+ }
130
+
131
+ /**
132
+ * Create auto-loaders for all languages
133
+ */
134
+ function createAllAutoLoaders() {
135
+ const languages = getLanguageDirectories();
136
+
137
+ if (languages.length === 0) {
138
+ console.error('❌ No language directories found in:', localesDir);
139
+ process.exit(1);
140
+ }
141
+
142
+ console.log(`\n🌍 Creating auto-loaders for ${languages.length} languages...\n`);
143
+
144
+ let successCount = 0;
145
+ languages.forEach(languageCode => {
146
+ if (createAutoLoader(languageCode)) {
147
+ successCount++;
148
+ }
149
+ });
150
+
151
+ console.log(`\n✨ Successfully created ${successCount}/${languages.length} auto-loaders`);
152
+ }
153
+
154
+ // ============================================================================
155
+ // CLI
156
+ // ============================================================================
157
+
158
+ const args = process.argv.slice(2);
159
+
160
+ if (args[0] === 'all' || args.length === 0) {
161
+ createAllAutoLoaders();
162
+ } else if (args[0]) {
163
+ // Single language
164
+ const languageCode = args[0];
165
+ if (createAutoLoader(languageCode)) {
166
+ console.log(`\n✨ Done!`);
167
+ } else {
168
+ console.error(`\n❌ Failed to create auto-loader for: ${languageCode}`);
169
+ process.exit(1);
170
+ }
171
+ } else {
172
+ console.log('Usage: node createLocaleLoaders.js [language-code|all]');
173
+ console.log('\nExamples:');
174
+ console.log(' node createLocaleLoaders.js # Generate all');
175
+ console.log(' node createLocaleLoaders.js all # Generate all');
176
+ console.log(' node createLocaleLoaders.js en-US # Generate single language');
177
+ console.log(' node createLocaleLoaders.js tr-TR # Generate single language');
178
+ }