spree_i18n 5.0.1 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +7 -0
  3. data/Gemfile +1 -1
  4. data/README.md +19 -44
  5. data/config/locales/ar.yml +5 -6
  6. data/config/locales/be.yml +5 -6
  7. data/config/locales/bg.yml +5 -6
  8. data/config/locales/ca.yml +5 -6
  9. data/config/locales/cs.yml +4 -5
  10. data/config/locales/da.yml +5 -6
  11. data/config/locales/de-CH.yml +50 -51
  12. data/config/locales/de.yml +87 -8
  13. data/config/locales/{gr.yml → el.yml} +400 -247
  14. data/config/locales/en-AU.yml +5 -6
  15. data/config/locales/en-GB.yml +5 -6
  16. data/config/locales/en-IN.yml +5 -6
  17. data/config/locales/en-NZ.yml +5 -6
  18. data/config/locales/es-CL.yml +6 -7
  19. data/config/locales/es-EC.yml +5 -6
  20. data/config/locales/es-MX.yml +5 -6
  21. data/config/locales/es.yml +50 -10
  22. data/config/locales/et.yml +5 -6
  23. data/config/locales/fa.yml +5 -6
  24. data/config/locales/fi.yml +5 -6
  25. data/config/locales/fr.yml +109 -25
  26. data/config/locales/hu.yml +1338 -0
  27. data/config/locales/id.yml +3 -4
  28. data/config/locales/it.yml +5 -6
  29. data/config/locales/ja.yml +5 -6
  30. data/config/locales/km.yml +5 -6
  31. data/config/locales/ko.yml +4 -5
  32. data/config/locales/ku.yml +5 -6
  33. data/config/locales/lt.yml +5 -6
  34. data/config/locales/lv.yml +4 -5
  35. data/config/locales/nb.yml +656 -243
  36. data/config/locales/ne.yml +1337 -0
  37. data/config/locales/nl.yml +4 -5
  38. data/config/locales/pl.yml +9 -10
  39. data/config/locales/pt-BR.yml +5 -6
  40. data/config/locales/pt.yml +4 -5
  41. data/config/locales/ro.yml +4 -5
  42. data/config/locales/ru.yml +5 -6
  43. data/config/locales/sk.yml +5 -6
  44. data/config/locales/sl-SI.yml +5 -6
  45. data/config/locales/sv.yml +273 -9
  46. data/config/locales/th.yml +4 -5
  47. data/config/locales/tr.yml +4 -5
  48. data/config/locales/uk.yml +5 -6
  49. data/config/locales/vi.yml +4 -5
  50. data/config/locales/zh-CN.yml +5 -6
  51. data/config/locales/zh-TW.yml +4 -5
  52. data/lib/spree_i18n/locale.rb +7 -0
  53. data/lib/spree_i18n/locales_and_local_language_names.csv +264 -0
  54. data/lib/spree_i18n/version.rb +2 -2
  55. data/spec/features/translation_spec.rb +8 -0
  56. data/spree_i18n.gemspec +1 -1
  57. metadata +8 -10
@@ -559,10 +559,9 @@ th:
559
559
  date: "วันที่"
560
560
  date_completed: "วันที่เสร็จสิ้น"
561
561
  date_picker:
562
- first_day: 0
563
- format: ! '%d/%m/%Y'
564
- js_format: d/m/Y
565
- js_date_time: d/m/Y - H:i
562
+ # FlatPickr human friendly formatting
563
+ fpr_human_friendly_date_format: M j, Y
564
+ fpr_human_friendly_date_time_format: M j, Y - H:i
566
565
  date_range: "ช่วงวันที่"
567
566
  default: "ค่าเริ่มต้น"
568
567
  default_refund_amount:
@@ -731,7 +730,7 @@ th:
731
730
  lock: "ล๊อก"
732
731
  log_entries:
733
732
  logged_in_as: "เข้าสู่ระบบเป็น"
734
- logged_in_succesfully: "เข้าสู่ระบบสำเร็จ"
733
+ logged_in_successfully: "เข้าสู่ระบบสำเร็จ"
735
734
  logged_out: "คุณได้ออกจากระบบแล้ว"
736
735
  login: "เข้าสู่ระบบ"
737
736
  login_as_existing: "เข้าสู่ระบบจากบัญขีที่มีอยู่แล้ว"
@@ -519,10 +519,9 @@ tr:
519
519
  date: Tarih
520
520
  date_completed: Tarih Tamamlandı
521
521
  date_picker:
522
- first_day: 0
523
- format: ! '%d/%m/%Y'
524
- js_format: d/m/Y
525
- js_date_time: d/m/Y - H:i
522
+ # FlatPickr human friendly formatting
523
+ fpr_human_friendly_date_format: M j, Y
524
+ fpr_human_friendly_date_time_format: M j, Y - H:i
526
525
  date_range: Tarih Aralığı
527
526
  default: Varsayılan
528
527
  default_refund_amount:
@@ -689,7 +688,7 @@ tr:
689
688
  lock: Kilitle
690
689
  log_entries: Log kayıtları
691
690
  logged_in_as: 'Açılan Oturum: '
692
- logged_in_succesfully: Giriş Başarılı
691
+ logged_in_successfully: Giriş Başarılı
693
692
  logged_out: "Çıkış Yaptınız."
694
693
  login: Giriş
695
694
  login_as_existing: Varolan bir müşteri hesabıyla giriş yap
@@ -671,10 +671,9 @@ uk:
671
671
  date: "Дата"
672
672
  date_completed: "Дата завершення"
673
673
  date_picker:
674
- first_day: 0
675
- format: ! '%d/%m/%Y'
676
- js_format: d/m/Y
677
- js_date_time: d/m/Y - H:i
674
+ # FlatPickr human friendly formatting
675
+ fpr_human_friendly_date_format: M j, Y
676
+ fpr_human_friendly_date_time_format: M j, Y - H:i
678
677
  date_range: "Період часу"
679
678
  default: "За замовчуванням"
680
679
  default_refund_amount: "Сума повернення за замовчуванням"
@@ -787,7 +786,7 @@ uk:
787
786
  available_locales: "Доступні переклади"
788
787
  language: "Мова"
789
788
  localization_settings: "Налаштування локалізації"
790
- this_file_language: Ukrainian
789
+ this_file_language: Ukrainian (UK)
791
790
  icon: "Іконка"
792
791
  identifier: "Ідентифікатор"
793
792
  image: "Зображення"
@@ -848,7 +847,7 @@ uk:
848
847
  lock: Lock
849
848
  log_entries: "Записи журналу"
850
849
  logged_in_as: "Користувач"
851
- logged_in_succesfully: "Ви увійшли в систему"
850
+ logged_in_successfully: "Ви увійшли в систему"
852
851
  logged_out: "Ви вийшли з системи."
853
852
  login: "Логін"
854
853
  login_as_existing: "Увійти як існуючий покупець"
@@ -520,10 +520,9 @@ vi:
520
520
  date: Ngày
521
521
  date_completed:
522
522
  date_picker:
523
- first_day: 0
524
- format: ! '%d/%m/%Y'
525
- js_format: d/m/Y
526
- js_date_time: d/m/Y - H:i
523
+ # FlatPickr human friendly formatting
524
+ fpr_human_friendly_date_format: M j, Y
525
+ fpr_human_friendly_date_time_format: M j, Y - H:i
527
526
  date_range: Giới hạn ngày
528
527
  default:
529
528
  default_refund_amount:
@@ -694,7 +693,7 @@ vi:
694
693
  lock: Khoá
695
694
  log_entries:
696
695
  logged_in_as: "Đã đăng nhập với"
697
- logged_in_succesfully: "Đăng nhập thành công"
696
+ logged_in_successfully: "Đăng nhập thành công"
698
697
  logged_out: Bạn đã đăng xuất
699
698
  login: "Đăng nhập"
700
699
  login_as_existing: "Đăng nhập như khách hàng cũ"
@@ -594,10 +594,9 @@ zh-CN:
594
594
  date: "日期"
595
595
  date_completed: "完成日期"
596
596
  date_picker:
597
- first_day: 0
598
- format: ! '%d/%m/%Y'
599
- js_format: d/m/Y
600
- js_date_time: d/m/Y - H:i
597
+ # FlatPickr human friendly formatting
598
+ fpr_human_friendly_date_format: M j, Y
599
+ fpr_human_friendly_date_time_format: M j, Y - H:i
601
600
  date_range: "时间范围"
602
601
  default: "默认"
603
602
  default_refund_amount:
@@ -708,7 +707,7 @@ zh-CN:
708
707
  available_locales: "可用的语言"
709
708
  language: "语言"
710
709
  localization_settings:
711
- this_file_language: "中文(简体)"
710
+ this_file_language: 中文 简体 (zh-CN)
712
711
  translations: "翻译"
713
712
  icon: "图标"
714
713
  identifier:
@@ -768,7 +767,7 @@ zh-CN:
768
767
  lock: "锁住/冻结"
769
768
  log_entries:
770
769
  logged_in_as: "已登录为"
771
- logged_in_succesfully: "登录成功"
770
+ logged_in_successfully: "登录成功"
772
771
  logged_out: "您已经登出系统"
773
772
  login: "登录"
774
773
  login_as_existing: "作为一个已有客户登录"
@@ -807,10 +807,9 @@ zh-TW:
807
807
  date: 日期
808
808
  date_completed: 完成日期
809
809
  date_picker:
810
- first_day: 0
811
- format: ! '%d/%m/%Y'
812
- js_format: d/m/Y
813
- js_date_time: d/m/Y - H:i
810
+ # FlatPickr human friendly formatting
811
+ fpr_human_friendly_date_format: M j, Y
812
+ fpr_human_friendly_date_time_format: M j, Y - H:i
814
813
  date_range: 日期區間
815
814
  default: 預設
816
815
  default_country_cannot_be_deleted: 無法刪除預設國家
@@ -1035,7 +1034,7 @@ zh-TW:
1035
1034
  log_in_to_continue: 登入後繼續
1036
1035
  logs: 紀錄
1037
1036
  logged_in_as: 已其他身份登入
1038
- logged_in_succesfully: 登入成功
1037
+ logged_in_successfully: 登入成功
1039
1038
  logged_out: 登出成功
1040
1039
  login: 登入
1041
1040
  login_as_existing: 以顧客的身份登入
@@ -1,3 +1,5 @@
1
+ require 'csv'
2
+
1
3
  module SpreeI18n
2
4
  class Locale
3
5
  class << self
@@ -8,6 +10,11 @@ module SpreeI18n
8
10
  def dir
9
11
  File.join(File.dirname(__FILE__), '/../../config/locales')
10
12
  end
13
+
14
+ def local_language_name(locale)
15
+ @@language_names ||= CSV.read(File.join(__dir__, 'locales_and_local_language_names.csv')).to_h { |row| [row[0], row[2]] }
16
+ @@language_names[locale.to_s.downcase] || @@language_names[locale.to_s.downcase.split('-').first]
17
+ end
11
18
  end
12
19
  end
13
20
  end
@@ -0,0 +1,264 @@
1
+ aa,Afar,Afar
2
+ ab,Abkhazian,Аҧсуа
3
+ af,Afrikaans,Afrikaans
4
+ ak,Akan,Akana
5
+ als,Alemannic,Alemannisch
6
+ am,Amharic,አማርኛ
7
+ an,Aragonese,Aragonés
8
+ ang,Angal,Angal Heneng
9
+ ang,Anglo-Saxon / Old English,Englisc
10
+ ar,Arabic,العربية
11
+ arc,Aramaic,ܣܘܪܬ
12
+ as,Assamese,অসমীয়া
13
+ ast,Asturian,Asturianu
14
+ av,Avar,Авар
15
+ awa,Awadhi,Awadhi
16
+ ay,Aymara,Aymar
17
+ az,Azerbaijani,Azərbaycanca / آذربايجان
18
+ ba,Bashkir,Башҡорт
19
+ bar,Bavarian,Boarisch
20
+ bat-smg,Samogitian,Žemaitėška
21
+ bcl,Bikol,Bikol Central
22
+ be,Belarusian,Беларуская
23
+ be-x-old,Belarusian (Taraškievica),Беларуская (тарашкевіца)
24
+ bg,Bulgarian,Български
25
+ bh,Bihari,भोजपुरी
26
+ bi,Bislama,Bislama
27
+ bm,Bambara,Bamanankan
28
+ bn,Bengali,বাংলা
29
+ bo,Tibetan,བོད་ཡིག / Bod skad
30
+ bpy,Bishnupriya Manipuri,ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী
31
+ br,Breton,Brezhoneg
32
+ brx,Boro,बड़
33
+ bs,Bosnian,Bosanski
34
+ bug,Buginese,ᨅᨔ ᨕᨘᨁᨗ / Basa Ugi
35
+ bxr,Buriat (Russia),Буряад хэлэн
36
+ ca,Catalan,Català
37
+ cdo,Min Dong Chinese,Mìng-dĕ̤ng-ngṳ̄ / 閩東語
38
+ ce,Chechen,Нохчийн
39
+ ceb,Cebuano,Sinugboanong Binisaya
40
+ ch,Chamorro,Chamoru
41
+ cho,Choctaw,Choctaw
42
+ chr,Cherokee,ᏣᎳᎩ
43
+ chy,Cheyenne,Tsetsêhestâhese
44
+ ckb,Kurdish (Sorani),کوردی
45
+ co,Corsican,Corsu
46
+ cr,Cree,Nehiyaw
47
+ cs,Czech,Česky
48
+ csb,Kashubian,Kaszëbsczi
49
+ cu,Old Church Slavonic / Old Bulgarian,словѣньскъ / slověnĭskŭ
50
+ cv,Chuvash,Чăваш
51
+ cy,Welsh,Cymraeg
52
+ da,Danish,Dansk
53
+ de,German,Deutsch
54
+ diq,Dimli,Zazaki
55
+ dsb,Lower Sorbian,Dolnoserbski
56
+ dv,Divehi,ދިވެހިބަސް
57
+ dz,Dzongkha,ཇོང་ཁ
58
+ ee,Ewe,Ɛʋɛ
59
+ el,Greek,Ελληνικά
60
+ en,English,English
61
+ eo,Esperanto,Esperanto
62
+ es,Spanish,Español
63
+ et,Estonian,Eesti
64
+ eu,Basque,Euskara
65
+ ext,Extremaduran,Estremeñu
66
+ fa,Persian,فارسی
67
+ ff,Peul,Fulfulde
68
+ fi,Finnish,Suomi
69
+ fiu-vro,Võro,Võro
70
+ fj,Fijian,Na Vosa Vakaviti
71
+ fo,Faroese,Føroyskt
72
+ fr,French,Français
73
+ frp,Arpitan / Franco-Provençal,Arpitan / francoprovençal
74
+ fur,Friulian,Furlan
75
+ fy,West Frisian,Frysk
76
+ ga,Irish,Gaeilge
77
+ gan,Gan Chinese,贛語
78
+ gbm,Garhwali,गढ़वळी
79
+ gd,Scottish Gaelic,Gàidhlig
80
+ gil,Gilbertese,Taetae ni kiribati
81
+ gl,Galician,Galego
82
+ gn,Guarani,Avañe'ẽ
83
+ got,Gothic,gutisk
84
+ gu,Gujarati,ગુજરાતી
85
+ gv,Manx,Gaelg
86
+ ha,Hausa,هَوُسَ
87
+ hak,Hakka Chinese,客家語/Hak-kâ-ngî
88
+ haw,Hawaiian,Hawai`i
89
+ he,Hebrew,עברית
90
+ hi,Hindi,हिन्दी
91
+ ho,Hiri Motu,Hiri Motu
92
+ hr,Croatian,Hrvatski
93
+ ht,Haitian,Krèyol ayisyen
94
+ hu,Hungarian,Magyar
95
+ hy,Armenian,Հայերեն
96
+ hz,Herero,Otsiherero
97
+ ia,Interlingua,Interlingua
98
+ id,Indonesian,Bahasa Indonesia
99
+ ie,Interlingue,Interlingue
100
+ ig,Igbo,Igbo
101
+ ii,Sichuan Yi,ꆇꉙ / 四川彝语
102
+ ik,Inupiak,Iñupiak
103
+ ilo,Ilokano,Ilokano
104
+ inh,Ingush,ГӀалгӀай
105
+ io,Ido,Ido
106
+ is,Icelandic,Íslenska
107
+ it,Italian,Italiano
108
+ iu,Inuktitut,ᐃᓄᒃᑎᑐᑦ
109
+ ja,Japanese,日本語
110
+ jbo,Lojban,Lojban
111
+ jv,Javanese,Basa Jawa
112
+ ka,Georgian,ქართული
113
+ kg,Kongo,KiKongo
114
+ ki,Kikuyu,Gĩkũyũ
115
+ kj,Kuanyama,Kuanyama
116
+ kk,Kazakh,Қазақша
117
+ kl,Greenlandic,Kalaallisut
118
+ km,Cambodian,ភាសាខ្មែរ
119
+ kn,Kannada,ಕನ್ನಡ
120
+ khw,Khowar,کھوار
121
+ ko,Korean,한국어
122
+ kr,Kanuri,Kanuri
123
+ ks,Kashmiri,कॉशुर / کٲشُر
124
+ ksh,Ripuarian,Ripoarisch
125
+ ku,Kurdish (Kurmanji),Kurdî
126
+ kv,Komi,Коми
127
+ kw,Cornish,Kernewek
128
+ ky,Kirghiz,Kırgızca / Кыргызча
129
+ la,Latin,Latina
130
+ lad,Ladino / Judeo-Spanish,Dzhudezmo / Djudeo-Espanyol
131
+ lan,Lango,Leb Lango / Luo
132
+ lb,Luxembourgish,Lëtzebuergesch
133
+ lg,Ganda,Luganda
134
+ li,Limburgian,Limburgs
135
+ lij,Ligurian,Líguru
136
+ lmo,Lombard,Lumbaart
137
+ ln,Lingala,Lingála
138
+ lo,Laotian,ລາວ / Pha xa lao
139
+ lzz,Laz,Lazuri / ლაზური
140
+ lt,Lithuanian,Lietuvių
141
+ lv,Latvian,Latviešu
142
+ map-bms,Banyumasan,Basa Banyumasan
143
+ mg,Malagasy,Malagasy
144
+ man,Mandarin,官話/官话
145
+ mh,Marshallese,Kajin Majel / Ebon
146
+ mi,Māori,Māori
147
+ min,Minangkabau,Minangkabau
148
+ mk,Macedonian,Македонски
149
+ ml,Malayalam,മലയാളം
150
+ mn,Mongolian,Монгол
151
+ mo,Moldovan,Moldovenească
152
+ mr,Marathi,मराठी
153
+ mrh,Mara,Mara
154
+ ms,Malay,Bahasa Melayu
155
+ mt,Maltese,bil-Malti
156
+ mus,Creek / Muskogee,Mvskoke
157
+ mwl,Mirandese,Mirandés
158
+ my,Burmese,Myanmasa
159
+ na,Nauruan,Dorerin Naoero
160
+ nah,Nahuatl,Nahuatl
161
+ nap,Neapolitan,Nnapulitano
162
+ nd,North Ndebele,Sindebele
163
+ nds,Low German / Low Saxon,Plattdüütsch
164
+ nds-nl,Dutch Low Saxon,Nedersaksisch
165
+ ne,Nepali,नेपाली
166
+ new,Newar,नेपालभाषा / Newah Bhaye
167
+ ng,Ndonga,Oshiwambo
168
+ nl,Dutch,Nederlands
169
+ nn,Norwegian Nynorsk,Norsk (nynorsk)
170
+ no,Norwegian,Norsk (bokmål / riksmål)
171
+ nr,South Ndebele,isiNdebele
172
+ nso,Northern Sotho,Sesotho sa Leboa / Sepedi
173
+ nrm,Norman,Nouormand / Normaund
174
+ nv,Navajo,Diné bizaad
175
+ ny,Chichewa,Chi-Chewa
176
+ oc,Occitan,Occitan
177
+ oj,Ojibwa,ᐊᓂᔑᓈᐯᒧᐎᓐ / Anishinaabemowin
178
+ om,Oromo,Oromoo
179
+ or,Oriya,ଓଡ଼ିଆ
180
+ os,Ossetian / Ossetic,Иронау
181
+ pa,Panjabi / Punjabi,ਪੰਜਾਬੀ / پنجابی
182
+ pag,Pangasinan,Pangasinan
183
+ pam,Kapampangan,Kapampangan
184
+ pap,Papiamentu,Papiamentu
185
+ pdc,Pennsylvania German,Deitsch
186
+ pi,Pali,Pāli / पाऴि
187
+ pih,Norfolk,Norfuk
188
+ pl,Polish,Polski
189
+ pms,Piedmontese,Piemontèis
190
+ ps,Pashto,پښتو
191
+ pt,Portuguese,Português
192
+ qu,Quechua,Runa Simi
193
+ rm,Raeto Romance,Rumantsch
194
+ rmy,Romani,Romani / रोमानी
195
+ rn,Kirundi,Kirundi
196
+ ro,Romanian,Română
197
+ roa-rup,Aromanian,Armâneashti
198
+ ru,Russian,Русский
199
+ rw,Rwandi,Kinyarwandi
200
+ sa,Sanskrit,संस्कृतम्
201
+ sc,Sardinian,Sardu
202
+ scn,Sicilian,Sicilianu
203
+ sco,Scots,Scots
204
+ sd,Sindhi,सिंधी / سنڌي‎
205
+ se,Northern Sami,Davvisámegiella
206
+ sg,Sango,Sängö
207
+ sh,Serbo-Croatian,Srpskohrvatski / Српскохрватски
208
+ si,Sinhalese,සිංහල
209
+ simple,Simple English,Simple English
210
+ sk,Slovak,Slovenčina
211
+ sl,Slovenian,Slovenščina
212
+ sm,Samoan,Gagana Samoa
213
+ sn,Shona,chiShona
214
+ so,Somalia,Soomaaliga
215
+ sq,Albanian,Shqip
216
+ sr,Serbian,Српски
217
+ ss,Swati,SiSwati
218
+ st,Southern Sotho,Sesotho
219
+ su,Sundanese,Basa Sunda
220
+ sv,Swedish,Svenska
221
+ sw,Swahili,Kiswahili
222
+ ta,Tamil,தமிழ்
223
+ te,Telugu,తెలుగు
224
+ tet,Tetum,Tetun
225
+ tg,Tajik,Тоҷикӣ
226
+ th,Thai,ไทย / Phasa Thai
227
+ ti,Tigrinya,ትግርኛ
228
+ tk,Turkmen,Туркмен / تركمن
229
+ tl,Tagalog,Tagalog / ᜆᜄᜎᜓᜄ᜔
230
+ tlh,Klingon,tlhIngan-Hol
231
+ tn,Tswana,Setswana
232
+ to,Tonga,Lea Faka-Tonga
233
+ tpi,Tok Pisin,Tok Pisin
234
+ tr,Turkish,Türkçe
235
+ ts,Tsonga,Xitsonga
236
+ tt,Tatar,Tatarça
237
+ tum,Tumbuka,chiTumbuka
238
+ tw,Twi,Twi
239
+ ty,Tahitian,Reo Mā`ohi
240
+ udm,Udmurt,Удмурт кыл
241
+ ug,Uyghur,Uyƣurqə / ئۇيغۇرچە
242
+ uk,Ukrainian,Українська
243
+ ur,Urdu,اردو
244
+ uz,Uzbek,Ўзбек
245
+ uz_AF,Uzbeki Afghanistan,اوزبیکی
246
+ ve,Venda,Tshivenḓa
247
+ vi,Vietnamese,Việtnam
248
+ vec,Venetian,Vèneto
249
+ vls,West Flemish,West-Vlaoms
250
+ vo,Volapük,Volapük
251
+ wa,Walloon,Walon
252
+ war,Waray / Samar-Leyte Visayan,Winaray / Binisaya Lineyte-Samarnon
253
+ wo,Wolof,Wollof
254
+ xal,Kalmyk,Хальмг
255
+ xh,Xhosa,isiXhosa
256
+ xmf,Megrelian,მარგალური
257
+ yi,Yiddish,ייִדיש
258
+ yo,Yoruba,Yorùbá
259
+ za,Zhuang,Cuengh / Tôô / 壮语
260
+ zh,Chinese,中文
261
+ zh-classical,Classical Chinese,文言
262
+ zh-min-nan,Minnan,Bân-lâm-gú
263
+ zh-yue,Cantonese,粵語 / 粤语
264
+ zu,Zulu,isiZulu
@@ -9,8 +9,8 @@ module SpreeI18n
9
9
 
10
10
  module Version
11
11
  MAJOR = 5
12
- MINOR = 0
13
- TINY = 1
12
+ MINOR = 1
13
+ TINY = 0
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
16
16
  end
@@ -35,4 +35,12 @@ RSpec.describe 'Translation' do
35
35
  expect(translation).to eq 'Postnummer'
36
36
  end
37
37
  end
38
+
39
+ # Hungarian is chosen
40
+ context 'when current locale is Hungarian' do
41
+ it 'translation is available' do
42
+ I18n.locale = :'hu'
43
+ expect(translation).to eq 'Irányítószám'
44
+ end
45
+ end
38
46
  end
data/spree_i18n.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_runtime_dependency 'i18n_data'
25
25
  s.add_runtime_dependency 'rails-i18n'
26
26
  s.add_runtime_dependency 'kaminari-i18n'
27
- s.add_runtime_dependency 'spree_core', '>= 4.2.0.rc3', '< 5.0'
27
+ s.add_runtime_dependency 'spree_core', '>= 4.2.0.rc3'
28
28
  s.add_runtime_dependency 'spree_extension'
29
29
 
30
30
  s.add_development_dependency 'spree_dev_tools'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-04 00:00:00.000000000 Z
11
+ date: 2022-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n_data
@@ -59,9 +59,6 @@ dependencies:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 4.2.0.rc3
62
- - - "<"
63
- - !ruby/object:Gem::Version
64
- version: '5.0'
65
62
  type: :runtime
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,9 +66,6 @@ dependencies:
69
66
  - - ">="
70
67
  - !ruby/object:Gem::Version
71
68
  version: 4.2.0.rc3
72
- - - "<"
73
- - !ruby/object:Gem::Version
74
- version: '5.0'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: spree_extension
77
71
  requirement: !ruby/object:Gem::Requirement
@@ -106,6 +100,7 @@ executables: []
106
100
  extensions: []
107
101
  extra_rdoc_files: []
108
102
  files:
103
+ - ".github/dependabot.yml"
109
104
  - ".gitignore"
110
105
  - ".rspec"
111
106
  - ".rubocop.yml"
@@ -126,6 +121,7 @@ files:
126
121
  - config/locales/da.yml
127
122
  - config/locales/de-CH.yml
128
123
  - config/locales/de.yml
124
+ - config/locales/el.yml
129
125
  - config/locales/en-AU.yml
130
126
  - config/locales/en-GB.yml
131
127
  - config/locales/en-IN.yml
@@ -138,7 +134,7 @@ files:
138
134
  - config/locales/fa.yml
139
135
  - config/locales/fi.yml
140
136
  - config/locales/fr.yml
141
- - config/locales/gr.yml
137
+ - config/locales/hu.yml
142
138
  - config/locales/id.yml
143
139
  - config/locales/it.yml
144
140
  - config/locales/ja.yml
@@ -148,6 +144,7 @@ files:
148
144
  - config/locales/lt.yml
149
145
  - config/locales/lv.yml
150
146
  - config/locales/nb.yml
147
+ - config/locales/ne.yml
151
148
  - config/locales/nl.yml
152
149
  - config/locales/pl.yml
153
150
  - config/locales/pt-BR.yml
@@ -170,6 +167,7 @@ files:
170
167
  - lib/spree_i18n.rb
171
168
  - lib/spree_i18n/engine.rb
172
169
  - lib/spree_i18n/locale.rb
170
+ - lib/spree_i18n/locales_and_local_language_names.csv
173
171
  - lib/spree_i18n/version.rb
174
172
  - lib/tasks/spree_i18n/upgrade.rake
175
173
  - spec/features/russian_errors_translation_spec.rb
@@ -197,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
195
  version: '0'
198
196
  requirements:
199
197
  - none
200
- rubygems_version: 3.1.4
198
+ rubygems_version: 3.0.9
201
199
  signing_key:
202
200
  specification_version: 4
203
201
  summary: Provides locale information for use in Spree.