lit 0.4.0.pre.alpha.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +89 -5
  3. data/Rakefile +9 -15
  4. data/app/assets/javascripts/lit/backend/bootstrap.min.js +7 -0
  5. data/app/controllers/lit/api/v1/localizations_controller.rb +7 -2
  6. data/app/controllers/lit/cloud_translations_controller.rb +26 -0
  7. data/app/controllers/lit/localization_keys_controller.rb +6 -0
  8. data/app/controllers/lit/localizations_controller.rb +3 -2
  9. data/app/controllers/lit/sources_controller.rb +1 -1
  10. data/app/helpers/lit/frontend_helper.rb +1 -1
  11. data/app/helpers/lit/localizations_helper.rb +13 -0
  12. data/app/models/lit/base.rb +33 -17
  13. data/app/models/lit/incomming_localization.rb +2 -2
  14. data/app/services/remote_interactor_service.rb +1 -0
  15. data/app/views/layouts/lit/application.html.erb +0 -1
  16. data/app/views/lit/cloud_translations/show.js.erb +14 -0
  17. data/app/views/lit/dashboard/index.html.erb +1 -1
  18. data/app/views/lit/incomming_localizations/index.html.erb +1 -1
  19. data/app/views/lit/localization_keys/_localizations_list.html.erb +1 -1
  20. data/app/views/lit/localization_keys/index.html.erb +2 -0
  21. data/app/views/lit/localization_keys/not_translated.html.erb +2 -0
  22. data/app/views/lit/localization_keys/visited_again.html.erb +3 -0
  23. data/app/views/lit/localizations/_form.html.erb +27 -0
  24. data/config/routes.rb +2 -0
  25. data/db/migrate/20181129103819_lit_add_localization_key_locale_unique_index_to_localizations.rb +7 -0
  26. data/lib/generators/lit/install/templates/initializer.rb +6 -3
  27. data/lib/lit.rb +19 -6
  28. data/lib/lit/adapters/hash_storage.rb +35 -1
  29. data/lib/lit/adapters/redis_storage.rb +41 -7
  30. data/lib/lit/cache.rb +47 -13
  31. data/lib/lit/cloud_translation.rb +53 -0
  32. data/lib/lit/cloud_translation/providers/base.rb +66 -0
  33. data/lib/lit/cloud_translation/providers/google.rb +117 -0
  34. data/lib/lit/cloud_translation/providers/yandex.rb +84 -0
  35. data/lib/lit/engine.rb +11 -5
  36. data/lib/lit/export.rb +2 -18
  37. data/lib/lit/i18n_backend.rb +20 -7
  38. data/lib/lit/import.rb +15 -14
  39. data/lib/lit/loader.rb +3 -1
  40. data/lib/lit/services/localization_keys_to_hash_service.rb +23 -0
  41. data/lib/lit/version.rb +1 -1
  42. metadata +125 -268
  43. data/app/assets/images/lit/famfamfam_flags/ad.png +0 -0
  44. data/app/assets/images/lit/famfamfam_flags/ae.png +0 -0
  45. data/app/assets/images/lit/famfamfam_flags/af.png +0 -0
  46. data/app/assets/images/lit/famfamfam_flags/ag.png +0 -0
  47. data/app/assets/images/lit/famfamfam_flags/ai.png +0 -0
  48. data/app/assets/images/lit/famfamfam_flags/al.png +0 -0
  49. data/app/assets/images/lit/famfamfam_flags/am.png +0 -0
  50. data/app/assets/images/lit/famfamfam_flags/an.png +0 -0
  51. data/app/assets/images/lit/famfamfam_flags/ao.png +0 -0
  52. data/app/assets/images/lit/famfamfam_flags/ar.png +0 -0
  53. data/app/assets/images/lit/famfamfam_flags/as.png +0 -0
  54. data/app/assets/images/lit/famfamfam_flags/at.png +0 -0
  55. data/app/assets/images/lit/famfamfam_flags/au.png +0 -0
  56. data/app/assets/images/lit/famfamfam_flags/aw.png +0 -0
  57. data/app/assets/images/lit/famfamfam_flags/ax.png +0 -0
  58. data/app/assets/images/lit/famfamfam_flags/az.png +0 -0
  59. data/app/assets/images/lit/famfamfam_flags/ba.png +0 -0
  60. data/app/assets/images/lit/famfamfam_flags/bb.png +0 -0
  61. data/app/assets/images/lit/famfamfam_flags/bd.png +0 -0
  62. data/app/assets/images/lit/famfamfam_flags/be.png +0 -0
  63. data/app/assets/images/lit/famfamfam_flags/bf.png +0 -0
  64. data/app/assets/images/lit/famfamfam_flags/bg.png +0 -0
  65. data/app/assets/images/lit/famfamfam_flags/bh.png +0 -0
  66. data/app/assets/images/lit/famfamfam_flags/bi.png +0 -0
  67. data/app/assets/images/lit/famfamfam_flags/bj.png +0 -0
  68. data/app/assets/images/lit/famfamfam_flags/bm.png +0 -0
  69. data/app/assets/images/lit/famfamfam_flags/bn.png +0 -0
  70. data/app/assets/images/lit/famfamfam_flags/bo.png +0 -0
  71. data/app/assets/images/lit/famfamfam_flags/br.png +0 -0
  72. data/app/assets/images/lit/famfamfam_flags/bs.png +0 -0
  73. data/app/assets/images/lit/famfamfam_flags/bt.png +0 -0
  74. data/app/assets/images/lit/famfamfam_flags/bv.png +0 -0
  75. data/app/assets/images/lit/famfamfam_flags/bw.png +0 -0
  76. data/app/assets/images/lit/famfamfam_flags/by.png +0 -0
  77. data/app/assets/images/lit/famfamfam_flags/bz.png +0 -0
  78. data/app/assets/images/lit/famfamfam_flags/ca.png +0 -0
  79. data/app/assets/images/lit/famfamfam_flags/catalonia.png +0 -0
  80. data/app/assets/images/lit/famfamfam_flags/cc.png +0 -0
  81. data/app/assets/images/lit/famfamfam_flags/cd.png +0 -0
  82. data/app/assets/images/lit/famfamfam_flags/cf.png +0 -0
  83. data/app/assets/images/lit/famfamfam_flags/cg.png +0 -0
  84. data/app/assets/images/lit/famfamfam_flags/ch.png +0 -0
  85. data/app/assets/images/lit/famfamfam_flags/ci.png +0 -0
  86. data/app/assets/images/lit/famfamfam_flags/ck.png +0 -0
  87. data/app/assets/images/lit/famfamfam_flags/cl.png +0 -0
  88. data/app/assets/images/lit/famfamfam_flags/cm.png +0 -0
  89. data/app/assets/images/lit/famfamfam_flags/cn.png +0 -0
  90. data/app/assets/images/lit/famfamfam_flags/co.png +0 -0
  91. data/app/assets/images/lit/famfamfam_flags/cr.png +0 -0
  92. data/app/assets/images/lit/famfamfam_flags/cs.png +0 -0
  93. data/app/assets/images/lit/famfamfam_flags/cu.png +0 -0
  94. data/app/assets/images/lit/famfamfam_flags/cv.png +0 -0
  95. data/app/assets/images/lit/famfamfam_flags/cx.png +0 -0
  96. data/app/assets/images/lit/famfamfam_flags/cy.png +0 -0
  97. data/app/assets/images/lit/famfamfam_flags/cz.png +0 -0
  98. data/app/assets/images/lit/famfamfam_flags/da.png +0 -0
  99. data/app/assets/images/lit/famfamfam_flags/de.png +0 -0
  100. data/app/assets/images/lit/famfamfam_flags/dj.png +0 -0
  101. data/app/assets/images/lit/famfamfam_flags/dk.png +0 -0
  102. data/app/assets/images/lit/famfamfam_flags/dm.png +0 -0
  103. data/app/assets/images/lit/famfamfam_flags/do.png +0 -0
  104. data/app/assets/images/lit/famfamfam_flags/dz.png +0 -0
  105. data/app/assets/images/lit/famfamfam_flags/ec.png +0 -0
  106. data/app/assets/images/lit/famfamfam_flags/ee.png +0 -0
  107. data/app/assets/images/lit/famfamfam_flags/eg.png +0 -0
  108. data/app/assets/images/lit/famfamfam_flags/eh.png +0 -0
  109. data/app/assets/images/lit/famfamfam_flags/en.png +0 -0
  110. data/app/assets/images/lit/famfamfam_flags/england.png +0 -0
  111. data/app/assets/images/lit/famfamfam_flags/er.png +0 -0
  112. data/app/assets/images/lit/famfamfam_flags/es.png +0 -0
  113. data/app/assets/images/lit/famfamfam_flags/et.png +0 -0
  114. data/app/assets/images/lit/famfamfam_flags/europeanunion.png +0 -0
  115. data/app/assets/images/lit/famfamfam_flags/fam.png +0 -0
  116. data/app/assets/images/lit/famfamfam_flags/fi.png +0 -0
  117. data/app/assets/images/lit/famfamfam_flags/fj.png +0 -0
  118. data/app/assets/images/lit/famfamfam_flags/fk.png +0 -0
  119. data/app/assets/images/lit/famfamfam_flags/fm.png +0 -0
  120. data/app/assets/images/lit/famfamfam_flags/fo.png +0 -0
  121. data/app/assets/images/lit/famfamfam_flags/fr.png +0 -0
  122. data/app/assets/images/lit/famfamfam_flags/ga.png +0 -0
  123. data/app/assets/images/lit/famfamfam_flags/gb.png +0 -0
  124. data/app/assets/images/lit/famfamfam_flags/gd.png +0 -0
  125. data/app/assets/images/lit/famfamfam_flags/ge.png +0 -0
  126. data/app/assets/images/lit/famfamfam_flags/gf.png +0 -0
  127. data/app/assets/images/lit/famfamfam_flags/gh.png +0 -0
  128. data/app/assets/images/lit/famfamfam_flags/gi.png +0 -0
  129. data/app/assets/images/lit/famfamfam_flags/gl.png +0 -0
  130. data/app/assets/images/lit/famfamfam_flags/gm.png +0 -0
  131. data/app/assets/images/lit/famfamfam_flags/gn.png +0 -0
  132. data/app/assets/images/lit/famfamfam_flags/gp.png +0 -0
  133. data/app/assets/images/lit/famfamfam_flags/gq.png +0 -0
  134. data/app/assets/images/lit/famfamfam_flags/gr.png +0 -0
  135. data/app/assets/images/lit/famfamfam_flags/gs.png +0 -0
  136. data/app/assets/images/lit/famfamfam_flags/gt.png +0 -0
  137. data/app/assets/images/lit/famfamfam_flags/gu.png +0 -0
  138. data/app/assets/images/lit/famfamfam_flags/gw.png +0 -0
  139. data/app/assets/images/lit/famfamfam_flags/gy.png +0 -0
  140. data/app/assets/images/lit/famfamfam_flags/hk.png +0 -0
  141. data/app/assets/images/lit/famfamfam_flags/hm.png +0 -0
  142. data/app/assets/images/lit/famfamfam_flags/hn.png +0 -0
  143. data/app/assets/images/lit/famfamfam_flags/hr.png +0 -0
  144. data/app/assets/images/lit/famfamfam_flags/ht.png +0 -0
  145. data/app/assets/images/lit/famfamfam_flags/hu.png +0 -0
  146. data/app/assets/images/lit/famfamfam_flags/id.png +0 -0
  147. data/app/assets/images/lit/famfamfam_flags/ie.png +0 -0
  148. data/app/assets/images/lit/famfamfam_flags/il.png +0 -0
  149. data/app/assets/images/lit/famfamfam_flags/in.png +0 -0
  150. data/app/assets/images/lit/famfamfam_flags/io.png +0 -0
  151. data/app/assets/images/lit/famfamfam_flags/iq.png +0 -0
  152. data/app/assets/images/lit/famfamfam_flags/ir.png +0 -0
  153. data/app/assets/images/lit/famfamfam_flags/is.png +0 -0
  154. data/app/assets/images/lit/famfamfam_flags/it.png +0 -0
  155. data/app/assets/images/lit/famfamfam_flags/ja.png +0 -0
  156. data/app/assets/images/lit/famfamfam_flags/jm.png +0 -0
  157. data/app/assets/images/lit/famfamfam_flags/jo.png +0 -0
  158. data/app/assets/images/lit/famfamfam_flags/jp.png +0 -0
  159. data/app/assets/images/lit/famfamfam_flags/ke.png +0 -0
  160. data/app/assets/images/lit/famfamfam_flags/kg.png +0 -0
  161. data/app/assets/images/lit/famfamfam_flags/kh.png +0 -0
  162. data/app/assets/images/lit/famfamfam_flags/ki.png +0 -0
  163. data/app/assets/images/lit/famfamfam_flags/km.png +0 -0
  164. data/app/assets/images/lit/famfamfam_flags/kn.png +0 -0
  165. data/app/assets/images/lit/famfamfam_flags/kp.png +0 -0
  166. data/app/assets/images/lit/famfamfam_flags/kr.png +0 -0
  167. data/app/assets/images/lit/famfamfam_flags/kw.png +0 -0
  168. data/app/assets/images/lit/famfamfam_flags/ky.png +0 -0
  169. data/app/assets/images/lit/famfamfam_flags/kz.png +0 -0
  170. data/app/assets/images/lit/famfamfam_flags/la.png +0 -0
  171. data/app/assets/images/lit/famfamfam_flags/lb.png +0 -0
  172. data/app/assets/images/lit/famfamfam_flags/lc.png +0 -0
  173. data/app/assets/images/lit/famfamfam_flags/li.png +0 -0
  174. data/app/assets/images/lit/famfamfam_flags/lk.png +0 -0
  175. data/app/assets/images/lit/famfamfam_flags/lr.png +0 -0
  176. data/app/assets/images/lit/famfamfam_flags/ls.png +0 -0
  177. data/app/assets/images/lit/famfamfam_flags/lt.png +0 -0
  178. data/app/assets/images/lit/famfamfam_flags/lu.png +0 -0
  179. data/app/assets/images/lit/famfamfam_flags/lv.png +0 -0
  180. data/app/assets/images/lit/famfamfam_flags/ly.png +0 -0
  181. data/app/assets/images/lit/famfamfam_flags/ma.png +0 -0
  182. data/app/assets/images/lit/famfamfam_flags/mc.png +0 -0
  183. data/app/assets/images/lit/famfamfam_flags/md.png +0 -0
  184. data/app/assets/images/lit/famfamfam_flags/me.png +0 -0
  185. data/app/assets/images/lit/famfamfam_flags/mg.png +0 -0
  186. data/app/assets/images/lit/famfamfam_flags/mh.png +0 -0
  187. data/app/assets/images/lit/famfamfam_flags/mk.png +0 -0
  188. data/app/assets/images/lit/famfamfam_flags/ml.png +0 -0
  189. data/app/assets/images/lit/famfamfam_flags/mm.png +0 -0
  190. data/app/assets/images/lit/famfamfam_flags/mn.png +0 -0
  191. data/app/assets/images/lit/famfamfam_flags/mo.png +0 -0
  192. data/app/assets/images/lit/famfamfam_flags/mp.png +0 -0
  193. data/app/assets/images/lit/famfamfam_flags/mq.png +0 -0
  194. data/app/assets/images/lit/famfamfam_flags/mr.png +0 -0
  195. data/app/assets/images/lit/famfamfam_flags/ms.png +0 -0
  196. data/app/assets/images/lit/famfamfam_flags/mt.png +0 -0
  197. data/app/assets/images/lit/famfamfam_flags/mu.png +0 -0
  198. data/app/assets/images/lit/famfamfam_flags/mv.png +0 -0
  199. data/app/assets/images/lit/famfamfam_flags/mw.png +0 -0
  200. data/app/assets/images/lit/famfamfam_flags/mx.png +0 -0
  201. data/app/assets/images/lit/famfamfam_flags/my.png +0 -0
  202. data/app/assets/images/lit/famfamfam_flags/mz.png +0 -0
  203. data/app/assets/images/lit/famfamfam_flags/na.png +0 -0
  204. data/app/assets/images/lit/famfamfam_flags/nc.png +0 -0
  205. data/app/assets/images/lit/famfamfam_flags/ne.png +0 -0
  206. data/app/assets/images/lit/famfamfam_flags/nf.png +0 -0
  207. data/app/assets/images/lit/famfamfam_flags/ng.png +0 -0
  208. data/app/assets/images/lit/famfamfam_flags/ni.png +0 -0
  209. data/app/assets/images/lit/famfamfam_flags/nl.png +0 -0
  210. data/app/assets/images/lit/famfamfam_flags/no.png +0 -0
  211. data/app/assets/images/lit/famfamfam_flags/np.png +0 -0
  212. data/app/assets/images/lit/famfamfam_flags/nr.png +0 -0
  213. data/app/assets/images/lit/famfamfam_flags/nu.png +0 -0
  214. data/app/assets/images/lit/famfamfam_flags/nz.png +0 -0
  215. data/app/assets/images/lit/famfamfam_flags/om.png +0 -0
  216. data/app/assets/images/lit/famfamfam_flags/pa.png +0 -0
  217. data/app/assets/images/lit/famfamfam_flags/pe.png +0 -0
  218. data/app/assets/images/lit/famfamfam_flags/pf.png +0 -0
  219. data/app/assets/images/lit/famfamfam_flags/pg.png +0 -0
  220. data/app/assets/images/lit/famfamfam_flags/ph.png +0 -0
  221. data/app/assets/images/lit/famfamfam_flags/pk.png +0 -0
  222. data/app/assets/images/lit/famfamfam_flags/pl.png +0 -0
  223. data/app/assets/images/lit/famfamfam_flags/pm.png +0 -0
  224. data/app/assets/images/lit/famfamfam_flags/pn.png +0 -0
  225. data/app/assets/images/lit/famfamfam_flags/pr.png +0 -0
  226. data/app/assets/images/lit/famfamfam_flags/ps.png +0 -0
  227. data/app/assets/images/lit/famfamfam_flags/pt.png +0 -0
  228. data/app/assets/images/lit/famfamfam_flags/pw.png +0 -0
  229. data/app/assets/images/lit/famfamfam_flags/py.png +0 -0
  230. data/app/assets/images/lit/famfamfam_flags/qa.png +0 -0
  231. data/app/assets/images/lit/famfamfam_flags/re.png +0 -0
  232. data/app/assets/images/lit/famfamfam_flags/ro.png +0 -0
  233. data/app/assets/images/lit/famfamfam_flags/rs.png +0 -0
  234. data/app/assets/images/lit/famfamfam_flags/ru.png +0 -0
  235. data/app/assets/images/lit/famfamfam_flags/rw.png +0 -0
  236. data/app/assets/images/lit/famfamfam_flags/sa.png +0 -0
  237. data/app/assets/images/lit/famfamfam_flags/sb.png +0 -0
  238. data/app/assets/images/lit/famfamfam_flags/sc.png +0 -0
  239. data/app/assets/images/lit/famfamfam_flags/scotland.png +0 -0
  240. data/app/assets/images/lit/famfamfam_flags/sd.png +0 -0
  241. data/app/assets/images/lit/famfamfam_flags/se.png +0 -0
  242. data/app/assets/images/lit/famfamfam_flags/sg.png +0 -0
  243. data/app/assets/images/lit/famfamfam_flags/sh.png +0 -0
  244. data/app/assets/images/lit/famfamfam_flags/si.png +0 -0
  245. data/app/assets/images/lit/famfamfam_flags/sj.png +0 -0
  246. data/app/assets/images/lit/famfamfam_flags/sk.png +0 -0
  247. data/app/assets/images/lit/famfamfam_flags/sl.png +0 -0
  248. data/app/assets/images/lit/famfamfam_flags/sm.png +0 -0
  249. data/app/assets/images/lit/famfamfam_flags/sn.png +0 -0
  250. data/app/assets/images/lit/famfamfam_flags/so.png +0 -0
  251. data/app/assets/images/lit/famfamfam_flags/sr.png +0 -0
  252. data/app/assets/images/lit/famfamfam_flags/st.png +0 -0
  253. data/app/assets/images/lit/famfamfam_flags/sv.png +0 -0
  254. data/app/assets/images/lit/famfamfam_flags/sy.png +0 -0
  255. data/app/assets/images/lit/famfamfam_flags/sz.png +0 -0
  256. data/app/assets/images/lit/famfamfam_flags/tc.png +0 -0
  257. data/app/assets/images/lit/famfamfam_flags/td.png +0 -0
  258. data/app/assets/images/lit/famfamfam_flags/tf.png +0 -0
  259. data/app/assets/images/lit/famfamfam_flags/tg.png +0 -0
  260. data/app/assets/images/lit/famfamfam_flags/th.png +0 -0
  261. data/app/assets/images/lit/famfamfam_flags/tj.png +0 -0
  262. data/app/assets/images/lit/famfamfam_flags/tk.png +0 -0
  263. data/app/assets/images/lit/famfamfam_flags/tl.png +0 -0
  264. data/app/assets/images/lit/famfamfam_flags/tm.png +0 -0
  265. data/app/assets/images/lit/famfamfam_flags/tn.png +0 -0
  266. data/app/assets/images/lit/famfamfam_flags/to.png +0 -0
  267. data/app/assets/images/lit/famfamfam_flags/tr.png +0 -0
  268. data/app/assets/images/lit/famfamfam_flags/tt.png +0 -0
  269. data/app/assets/images/lit/famfamfam_flags/tv.png +0 -0
  270. data/app/assets/images/lit/famfamfam_flags/tw.png +0 -0
  271. data/app/assets/images/lit/famfamfam_flags/tz.png +0 -0
  272. data/app/assets/images/lit/famfamfam_flags/ua.png +0 -0
  273. data/app/assets/images/lit/famfamfam_flags/ug.png +0 -0
  274. data/app/assets/images/lit/famfamfam_flags/um.png +0 -0
  275. data/app/assets/images/lit/famfamfam_flags/us.png +0 -0
  276. data/app/assets/images/lit/famfamfam_flags/uy.png +0 -0
  277. data/app/assets/images/lit/famfamfam_flags/uz.png +0 -0
  278. data/app/assets/images/lit/famfamfam_flags/va.png +0 -0
  279. data/app/assets/images/lit/famfamfam_flags/vc.png +0 -0
  280. data/app/assets/images/lit/famfamfam_flags/ve.png +0 -0
  281. data/app/assets/images/lit/famfamfam_flags/vg.png +0 -0
  282. data/app/assets/images/lit/famfamfam_flags/vi.png +0 -0
  283. data/app/assets/images/lit/famfamfam_flags/vn.png +0 -0
  284. data/app/assets/images/lit/famfamfam_flags/vu.png +0 -0
  285. data/app/assets/images/lit/famfamfam_flags/wales.png +0 -0
  286. data/app/assets/images/lit/famfamfam_flags/wf.png +0 -0
  287. data/app/assets/images/lit/famfamfam_flags/ws.png +0 -0
  288. data/app/assets/images/lit/famfamfam_flags/ye.png +0 -0
  289. data/app/assets/images/lit/famfamfam_flags/yt.png +0 -0
  290. data/app/assets/images/lit/famfamfam_flags/za.png +0 -0
  291. data/app/assets/images/lit/famfamfam_flags/zm.png +0 -0
  292. data/app/assets/images/lit/famfamfam_flags/zw.png +0 -0
@@ -3,6 +3,8 @@ require 'lit/i18n_backend'
3
3
  require 'lit/cache'
4
4
  require 'lit/export'
5
5
  require 'lit/import'
6
+ require 'lit/cloud_translation'
7
+ require 'emoji_flag'
6
8
 
7
9
  module Lit
8
10
  class Loader
@@ -10,7 +12,7 @@ module Lit
10
12
  attr_accessor :logger
11
13
  def initialize
12
14
  self.logger ||= Logger.new($stdout)
13
- self.logger.info 'initializing Lit'
15
+ self.logger.info 'initializing Lit' unless ::Rails.env.test?
14
16
  self.cache ||= Cache.new
15
17
  I18n.backend = I18nBackend.new(self.cache)
16
18
  end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lit
4
+ # Converts flat hash with localization_keys as keys and translations as values to nested hash
5
+ # by nesting on '.' localization key dots
6
+ class LocalizationKeysToHashService
7
+ # http://subtech.g.hatena.ne.jp/cho45/20061122
8
+ def self.call(db_localizations)
9
+ deep_proc = proc do |_k, s, o|
10
+ next s.merge(o, &deep_proc) if s.is_a?(Hash) && o.is_a?(Hash)
11
+
12
+ next o
13
+ end
14
+ nested_keys = {}
15
+ db_localizations.sort.each do |k, v|
16
+ key_parts = k.to_s.split('.')
17
+ converted = key_parts.reverse.reduce(v) { |a, n| { n => a } }
18
+ nested_keys.merge!(converted, &deep_proc)
19
+ end
20
+ nested_keys
21
+ end
22
+ end
23
+ end
@@ -1,3 +1,3 @@
1
1
  module Lit
2
- VERSION = '0.4.0-alpha.4'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.pre.alpha.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Litwiniuk
8
8
  - Piotr Boniecki
9
9
  - Michał Buszkiewicz
10
- autorequire:
10
+ - Szymon Soppa
11
+ autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2018-11-30 00:00:00.000000000 Z
14
+ date: 2020-11-03 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rails
@@ -55,13 +56,13 @@ dependencies:
55
56
  - !ruby/object:Gem::Version
56
57
  version: '0'
57
58
  - !ruby/object:Gem::Dependency
58
- name: appraisal
59
+ name: sass-rails
59
60
  requirement: !ruby/object:Gem::Requirement
60
61
  requirements:
61
62
  - - ">="
62
63
  - !ruby/object:Gem::Version
63
64
  version: '0'
64
- type: :development
65
+ type: :runtime
65
66
  prerelease: false
66
67
  version_requirements: !ruby/object:Gem::Requirement
67
68
  requirements:
@@ -69,13 +70,13 @@ dependencies:
69
70
  - !ruby/object:Gem::Version
70
71
  version: '0'
71
72
  - !ruby/object:Gem::Dependency
72
- name: devise
73
+ name: emoji_flag
73
74
  requirement: !ruby/object:Gem::Requirement
74
75
  requirements:
75
76
  - - ">="
76
77
  - !ruby/object:Gem::Version
77
78
  version: '0'
78
- type: :development
79
+ type: :runtime
79
80
  prerelease: false
80
81
  version_requirements: !ruby/object:Gem::Requirement
81
82
  requirements:
@@ -83,19 +84,117 @@ dependencies:
83
84
  - !ruby/object:Gem::Version
84
85
  version: '0'
85
86
  - !ruby/object:Gem::Dependency
86
- name: pg
87
+ name: appraisal
87
88
  requirement: !ruby/object:Gem::Requirement
88
89
  requirements:
89
- - - ">="
90
+ - - "~>"
90
91
  - !ruby/object:Gem::Version
91
- version: '0'
92
+ version: 2.2.0
92
93
  type: :development
93
94
  prerelease: false
94
95
  version_requirements: !ruby/object:Gem::Requirement
95
96
  requirements:
96
- - - ">="
97
+ - - "~>"
97
98
  - !ruby/object:Gem::Version
98
- version: '0'
99
+ version: 2.2.0
100
+ - !ruby/object:Gem::Dependency
101
+ name: devise
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - "~>"
105
+ - !ruby/object:Gem::Version
106
+ version: 4.7.1
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: 4.7.1
114
+ - !ruby/object:Gem::Dependency
115
+ name: google-cloud-translate
116
+ requirement: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - "~>"
119
+ - !ruby/object:Gem::Version
120
+ version: 1.2.4
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: 1.2.4
128
+ - !ruby/object:Gem::Dependency
129
+ name: minitest
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: 5.11.3
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: 5.11.3
142
+ - !ruby/object:Gem::Dependency
143
+ name: minitest-vcr
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: 1.4.0
149
+ type: :development
150
+ prerelease: false
151
+ version_requirements: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: 1.4.0
156
+ - !ruby/object:Gem::Dependency
157
+ name: pry-byebug
158
+ requirement: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - "~>"
161
+ - !ruby/object:Gem::Version
162
+ version: 3.9.0
163
+ type: :development
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - "~>"
168
+ - !ruby/object:Gem::Version
169
+ version: 3.9.0
170
+ - !ruby/object:Gem::Dependency
171
+ name: vcr
172
+ requirement: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - "~>"
175
+ - !ruby/object:Gem::Version
176
+ version: 4.0.0
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - "~>"
182
+ - !ruby/object:Gem::Version
183
+ version: 4.0.0
184
+ - !ruby/object:Gem::Dependency
185
+ name: webmock
186
+ requirement: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - "~>"
189
+ - !ruby/object:Gem::Version
190
+ version: 3.4.2
191
+ type: :development
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: 3.4.2
99
198
  description: "Translate your apps with pleasure (sort of...) and for free.\n It's
100
199
  simple i18n web interface, build on top of twitter\n bootstrap,
101
200
  that one may find helpful in translating app by\n non-technicals. "
@@ -108,259 +207,10 @@ files:
108
207
  - MIT-LICENSE
109
208
  - README.md
110
209
  - Rakefile
111
- - app/assets/images/lit/famfamfam_flags/ad.png
112
- - app/assets/images/lit/famfamfam_flags/ae.png
113
- - app/assets/images/lit/famfamfam_flags/af.png
114
- - app/assets/images/lit/famfamfam_flags/ag.png
115
- - app/assets/images/lit/famfamfam_flags/ai.png
116
- - app/assets/images/lit/famfamfam_flags/al.png
117
- - app/assets/images/lit/famfamfam_flags/am.png
118
- - app/assets/images/lit/famfamfam_flags/an.png
119
- - app/assets/images/lit/famfamfam_flags/ao.png
120
- - app/assets/images/lit/famfamfam_flags/ar.png
121
- - app/assets/images/lit/famfamfam_flags/as.png
122
- - app/assets/images/lit/famfamfam_flags/at.png
123
- - app/assets/images/lit/famfamfam_flags/au.png
124
- - app/assets/images/lit/famfamfam_flags/aw.png
125
- - app/assets/images/lit/famfamfam_flags/ax.png
126
- - app/assets/images/lit/famfamfam_flags/az.png
127
- - app/assets/images/lit/famfamfam_flags/ba.png
128
- - app/assets/images/lit/famfamfam_flags/bb.png
129
- - app/assets/images/lit/famfamfam_flags/bd.png
130
- - app/assets/images/lit/famfamfam_flags/be.png
131
- - app/assets/images/lit/famfamfam_flags/bf.png
132
- - app/assets/images/lit/famfamfam_flags/bg.png
133
- - app/assets/images/lit/famfamfam_flags/bh.png
134
- - app/assets/images/lit/famfamfam_flags/bi.png
135
- - app/assets/images/lit/famfamfam_flags/bj.png
136
- - app/assets/images/lit/famfamfam_flags/bm.png
137
- - app/assets/images/lit/famfamfam_flags/bn.png
138
- - app/assets/images/lit/famfamfam_flags/bo.png
139
- - app/assets/images/lit/famfamfam_flags/br.png
140
- - app/assets/images/lit/famfamfam_flags/bs.png
141
- - app/assets/images/lit/famfamfam_flags/bt.png
142
- - app/assets/images/lit/famfamfam_flags/bv.png
143
- - app/assets/images/lit/famfamfam_flags/bw.png
144
- - app/assets/images/lit/famfamfam_flags/by.png
145
- - app/assets/images/lit/famfamfam_flags/bz.png
146
- - app/assets/images/lit/famfamfam_flags/ca.png
147
- - app/assets/images/lit/famfamfam_flags/catalonia.png
148
- - app/assets/images/lit/famfamfam_flags/cc.png
149
- - app/assets/images/lit/famfamfam_flags/cd.png
150
- - app/assets/images/lit/famfamfam_flags/cf.png
151
- - app/assets/images/lit/famfamfam_flags/cg.png
152
- - app/assets/images/lit/famfamfam_flags/ch.png
153
- - app/assets/images/lit/famfamfam_flags/ci.png
154
- - app/assets/images/lit/famfamfam_flags/ck.png
155
- - app/assets/images/lit/famfamfam_flags/cl.png
156
- - app/assets/images/lit/famfamfam_flags/cm.png
157
- - app/assets/images/lit/famfamfam_flags/cn.png
158
- - app/assets/images/lit/famfamfam_flags/co.png
159
- - app/assets/images/lit/famfamfam_flags/cr.png
160
- - app/assets/images/lit/famfamfam_flags/cs.png
161
- - app/assets/images/lit/famfamfam_flags/cu.png
162
- - app/assets/images/lit/famfamfam_flags/cv.png
163
- - app/assets/images/lit/famfamfam_flags/cx.png
164
- - app/assets/images/lit/famfamfam_flags/cy.png
165
- - app/assets/images/lit/famfamfam_flags/cz.png
166
- - app/assets/images/lit/famfamfam_flags/da.png
167
- - app/assets/images/lit/famfamfam_flags/de.png
168
- - app/assets/images/lit/famfamfam_flags/dj.png
169
- - app/assets/images/lit/famfamfam_flags/dk.png
170
- - app/assets/images/lit/famfamfam_flags/dm.png
171
- - app/assets/images/lit/famfamfam_flags/do.png
172
- - app/assets/images/lit/famfamfam_flags/dz.png
173
- - app/assets/images/lit/famfamfam_flags/ec.png
174
- - app/assets/images/lit/famfamfam_flags/ee.png
175
- - app/assets/images/lit/famfamfam_flags/eg.png
176
- - app/assets/images/lit/famfamfam_flags/eh.png
177
- - app/assets/images/lit/famfamfam_flags/en.png
178
- - app/assets/images/lit/famfamfam_flags/england.png
179
- - app/assets/images/lit/famfamfam_flags/er.png
180
- - app/assets/images/lit/famfamfam_flags/es.png
181
- - app/assets/images/lit/famfamfam_flags/et.png
182
- - app/assets/images/lit/famfamfam_flags/europeanunion.png
183
- - app/assets/images/lit/famfamfam_flags/fam.png
184
- - app/assets/images/lit/famfamfam_flags/fi.png
185
- - app/assets/images/lit/famfamfam_flags/fj.png
186
- - app/assets/images/lit/famfamfam_flags/fk.png
187
- - app/assets/images/lit/famfamfam_flags/fm.png
188
- - app/assets/images/lit/famfamfam_flags/fo.png
189
- - app/assets/images/lit/famfamfam_flags/fr.png
190
- - app/assets/images/lit/famfamfam_flags/ga.png
191
- - app/assets/images/lit/famfamfam_flags/gb.png
192
- - app/assets/images/lit/famfamfam_flags/gd.png
193
- - app/assets/images/lit/famfamfam_flags/ge.png
194
- - app/assets/images/lit/famfamfam_flags/gf.png
195
- - app/assets/images/lit/famfamfam_flags/gh.png
196
- - app/assets/images/lit/famfamfam_flags/gi.png
197
- - app/assets/images/lit/famfamfam_flags/gl.png
198
- - app/assets/images/lit/famfamfam_flags/gm.png
199
- - app/assets/images/lit/famfamfam_flags/gn.png
200
- - app/assets/images/lit/famfamfam_flags/gp.png
201
- - app/assets/images/lit/famfamfam_flags/gq.png
202
- - app/assets/images/lit/famfamfam_flags/gr.png
203
- - app/assets/images/lit/famfamfam_flags/gs.png
204
- - app/assets/images/lit/famfamfam_flags/gt.png
205
- - app/assets/images/lit/famfamfam_flags/gu.png
206
- - app/assets/images/lit/famfamfam_flags/gw.png
207
- - app/assets/images/lit/famfamfam_flags/gy.png
208
- - app/assets/images/lit/famfamfam_flags/hk.png
209
- - app/assets/images/lit/famfamfam_flags/hm.png
210
- - app/assets/images/lit/famfamfam_flags/hn.png
211
- - app/assets/images/lit/famfamfam_flags/hr.png
212
- - app/assets/images/lit/famfamfam_flags/ht.png
213
- - app/assets/images/lit/famfamfam_flags/hu.png
214
- - app/assets/images/lit/famfamfam_flags/id.png
215
- - app/assets/images/lit/famfamfam_flags/ie.png
216
- - app/assets/images/lit/famfamfam_flags/il.png
217
- - app/assets/images/lit/famfamfam_flags/in.png
218
- - app/assets/images/lit/famfamfam_flags/io.png
219
- - app/assets/images/lit/famfamfam_flags/iq.png
220
- - app/assets/images/lit/famfamfam_flags/ir.png
221
- - app/assets/images/lit/famfamfam_flags/is.png
222
- - app/assets/images/lit/famfamfam_flags/it.png
223
- - app/assets/images/lit/famfamfam_flags/ja.png
224
- - app/assets/images/lit/famfamfam_flags/jm.png
225
- - app/assets/images/lit/famfamfam_flags/jo.png
226
- - app/assets/images/lit/famfamfam_flags/jp.png
227
- - app/assets/images/lit/famfamfam_flags/ke.png
228
- - app/assets/images/lit/famfamfam_flags/kg.png
229
- - app/assets/images/lit/famfamfam_flags/kh.png
230
- - app/assets/images/lit/famfamfam_flags/ki.png
231
- - app/assets/images/lit/famfamfam_flags/km.png
232
- - app/assets/images/lit/famfamfam_flags/kn.png
233
- - app/assets/images/lit/famfamfam_flags/kp.png
234
- - app/assets/images/lit/famfamfam_flags/kr.png
235
- - app/assets/images/lit/famfamfam_flags/kw.png
236
- - app/assets/images/lit/famfamfam_flags/ky.png
237
- - app/assets/images/lit/famfamfam_flags/kz.png
238
- - app/assets/images/lit/famfamfam_flags/la.png
239
- - app/assets/images/lit/famfamfam_flags/lb.png
240
- - app/assets/images/lit/famfamfam_flags/lc.png
241
- - app/assets/images/lit/famfamfam_flags/li.png
242
- - app/assets/images/lit/famfamfam_flags/lk.png
243
- - app/assets/images/lit/famfamfam_flags/lr.png
244
- - app/assets/images/lit/famfamfam_flags/ls.png
245
- - app/assets/images/lit/famfamfam_flags/lt.png
246
- - app/assets/images/lit/famfamfam_flags/lu.png
247
- - app/assets/images/lit/famfamfam_flags/lv.png
248
- - app/assets/images/lit/famfamfam_flags/ly.png
249
- - app/assets/images/lit/famfamfam_flags/ma.png
250
- - app/assets/images/lit/famfamfam_flags/mc.png
251
- - app/assets/images/lit/famfamfam_flags/md.png
252
- - app/assets/images/lit/famfamfam_flags/me.png
253
- - app/assets/images/lit/famfamfam_flags/mg.png
254
- - app/assets/images/lit/famfamfam_flags/mh.png
255
- - app/assets/images/lit/famfamfam_flags/mk.png
256
- - app/assets/images/lit/famfamfam_flags/ml.png
257
- - app/assets/images/lit/famfamfam_flags/mm.png
258
- - app/assets/images/lit/famfamfam_flags/mn.png
259
- - app/assets/images/lit/famfamfam_flags/mo.png
260
- - app/assets/images/lit/famfamfam_flags/mp.png
261
- - app/assets/images/lit/famfamfam_flags/mq.png
262
- - app/assets/images/lit/famfamfam_flags/mr.png
263
- - app/assets/images/lit/famfamfam_flags/ms.png
264
- - app/assets/images/lit/famfamfam_flags/mt.png
265
- - app/assets/images/lit/famfamfam_flags/mu.png
266
- - app/assets/images/lit/famfamfam_flags/mv.png
267
- - app/assets/images/lit/famfamfam_flags/mw.png
268
- - app/assets/images/lit/famfamfam_flags/mx.png
269
- - app/assets/images/lit/famfamfam_flags/my.png
270
- - app/assets/images/lit/famfamfam_flags/mz.png
271
- - app/assets/images/lit/famfamfam_flags/na.png
272
- - app/assets/images/lit/famfamfam_flags/nc.png
273
- - app/assets/images/lit/famfamfam_flags/ne.png
274
- - app/assets/images/lit/famfamfam_flags/nf.png
275
- - app/assets/images/lit/famfamfam_flags/ng.png
276
- - app/assets/images/lit/famfamfam_flags/ni.png
277
- - app/assets/images/lit/famfamfam_flags/nl.png
278
- - app/assets/images/lit/famfamfam_flags/no.png
279
- - app/assets/images/lit/famfamfam_flags/np.png
280
- - app/assets/images/lit/famfamfam_flags/nr.png
281
- - app/assets/images/lit/famfamfam_flags/nu.png
282
- - app/assets/images/lit/famfamfam_flags/nz.png
283
- - app/assets/images/lit/famfamfam_flags/om.png
284
- - app/assets/images/lit/famfamfam_flags/pa.png
285
- - app/assets/images/lit/famfamfam_flags/pe.png
286
- - app/assets/images/lit/famfamfam_flags/pf.png
287
- - app/assets/images/lit/famfamfam_flags/pg.png
288
- - app/assets/images/lit/famfamfam_flags/ph.png
289
- - app/assets/images/lit/famfamfam_flags/pk.png
290
- - app/assets/images/lit/famfamfam_flags/pl.png
291
- - app/assets/images/lit/famfamfam_flags/pm.png
292
- - app/assets/images/lit/famfamfam_flags/pn.png
293
- - app/assets/images/lit/famfamfam_flags/pr.png
294
- - app/assets/images/lit/famfamfam_flags/ps.png
295
- - app/assets/images/lit/famfamfam_flags/pt.png
296
- - app/assets/images/lit/famfamfam_flags/pw.png
297
- - app/assets/images/lit/famfamfam_flags/py.png
298
- - app/assets/images/lit/famfamfam_flags/qa.png
299
- - app/assets/images/lit/famfamfam_flags/re.png
300
- - app/assets/images/lit/famfamfam_flags/ro.png
301
- - app/assets/images/lit/famfamfam_flags/rs.png
302
- - app/assets/images/lit/famfamfam_flags/ru.png
303
- - app/assets/images/lit/famfamfam_flags/rw.png
304
- - app/assets/images/lit/famfamfam_flags/sa.png
305
- - app/assets/images/lit/famfamfam_flags/sb.png
306
- - app/assets/images/lit/famfamfam_flags/sc.png
307
- - app/assets/images/lit/famfamfam_flags/scotland.png
308
- - app/assets/images/lit/famfamfam_flags/sd.png
309
- - app/assets/images/lit/famfamfam_flags/se.png
310
- - app/assets/images/lit/famfamfam_flags/sg.png
311
- - app/assets/images/lit/famfamfam_flags/sh.png
312
- - app/assets/images/lit/famfamfam_flags/si.png
313
- - app/assets/images/lit/famfamfam_flags/sj.png
314
- - app/assets/images/lit/famfamfam_flags/sk.png
315
- - app/assets/images/lit/famfamfam_flags/sl.png
316
- - app/assets/images/lit/famfamfam_flags/sm.png
317
- - app/assets/images/lit/famfamfam_flags/sn.png
318
- - app/assets/images/lit/famfamfam_flags/so.png
319
- - app/assets/images/lit/famfamfam_flags/sr.png
320
- - app/assets/images/lit/famfamfam_flags/st.png
321
- - app/assets/images/lit/famfamfam_flags/sv.png
322
- - app/assets/images/lit/famfamfam_flags/sy.png
323
- - app/assets/images/lit/famfamfam_flags/sz.png
324
- - app/assets/images/lit/famfamfam_flags/tc.png
325
- - app/assets/images/lit/famfamfam_flags/td.png
326
- - app/assets/images/lit/famfamfam_flags/tf.png
327
- - app/assets/images/lit/famfamfam_flags/tg.png
328
- - app/assets/images/lit/famfamfam_flags/th.png
329
- - app/assets/images/lit/famfamfam_flags/tj.png
330
- - app/assets/images/lit/famfamfam_flags/tk.png
331
- - app/assets/images/lit/famfamfam_flags/tl.png
332
- - app/assets/images/lit/famfamfam_flags/tm.png
333
- - app/assets/images/lit/famfamfam_flags/tn.png
334
- - app/assets/images/lit/famfamfam_flags/to.png
335
- - app/assets/images/lit/famfamfam_flags/tr.png
336
- - app/assets/images/lit/famfamfam_flags/tt.png
337
- - app/assets/images/lit/famfamfam_flags/tv.png
338
- - app/assets/images/lit/famfamfam_flags/tw.png
339
- - app/assets/images/lit/famfamfam_flags/tz.png
340
- - app/assets/images/lit/famfamfam_flags/ua.png
341
- - app/assets/images/lit/famfamfam_flags/ug.png
342
- - app/assets/images/lit/famfamfam_flags/um.png
343
- - app/assets/images/lit/famfamfam_flags/us.png
344
- - app/assets/images/lit/famfamfam_flags/uy.png
345
- - app/assets/images/lit/famfamfam_flags/uz.png
346
- - app/assets/images/lit/famfamfam_flags/va.png
347
- - app/assets/images/lit/famfamfam_flags/vc.png
348
- - app/assets/images/lit/famfamfam_flags/ve.png
349
- - app/assets/images/lit/famfamfam_flags/vg.png
350
- - app/assets/images/lit/famfamfam_flags/vi.png
351
- - app/assets/images/lit/famfamfam_flags/vn.png
352
- - app/assets/images/lit/famfamfam_flags/vu.png
353
- - app/assets/images/lit/famfamfam_flags/wales.png
354
- - app/assets/images/lit/famfamfam_flags/wf.png
355
- - app/assets/images/lit/famfamfam_flags/ws.png
356
- - app/assets/images/lit/famfamfam_flags/ye.png
357
- - app/assets/images/lit/famfamfam_flags/yt.png
358
- - app/assets/images/lit/famfamfam_flags/za.png
359
- - app/assets/images/lit/famfamfam_flags/zm.png
360
- - app/assets/images/lit/famfamfam_flags/zw.png
361
210
  - app/assets/images/lit/jquery-te.png
362
211
  - app/assets/javascripts/lit/application.js
363
212
  - app/assets/javascripts/lit/backend/bootstrap.js.coffee
213
+ - app/assets/javascripts/lit/backend/bootstrap.min.js
364
214
  - app/assets/javascripts/lit/backend/dashboard.js
365
215
  - app/assets/javascripts/lit/backend/jquery-te-1.4.0.min.js
366
216
  - app/assets/javascripts/lit/backend/localizations.js.coffee
@@ -375,6 +225,7 @@ files:
375
225
  - app/controllers/lit/api/v1/localization_keys_controller.rb
376
226
  - app/controllers/lit/api/v1/localizations_controller.rb
377
227
  - app/controllers/lit/application_controller.rb
228
+ - app/controllers/lit/cloud_translations_controller.rb
378
229
  - app/controllers/lit/concerns/request_info_store.rb
379
230
  - app/controllers/lit/concerns/request_keys_store.rb
380
231
  - app/controllers/lit/dashboard_controller.rb
@@ -410,6 +261,7 @@ files:
410
261
  - app/views/layouts/lit/_messages.html.erb
411
262
  - app/views/layouts/lit/_navigation.html.erb
412
263
  - app/views/layouts/lit/application.html.erb
264
+ - app/views/lit/cloud_translations/show.js.erb
413
265
  - app/views/lit/dashboard/index.html.erb
414
266
  - app/views/lit/incomming_localizations/accept.js.erb
415
267
  - app/views/lit/incomming_localizations/destroy.js.erb
@@ -451,12 +303,17 @@ files:
451
303
  - db/migrate/20181017123839_lit_add_is_deleted_to_localization_keys.rb
452
304
  - db/migrate/20181018075955_lit_add_localization_key_is_deleted_to_localization_keys.rb
453
305
  - db/migrate/20181030111522_lit_add_is_visited_again_to_localization_keys.rb
306
+ - db/migrate/20181129103819_lit_add_localization_key_locale_unique_index_to_localizations.rb
454
307
  - lib/generators/lit/install/templates/initializer.rb
455
308
  - lib/generators/lit/install_generator.rb
456
309
  - lib/lit.rb
457
310
  - lib/lit/adapters/hash_storage.rb
458
311
  - lib/lit/adapters/redis_storage.rb
459
312
  - lib/lit/cache.rb
313
+ - lib/lit/cloud_translation.rb
314
+ - lib/lit/cloud_translation/providers/base.rb
315
+ - lib/lit/cloud_translation/providers/google.rb
316
+ - lib/lit/cloud_translation/providers/yandex.rb
460
317
  - lib/lit/engine.rb
461
318
  - lib/lit/export.rb
462
319
  - lib/lit/i18n_backend.rb
@@ -464,13 +321,14 @@ files:
464
321
  - lib/lit/loader.rb
465
322
  - lib/lit/rails.rb
466
323
  - lib/lit/railtie.rb
324
+ - lib/lit/services/localization_keys_to_hash_service.rb
467
325
  - lib/lit/version.rb
468
326
  - lib/tasks/lit_tasks.rake
469
327
  homepage: https://github.com/prograils/lit
470
328
  licenses:
471
329
  - MIT
472
330
  metadata: {}
473
- post_install_message:
331
+ post_install_message:
474
332
  rdoc_options: []
475
333
  require_paths:
476
334
  - lib
@@ -481,13 +339,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
481
339
  version: '0'
482
340
  required_rubygems_version: !ruby/object:Gem::Requirement
483
341
  requirements:
484
- - - ">"
342
+ - - ">="
485
343
  - !ruby/object:Gem::Version
486
- version: 1.3.1
344
+ version: '0'
487
345
  requirements: []
488
- rubyforge_project:
489
- rubygems_version: 2.6.13
490
- signing_key:
346
+ rubygems_version: 3.1.2
347
+ signing_key:
491
348
  specification_version: 4
492
349
  summary: Database powered i18n backend with web gui
493
350
  test_files: []