@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,216 @@
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 remove a key from an object by path
29
+ function removeKeyByPath(obj, keyPath) {
30
+ const keys = keyPath.split('.');
31
+ let current = obj;
32
+
33
+ for (let i = 0; i < keys.length - 1; i++) {
34
+ if (!current[keys[i]] || typeof current[keys[i]] !== 'object') {
35
+ return false; // Path doesn't exist
36
+ }
37
+ current = current[keys[i]];
38
+ }
39
+
40
+ const lastKey = keys[keys.length - 1];
41
+ if (current.hasOwnProperty(lastKey)) {
42
+ delete current[keys[keys.length - 1]];
43
+
44
+ // Clean up empty parent objects
45
+ if (keys.length > 1) {
46
+ let parent = obj;
47
+ for (let i = 0; i < keys.length - 2; i++) {
48
+ parent = parent[keys[i]];
49
+ }
50
+ const parentKey = keys[keys.length - 2];
51
+ if (Object.keys(parent[parentKey]).length === 0) {
52
+ delete parent[parentKey];
53
+ }
54
+ }
55
+
56
+ return true;
57
+ }
58
+ return false;
59
+ }
60
+
61
+ // Function to remove unused keys from a translation file
62
+ function removeUnusedKeys(enUS, targetLang, filePath, langCode, dryRun = false) {
63
+ const enKeys = getAllKeys(enUS);
64
+ const targetKeys = getAllKeys(targetLang);
65
+
66
+ const extraKeys = targetKeys.filter(key => !enKeys.includes(key));
67
+
68
+ if (extraKeys.length === 0) {
69
+ return { removed: 0, keys: [] };
70
+ }
71
+
72
+ // Create a deep copy to modify
73
+ const cleanedLang = JSON.parse(JSON.stringify(targetLang));
74
+
75
+ let removedCount = 0;
76
+ for (const key of extraKeys) {
77
+ if (removeKeyByPath(cleanedLang, key)) {
78
+ removedCount++;
79
+ }
80
+ }
81
+
82
+ if (!dryRun && removedCount > 0) {
83
+ // Write cleaned file
84
+ const targetFile = filePath;
85
+ fs.writeFileSync(targetFile, JSON.stringify(cleanedLang, null, 2) + '\n', 'utf8');
86
+ }
87
+
88
+ return { removed: removedCount, keys: extraKeys };
89
+ }
90
+
91
+ // Main function
92
+ function main() {
93
+ const args = process.argv.slice(2);
94
+ const targetLanguage = args.find(arg => !arg.startsWith('--'));
95
+ const dryRun = args.includes('--dry-run') || args.includes('-d');
96
+ const allLanguages = args.includes('--all') || args.includes('-a');
97
+
98
+ if (!targetLanguage && !allLanguages) {
99
+ console.log('Usage: npm run i18n:remove-unused <language-code> [--dry-run]');
100
+ console.log('Example: npm run i18n:remove-unused tr-TR');
101
+ console.log('Example: npm run i18n:remove-unused tr-TR --dry-run (preview only, no removal)');
102
+ console.log('Example: npm run i18n:remove-unused --all (all languages)');
103
+ process.exit(1);
104
+ }
105
+
106
+ // Find project's locales directory
107
+ const localesDir = getLocalesDir();
108
+ const enUSDir = path.join(localesDir, 'en-US');
109
+
110
+ // Auto-discover all JSON files
111
+ const files = fs
112
+ .readdirSync(enUSDir)
113
+ .filter(file => file.endsWith('.json'))
114
+ .sort();
115
+
116
+ if (files.length === 0) {
117
+ console.error('❌ No JSON files found in en-US directory!');
118
+ process.exit(1);
119
+ }
120
+
121
+ // Get language directories
122
+ const allLanguageDirs = fs
123
+ .readdirSync(localesDir)
124
+ .filter(dir => {
125
+ const fullPath = path.join(localesDir, dir);
126
+ return fs.statSync(fullPath).isDirectory() && dir !== 'en-US';
127
+ })
128
+ .sort();
129
+
130
+ // Determine which languages to process
131
+ let languageDirs = allLanguageDirs;
132
+ if (!allLanguages) {
133
+ if (targetLanguage === 'spanish' || targetLanguage === 'es') {
134
+ languageDirs = allLanguageDirs.filter(dir => dir.startsWith('es-'));
135
+ } else if (allLanguageDirs.includes(targetLanguage)) {
136
+ languageDirs = [targetLanguage];
137
+ } else {
138
+ console.log(`❌ Language ${targetLanguage} not found. Available: ${allLanguageDirs.join(', ')}`);
139
+ process.exit(1);
140
+ }
141
+ }
142
+
143
+ if (dryRun) {
144
+ console.log('🔍 DRY RUN MODE - No files will be modified\n');
145
+ }
146
+
147
+ let totalRemoved = 0;
148
+ let totalFiles = 0;
149
+
150
+ console.log(`🧹 Removing unused keys from ${languageDirs.length} language(s)...\n`);
151
+
152
+ languageDirs.forEach(langCode => {
153
+ const langDir = path.join(localesDir, langCode);
154
+ let langRemoved = 0;
155
+ let langFiles = 0;
156
+
157
+ console.log(`\n🌍 Processing ${langCode}...`);
158
+
159
+ files.forEach(file => {
160
+ const enUSPath = path.join(enUSDir, file);
161
+ const langPath = path.join(langDir, file);
162
+
163
+ if (!fs.existsSync(enUSPath)) {
164
+ return;
165
+ }
166
+
167
+ if (!fs.existsSync(langPath)) {
168
+ return;
169
+ }
170
+
171
+ try {
172
+ const enUS = JSON.parse(fs.readFileSync(enUSPath, 'utf8'));
173
+ const langData = JSON.parse(fs.readFileSync(langPath, 'utf8'));
174
+
175
+ const result = removeUnusedKeys(enUS, langData, langPath, langCode, dryRun);
176
+
177
+ if (result.removed > 0) {
178
+ langRemoved += result.removed;
179
+ langFiles++;
180
+ totalRemoved += result.removed;
181
+ totalFiles++;
182
+
183
+ if (dryRun) {
184
+ console.log(` 🔍 ${file}: Would remove ${result.removed} key(s): ${result.keys.slice(0, 5).join(', ')}${result.keys.length > 5 ? '...' : ''}`);
185
+ } else {
186
+ console.log(` ✅ ${file}: Removed ${result.removed} unused key(s): ${result.keys.slice(0, 5).join(', ')}${result.keys.length > 5 ? '...' : ''}`);
187
+ }
188
+ }
189
+ } catch (error) {
190
+ console.log(` ❌ Error processing ${file}: ${error.message}`);
191
+ }
192
+ });
193
+
194
+ if (langRemoved === 0) {
195
+ console.log(` ✅ ${langCode}: No unused keys found`);
196
+ } else {
197
+ console.log(` 📊 ${langCode}: Removed ${langRemoved} unused key(s) from ${langFiles} file(s)`);
198
+ }
199
+ });
200
+
201
+ console.log('\n📊 Summary:');
202
+ console.log(` Languages processed: ${languageDirs.length}`);
203
+ console.log(` Files modified: ${totalFiles}`);
204
+ console.log(` Total keys removed: ${totalRemoved}`);
205
+
206
+ if (dryRun) {
207
+ console.log('\n💡 Run without --dry-run to actually remove the keys.');
208
+ } else if (totalRemoved > 0) {
209
+ console.log('\n✅ Unused keys removed successfully!');
210
+ } else {
211
+ console.log('\n✅ No unused keys found!');
212
+ }
213
+ }
214
+
215
+ main();
216
+
@@ -0,0 +1,122 @@
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
+ // All 38 languages (excluding en-US)
9
+ const LANGUAGES = [
10
+ "ar-SA", // Arabic
11
+ "bg-BG", // Bulgarian
12
+ "cs-CZ", // Czech
13
+ "da-DK", // Danish
14
+ "de-DE", // German
15
+ "el-GR", // Greek
16
+ "en-AU", // English (Australia)
17
+ "en-CA", // English (Canada)
18
+ "en-GB", // English (UK)
19
+ "es-ES", // Spanish (Spain)
20
+ "es-MX", // Spanish (Mexico)
21
+ "fi-FI", // Finnish
22
+ "fr-CA", // French (Canada)
23
+ "fr-FR", // French (France)
24
+ "hi-IN", // Hindi
25
+ "hr-HR", // Croatian
26
+ "hu-HU", // Hungarian
27
+ "id-ID", // Indonesian
28
+ "it-IT", // Italian
29
+ "ja-JP", // Japanese
30
+ "ko-KR", // Korean
31
+ "ms-MY", // Malay
32
+ "nl-NL", // Dutch
33
+ "no-NO", // Norwegian
34
+ "pl-PL", // Polish
35
+ "pt-BR", // Portuguese (Brazil)
36
+ "pt-PT", // Portuguese (Portugal)
37
+ "ro-RO", // Romanian
38
+ "ru-RU", // Russian
39
+ "sk-SK", // Slovak
40
+ "sv-SE", // Swedish
41
+ "th-TH", // Thai
42
+ "tl-PH", // Tagalog
43
+ "tr-TR", // Turkish
44
+ "uk-UA", // Ukrainian
45
+ "vi-VN", // Vietnamese
46
+ "zh-CN", // Chinese Simplified
47
+ "zh-TW", // Chinese Traditional
48
+ ];
49
+
50
+ async function setupLanguages() {
51
+ // Find or create project's locales directory
52
+ const localesDir = getLocalesDir(true); // Create if not exists
53
+ const enUSDir = path.join(localesDir, "en-US");
54
+
55
+ console.log("🚀 Setting up language directories and files...\n");
56
+
57
+ // Check if en-US directory exists
58
+ if (!fs.existsSync(enUSDir)) {
59
+ console.error("❌ en-US directory not found!");
60
+ console.error(" Expected path:", enUSDir);
61
+ process.exit(1);
62
+ }
63
+
64
+ // Automatically discover all JSON files in en-US directory
65
+ const files = fs
66
+ .readdirSync(enUSDir)
67
+ .filter((file) => file.endsWith(".json"))
68
+ .sort();
69
+
70
+ if (files.length === 0) {
71
+ console.error("❌ No JSON files found in en-US directory!");
72
+ process.exit(1);
73
+ }
74
+
75
+ console.log(`📄 Found ${files.length} translation files in en-US:`);
76
+ files.forEach((file) => console.log(` - ${file}`));
77
+ console.log("");
78
+
79
+ let createdDirs = 0;
80
+ let createdFiles = 0;
81
+
82
+ for (const langCode of LANGUAGES) {
83
+ const langDir = path.join(localesDir, langCode);
84
+
85
+ // Create language directory if it doesn't exist
86
+ if (!fs.existsSync(langDir)) {
87
+ fs.mkdirSync(langDir, { recursive: true });
88
+ console.log(`📁 Created directory: ${langCode}/`);
89
+ createdDirs++;
90
+ }
91
+
92
+ // Copy each file from en-US
93
+ for (const file of files) {
94
+ const enUSFile = path.join(enUSDir, file);
95
+ const targetFile = path.join(langDir, file);
96
+
97
+ if (!fs.existsSync(targetFile)) {
98
+ // Copy the en-US file as a starting point
99
+ const content = fs.readFileSync(enUSFile, "utf8");
100
+ fs.writeFileSync(targetFile, content);
101
+ console.log(` 📄 Created: ${langCode}/${file}`);
102
+ createdFiles++;
103
+ }
104
+ }
105
+ }
106
+
107
+ console.log(`\n✅ Setup completed!`);
108
+ console.log(` Directories created: ${createdDirs}`);
109
+ console.log(` Files created: ${createdFiles}`);
110
+ console.log(` Total languages: ${LANGUAGES.length + 1} (including en-US)`);
111
+ console.log(
112
+ `\n📝 Next steps:`,
113
+ );
114
+ console.log(` 1. Add your translation keys to en-US/*.json files`);
115
+ console.log(` 2. Run 'npm run i18n:translate' to auto-translate all languages`);
116
+ console.log(` 3. Run 'npm run i18n:check all' to verify completeness`);
117
+ }
118
+
119
+ setupLanguages().catch((error) => {
120
+ console.error("❌ Setup failed:", error);
121
+ process.exit(1);
122
+ });