@esgettext/runtime 1.0.0 → 1.1.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 (314) hide show
  1. package/README.md +6 -6
  2. package/{lib-esm → dist}/core/browser-environment.d.ts +1 -0
  3. package/dist/core/browser-environment.d.ts.map +1 -0
  4. package/{lib-esm → dist}/core/catalog-cache.d.ts +1 -0
  5. package/dist/core/catalog-cache.d.ts.map +1 -0
  6. package/dist/core/catalog-cache.spec.d.ts +2 -0
  7. package/dist/core/catalog-cache.spec.d.ts.map +1 -0
  8. package/dist/core/catalog-format.spec.d.ts +2 -0
  9. package/dist/core/catalog-format.spec.d.ts.map +1 -0
  10. package/{lib → dist}/core/catalog.d.ts +1 -0
  11. package/dist/core/catalog.d.ts.map +1 -0
  12. package/{lib → dist}/core/data-viewlet.d.ts +1 -0
  13. package/dist/core/data-viewlet.d.ts.map +1 -0
  14. package/dist/core/data-viewlet.spec.d.ts +2 -0
  15. package/dist/core/data-viewlet.spec.d.ts.map +1 -0
  16. package/{lib-esm → dist}/core/explode-locale.d.ts +1 -0
  17. package/dist/core/explode-locale.d.ts.map +1 -0
  18. package/dist/core/explode-locale.spec.d.ts +2 -0
  19. package/dist/core/explode-locale.spec.d.ts.map +1 -0
  20. package/{lib-esm → dist}/core/germanic-plural.d.ts +1 -0
  21. package/dist/core/germanic-plural.d.ts.map +1 -0
  22. package/{lib → dist}/core/gettext-impl.d.ts +1 -0
  23. package/dist/core/gettext-impl.d.ts.map +1 -0
  24. package/dist/core/gettext.spec.d.ts +2 -0
  25. package/dist/core/gettext.spec.d.ts.map +1 -0
  26. package/{lib-esm → dist}/core/index.d.ts +1 -0
  27. package/dist/core/index.d.ts.map +1 -0
  28. package/{lib → dist}/core/locale-container.d.ts +1 -0
  29. package/dist/core/locale-container.d.ts.map +1 -0
  30. package/dist/core/platform.d.ts +3 -0
  31. package/dist/core/platform.d.ts.map +1 -0
  32. package/{lib → dist}/core/resolve-impl.d.ts +1 -0
  33. package/dist/core/resolve-impl.d.ts.map +1 -0
  34. package/dist/core/resolve.spec.d.ts +2 -0
  35. package/dist/core/resolve.spec.d.ts.map +1 -0
  36. package/{lib-esm → dist}/core/select-locale.d.ts +1 -0
  37. package/dist/core/select-locale.d.ts.map +1 -0
  38. package/dist/core/select-locale.spec.d.ts +2 -0
  39. package/dist/core/select-locale.spec.d.ts.map +1 -0
  40. package/dist/core/set-locale-browser.spec.d.ts +2 -0
  41. package/dist/core/set-locale-browser.spec.d.ts.map +1 -0
  42. package/dist/core/set-locale-node.spec.d.ts +2 -0
  43. package/dist/core/set-locale-node.spec.d.ts.map +1 -0
  44. package/{lib-esm → dist}/core/split-locale.d.ts +1 -0
  45. package/dist/core/split-locale.d.ts.map +1 -0
  46. package/dist/core/split-locale.spec.d.ts +2 -0
  47. package/dist/core/split-locale.spec.d.ts.map +1 -0
  48. package/{lib → dist}/core/textdomain.d.ts +18 -17
  49. package/dist/core/textdomain.d.ts.map +1 -0
  50. package/dist/core/textdomain.spec.d.ts +2 -0
  51. package/dist/core/textdomain.spec.d.ts.map +1 -0
  52. package/{lib-esm → dist}/core/user-locales.d.ts +1 -0
  53. package/dist/core/user-locales.d.ts.map +1 -0
  54. package/dist/esgettext.cjs.js +868 -0
  55. package/dist/esgettext.cjs.js.map +1 -0
  56. package/dist/esgettext.esm.js +863 -0
  57. package/dist/esgettext.esm.js.map +1 -0
  58. package/dist/esgettext.min.js +2 -0
  59. package/dist/esgettext.min.js.map +1 -0
  60. package/dist/index-browser.d.ts +3 -0
  61. package/dist/index-browser.d.ts.map +1 -0
  62. package/dist/index.d.ts +3 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/parser/index.d.ts +4 -0
  65. package/dist/parser/index.d.ts.map +1 -0
  66. package/{lib-esm → dist}/parser/parse-json-catalog.d.ts +1 -0
  67. package/dist/parser/parse-json-catalog.d.ts.map +1 -0
  68. package/{lib-esm → dist}/parser/parse-mo-catalog.d.ts +1 -0
  69. package/dist/parser/parse-mo-catalog.d.ts.map +1 -0
  70. package/dist/parser/parse-mo-catalog.spec.d.ts +2 -0
  71. package/dist/parser/parse-mo-catalog.spec.d.ts.map +1 -0
  72. package/dist/parser/parse-mo-json-catalog.d.ts +4 -0
  73. package/dist/parser/parse-mo-json-catalog.d.ts.map +1 -0
  74. package/dist/parser/parse-mo-json-catalog.spec.d.ts +2 -0
  75. package/dist/parser/parse-mo-json-catalog.spec.d.ts.map +1 -0
  76. package/{lib/transport/fs.d.ts → dist/transport/fs-browser.d.ts} +2 -1
  77. package/dist/transport/fs-browser.d.ts.map +1 -0
  78. package/{lib-esm → dist}/transport/fs.d.ts +1 -0
  79. package/dist/transport/fs.d.ts.map +1 -0
  80. package/{lib-esm → dist}/transport/http.d.ts +1 -0
  81. package/dist/transport/http.d.ts.map +1 -0
  82. package/dist/transport/http.spec.d.ts +2 -0
  83. package/dist/transport/http.spec.d.ts.map +1 -0
  84. package/{lib → dist}/transport/index.d.ts +2 -1
  85. package/dist/transport/index.d.ts.map +1 -0
  86. package/{lib → dist}/transport/transport.interface.d.ts +1 -0
  87. package/dist/transport/transport.interface.d.ts.map +1 -0
  88. package/package.json +30 -14
  89. package/_bundles/runtime.js +0 -1356
  90. package/_bundles/runtime.js.map +0 -1
  91. package/_bundles/runtime.min.js +0 -2
  92. package/_bundles/runtime.min.js.map +0 -1
  93. package/api-docs/assets/highlight.css +0 -127
  94. package/api-docs/assets/main.js +0 -59
  95. package/api-docs/assets/navigation.js +0 -1
  96. package/api-docs/assets/search.js +0 -1
  97. package/api-docs/assets/style.css +0 -1414
  98. package/api-docs/classes/Textdomain.html +0 -364
  99. package/api-docs/index.html +0 -222
  100. package/api-docs/interfaces/Catalog.html +0 -20
  101. package/api-docs/interfaces/CatalogEntries.html +0 -11
  102. package/api-docs/interfaces/LocaleContainer.html +0 -19
  103. package/api-docs/interfaces/Placeholders.html +0 -9
  104. package/api-docs/modules.html +0 -6
  105. package/lib/core/browser-environment.d.ts +0 -1
  106. package/lib/core/browser-environment.js +0 -12
  107. package/lib/core/browser-environment.js.map +0 -1
  108. package/lib/core/catalog-cache.d.ts +0 -10
  109. package/lib/core/catalog-cache.js +0 -39
  110. package/lib/core/catalog-cache.js.map +0 -1
  111. package/lib/core/catalog-cache.spec.d.ts +0 -1
  112. package/lib/core/catalog-cache.spec.js +0 -24
  113. package/lib/core/catalog-cache.spec.js.map +0 -1
  114. package/lib/core/catalog-format.spec.d.ts +0 -1
  115. package/lib/core/catalog-format.spec.js +0 -35
  116. package/lib/core/catalog-format.spec.js.map +0 -1
  117. package/lib/core/catalog.js +0 -3
  118. package/lib/core/catalog.js.map +0 -1
  119. package/lib/core/data-viewlet.js +0 -57
  120. package/lib/core/data-viewlet.js.map +0 -1
  121. package/lib/core/data-viewlet.spec.d.ts +0 -1
  122. package/lib/core/data-viewlet.spec.js +0 -62
  123. package/lib/core/data-viewlet.spec.js.map +0 -1
  124. package/lib/core/explode-locale.d.ts +0 -3
  125. package/lib/core/explode-locale.js +0 -37
  126. package/lib/core/explode-locale.js.map +0 -1
  127. package/lib/core/explode-locale.spec.d.ts +0 -1
  128. package/lib/core/explode-locale.spec.js +0 -41
  129. package/lib/core/explode-locale.spec.js.map +0 -1
  130. package/lib/core/germanic-plural.d.ts +0 -1
  131. package/lib/core/germanic-plural.js +0 -8
  132. package/lib/core/germanic-plural.js.map +0 -1
  133. package/lib/core/gettext-impl.js +0 -38
  134. package/lib/core/gettext-impl.js.map +0 -1
  135. package/lib/core/gettext.spec.d.ts +0 -1
  136. package/lib/core/gettext.spec.js +0 -391
  137. package/lib/core/gettext.spec.js.map +0 -1
  138. package/lib/core/index.d.ts +0 -4
  139. package/lib/core/index.js +0 -21
  140. package/lib/core/index.js.map +0 -1
  141. package/lib/core/locale-container.js +0 -3
  142. package/lib/core/locale-container.js.map +0 -1
  143. package/lib/core/path-separator.d.ts +0 -1
  144. package/lib/core/path-separator.js +0 -12
  145. package/lib/core/path-separator.js.map +0 -1
  146. package/lib/core/resolve-impl.js +0 -253
  147. package/lib/core/resolve-impl.js.map +0 -1
  148. package/lib/core/resolve.spec.d.ts +0 -1
  149. package/lib/core/resolve.spec.js +0 -345
  150. package/lib/core/resolve.spec.js.map +0 -1
  151. package/lib/core/select-locale.d.ts +0 -1
  152. package/lib/core/select-locale.js +0 -43
  153. package/lib/core/select-locale.js.map +0 -1
  154. package/lib/core/select-locale.spec.d.ts +0 -1
  155. package/lib/core/select-locale.spec.js +0 -27
  156. package/lib/core/select-locale.spec.js.map +0 -1
  157. package/lib/core/set-locale-browser.spec.d.ts +0 -1
  158. package/lib/core/set-locale-browser.spec.js +0 -17
  159. package/lib/core/set-locale-browser.spec.js.map +0 -1
  160. package/lib/core/set-locale-node.spec.d.ts +0 -1
  161. package/lib/core/set-locale-node.spec.js +0 -26
  162. package/lib/core/set-locale-node.spec.js.map +0 -1
  163. package/lib/core/split-locale.d.ts +0 -7
  164. package/lib/core/split-locale.js +0 -39
  165. package/lib/core/split-locale.js.map +0 -1
  166. package/lib/core/split-locale.spec.d.ts +0 -1
  167. package/lib/core/split-locale.spec.js +0 -59
  168. package/lib/core/split-locale.spec.js.map +0 -1
  169. package/lib/core/textdomain.js +0 -277
  170. package/lib/core/textdomain.js.map +0 -1
  171. package/lib/core/textdomain.spec.d.ts +0 -1
  172. package/lib/core/textdomain.spec.js +0 -33
  173. package/lib/core/textdomain.spec.js.map +0 -1
  174. package/lib/core/user-locales.d.ts +0 -1
  175. package/lib/core/user-locales.js +0 -12
  176. package/lib/core/user-locales.js.map +0 -1
  177. package/lib/index-browser.d.ts +0 -2
  178. package/lib/index-browser.js +0 -44
  179. package/lib/index-browser.js.map +0 -1
  180. package/lib/index.d.ts +0 -2
  181. package/lib/index.js +0 -37
  182. package/lib/index.js.map +0 -1
  183. package/lib/parser/index.d.ts +0 -2
  184. package/lib/parser/index.js +0 -19
  185. package/lib/parser/index.js.map +0 -1
  186. package/lib/parser/parse-json-catalog.d.ts +0 -3
  187. package/lib/parser/parse-json-catalog.js +0 -37
  188. package/lib/parser/parse-json-catalog.js.map +0 -1
  189. package/lib/parser/parse-json-catalog.spec.d.ts +0 -1
  190. package/lib/parser/parse-json-catalog.spec.js +0 -41
  191. package/lib/parser/parse-json-catalog.spec.js.map +0 -1
  192. package/lib/parser/parse-mo-catalog.d.ts +0 -2
  193. package/lib/parser/parse-mo-catalog.js +0 -86
  194. package/lib/parser/parse-mo-catalog.js.map +0 -1
  195. package/lib/parser/parse-mo-catalog.spec.d.ts +0 -1
  196. package/lib/parser/parse-mo-catalog.spec.js +0 -115
  197. package/lib/parser/parse-mo-catalog.spec.js.map +0 -1
  198. package/lib/transport/fs.js +0 -18
  199. package/lib/transport/fs.js.map +0 -1
  200. package/lib/transport/http.d.ts +0 -4
  201. package/lib/transport/http.js +0 -27
  202. package/lib/transport/http.js.map +0 -1
  203. package/lib/transport/http.spec.d.ts +0 -1
  204. package/lib/transport/http.spec.js +0 -119
  205. package/lib/transport/http.spec.js.map +0 -1
  206. package/lib/transport/index.js +0 -20
  207. package/lib/transport/index.js.map +0 -1
  208. package/lib/transport/transport.interface.js +0 -3
  209. package/lib/transport/transport.interface.js.map +0 -1
  210. package/lib-esm/core/browser-environment.js +0 -8
  211. package/lib-esm/core/browser-environment.js.map +0 -1
  212. package/lib-esm/core/catalog-cache.js +0 -36
  213. package/lib-esm/core/catalog-cache.js.map +0 -1
  214. package/lib-esm/core/catalog-cache.spec.d.ts +0 -1
  215. package/lib-esm/core/catalog-cache.spec.js +0 -22
  216. package/lib-esm/core/catalog-cache.spec.js.map +0 -1
  217. package/lib-esm/core/catalog-format.spec.d.ts +0 -1
  218. package/lib-esm/core/catalog-format.spec.js +0 -33
  219. package/lib-esm/core/catalog-format.spec.js.map +0 -1
  220. package/lib-esm/core/catalog.d.ts +0 -9
  221. package/lib-esm/core/catalog.js +0 -2
  222. package/lib-esm/core/catalog.js.map +0 -1
  223. package/lib-esm/core/data-viewlet.d.ts +0 -11
  224. package/lib-esm/core/data-viewlet.js +0 -54
  225. package/lib-esm/core/data-viewlet.js.map +0 -1
  226. package/lib-esm/core/data-viewlet.spec.d.ts +0 -1
  227. package/lib-esm/core/data-viewlet.spec.js +0 -60
  228. package/lib-esm/core/data-viewlet.spec.js.map +0 -1
  229. package/lib-esm/core/explode-locale.js +0 -33
  230. package/lib-esm/core/explode-locale.js.map +0 -1
  231. package/lib-esm/core/explode-locale.spec.d.ts +0 -1
  232. package/lib-esm/core/explode-locale.spec.js +0 -39
  233. package/lib-esm/core/explode-locale.spec.js.map +0 -1
  234. package/lib-esm/core/germanic-plural.js +0 -4
  235. package/lib-esm/core/germanic-plural.js.map +0 -1
  236. package/lib-esm/core/gettext-impl.d.ts +0 -10
  237. package/lib-esm/core/gettext-impl.js +0 -34
  238. package/lib-esm/core/gettext-impl.js.map +0 -1
  239. package/lib-esm/core/gettext.spec.d.ts +0 -1
  240. package/lib-esm/core/gettext.spec.js +0 -389
  241. package/lib-esm/core/gettext.spec.js.map +0 -1
  242. package/lib-esm/core/index.js +0 -5
  243. package/lib-esm/core/index.js.map +0 -1
  244. package/lib-esm/core/locale-container.d.ts +0 -8
  245. package/lib-esm/core/locale-container.js +0 -2
  246. package/lib-esm/core/locale-container.js.map +0 -1
  247. package/lib-esm/core/path-separator.d.ts +0 -1
  248. package/lib-esm/core/path-separator.js +0 -8
  249. package/lib-esm/core/path-separator.js.map +0 -1
  250. package/lib-esm/core/resolve-impl.d.ts +0 -3
  251. package/lib-esm/core/resolve-impl.js +0 -249
  252. package/lib-esm/core/resolve-impl.js.map +0 -1
  253. package/lib-esm/core/resolve.spec.d.ts +0 -1
  254. package/lib-esm/core/resolve.spec.js +0 -340
  255. package/lib-esm/core/resolve.spec.js.map +0 -1
  256. package/lib-esm/core/select-locale.js +0 -39
  257. package/lib-esm/core/select-locale.js.map +0 -1
  258. package/lib-esm/core/select-locale.spec.d.ts +0 -1
  259. package/lib-esm/core/select-locale.spec.js +0 -25
  260. package/lib-esm/core/select-locale.spec.js.map +0 -1
  261. package/lib-esm/core/set-locale-browser.spec.d.ts +0 -1
  262. package/lib-esm/core/set-locale-browser.spec.js +0 -15
  263. package/lib-esm/core/set-locale-browser.spec.js.map +0 -1
  264. package/lib-esm/core/set-locale-node.spec.d.ts +0 -1
  265. package/lib-esm/core/set-locale-node.spec.js +0 -24
  266. package/lib-esm/core/set-locale-node.spec.js.map +0 -1
  267. package/lib-esm/core/split-locale.js +0 -35
  268. package/lib-esm/core/split-locale.js.map +0 -1
  269. package/lib-esm/core/split-locale.spec.d.ts +0 -1
  270. package/lib-esm/core/split-locale.spec.js +0 -57
  271. package/lib-esm/core/split-locale.spec.js.map +0 -1
  272. package/lib-esm/core/textdomain.d.ts +0 -55
  273. package/lib-esm/core/textdomain.js +0 -274
  274. package/lib-esm/core/textdomain.js.map +0 -1
  275. package/lib-esm/core/textdomain.spec.d.ts +0 -1
  276. package/lib-esm/core/textdomain.spec.js +0 -31
  277. package/lib-esm/core/textdomain.spec.js.map +0 -1
  278. package/lib-esm/core/user-locales.js +0 -8
  279. package/lib-esm/core/user-locales.js.map +0 -1
  280. package/lib-esm/index-browser.d.ts +0 -2
  281. package/lib-esm/index-browser.js +0 -26
  282. package/lib-esm/index-browser.js.map +0 -1
  283. package/lib-esm/index.d.ts +0 -2
  284. package/lib-esm/index.js +0 -19
  285. package/lib-esm/index.js.map +0 -1
  286. package/lib-esm/parser/index.d.ts +0 -2
  287. package/lib-esm/parser/index.js +0 -3
  288. package/lib-esm/parser/index.js.map +0 -1
  289. package/lib-esm/parser/parse-json-catalog.js +0 -32
  290. package/lib-esm/parser/parse-json-catalog.js.map +0 -1
  291. package/lib-esm/parser/parse-json-catalog.spec.d.ts +0 -1
  292. package/lib-esm/parser/parse-json-catalog.spec.js +0 -39
  293. package/lib-esm/parser/parse-json-catalog.spec.js.map +0 -1
  294. package/lib-esm/parser/parse-mo-catalog.js +0 -82
  295. package/lib-esm/parser/parse-mo-catalog.js.map +0 -1
  296. package/lib-esm/parser/parse-mo-catalog.spec.d.ts +0 -1
  297. package/lib-esm/parser/parse-mo-catalog.spec.js +0 -113
  298. package/lib-esm/parser/parse-mo-catalog.spec.js.map +0 -1
  299. package/lib-esm/transport/fs.js +0 -15
  300. package/lib-esm/transport/fs.js.map +0 -1
  301. package/lib-esm/transport/http.js +0 -24
  302. package/lib-esm/transport/http.js.map +0 -1
  303. package/lib-esm/transport/http.spec.d.ts +0 -1
  304. package/lib-esm/transport/http.spec.js +0 -114
  305. package/lib-esm/transport/http.spec.js.map +0 -1
  306. package/lib-esm/transport/index.d.ts +0 -3
  307. package/lib-esm/transport/index.js +0 -4
  308. package/lib-esm/transport/index.js.map +0 -1
  309. package/lib-esm/transport/transport.interface.d.ts +0 -3
  310. package/lib-esm/transport/transport.interface.js +0 -2
  311. package/lib-esm/transport/transport.interface.js.map +0 -1
  312. package/webpack.common.js +0 -38
  313. package/webpack.dev.js +0 -9
  314. package/webpack.prod.js +0 -8
@@ -1,389 +0,0 @@
1
- import { Textdomain } from './textdomain';
2
- import { gettextImpl } from './gettext-impl';
3
- describe('translation functions without catalog', function () {
4
- var gtx = Textdomain.getInstance('test');
5
- describe('normal gettext (_)', function () {
6
- it('should echo its argument', function () {
7
- expect(gtx._('foobar')).toEqual('foobar');
8
- });
9
- });
10
- describe('gettext with expansion (_x)', function () {
11
- it('should expand placeholders', function () {
12
- expect(gtx._x('Hello, {name}!', { name: 'world' })).toEqual('Hello, world!');
13
- });
14
- it('should preserve unknown placeholders', function () {
15
- expect(gtx._x('Hello, {name}!', {})).toEqual('Hello, {name}!');
16
- });
17
- });
18
- });
19
- describe('existing translations for locale de', function () {
20
- var gtx = Textdomain.getInstance('existing');
21
- beforeAll(function () {
22
- Textdomain.locale = 'de';
23
- return gtx.resolve();
24
- });
25
- describe('locale should be de indeed', function () {
26
- it('should use the locale de', function () {
27
- expect(Textdomain.locale).toEqual('de');
28
- });
29
- });
30
- describe('normal strings', function () {
31
- it('should translate "December"', function () {
32
- expect(gtx._('December')).toEqual('Dezember');
33
- });
34
- it('should translate "September" to an identical string', function () {
35
- expect(gtx._('September')).toEqual('September');
36
- });
37
- it('should translate "January" to German not Austrian', function () {
38
- expect(gtx._('January')).toEqual('Januar');
39
- });
40
- it('should translate "February" to German not Austrian', function () {
41
- expect(gtx._('February')).toEqual('Februar');
42
- });
43
- });
44
- });
45
- describe('translations from multiple packages de', function () {
46
- var gtx1 = Textdomain.getInstance('existing');
47
- var gtx2 = Textdomain.getInstance('additional');
48
- beforeAll(function () {
49
- Textdomain.locale = 'de';
50
- return gtx1.resolve();
51
- });
52
- describe('locale should be de indeed', function () {
53
- it('should use the locale de', function () {
54
- expect(Textdomain.locale).toEqual('de');
55
- });
56
- });
57
- describe('normal strings', function () {
58
- it('should translate "January" from first domain', function () {
59
- expect(gtx1._('January')).toEqual('Januar');
60
- });
61
- it('should translate "Saturday" from second domain', function () {
62
- expect(gtx2._('Saturday')).toEqual('Samstag');
63
- });
64
- });
65
- });
66
- describe('existing translations for locale de_AT', function () {
67
- var gtx = Textdomain.getInstance('existing');
68
- beforeAll(function () {
69
- Textdomain.locale = 'de_AT';
70
- return gtx.resolve();
71
- });
72
- describe('locale should be de_AT indeed', function () {
73
- it('should use the locale de_AT', function () {
74
- expect(Textdomain.locale).toEqual('de_AT');
75
- });
76
- });
77
- describe('normal strings', function () {
78
- it('should translate "December"', function () {
79
- expect(gtx._('December')).toEqual('Dezember');
80
- });
81
- it('should translate "September" to an identical string', function () {
82
- expect(gtx._('September')).toEqual('September');
83
- });
84
- it('should translate "January" to Austrian not German', function () {
85
- expect(gtx._('January')).toEqual('Jänner');
86
- });
87
- it('should translate "February" to Austrian not German', function () {
88
- expect(gtx._('February')).toEqual('Feber');
89
- });
90
- });
91
- });
92
- describe('_x() (placeholder strings)', function () {
93
- var gtx = Textdomain.getInstance('existing');
94
- beforeAll(function () {
95
- Textdomain.locale = 'de_AT';
96
- return gtx.resolve();
97
- });
98
- describe('locale should be de_AT indeed', function () {
99
- it('should use the locale de_AT', function () {
100
- expect(Textdomain.locale).toEqual('de_AT');
101
- });
102
- });
103
- describe('tests', function () {
104
- it('should expand all placeholders', function () {
105
- expect(gtx._x('The colors are {color1}, {color2}, and {color3}.', {
106
- color1: gtx._('red'),
107
- color2: gtx._('green'),
108
- color3: gtx._('blue'),
109
- })).toEqual('Die Farben sind Rot, Grün und Blau.');
110
- });
111
- it('should preserve undefined placeholders', function () {
112
- expect(gtx._x('The colors are {color1}, {color2}, and {color3}.', {
113
- color1: gtx._('red'),
114
- colorTypo: gtx._('green'),
115
- color3: gtx._('blue'),
116
- })).toEqual('Die Farben sind Rot, {color2} und Blau.');
117
- });
118
- it('should ignore excess placeholders', function () {
119
- expect(gtx._x('The colors are {color1}, {color2}, and {color3}.', {
120
- color1: gtx._('red'),
121
- color2: gtx._('green'),
122
- color3: gtx._('blue'),
123
- color4: gtx._('brown'),
124
- })).toEqual('Die Farben sind Rot, Grün und Blau.');
125
- });
126
- });
127
- });
128
- describe('_n() (plural forms)', function () {
129
- var gtx = Textdomain.getInstance('existing');
130
- beforeAll(function () {
131
- Textdomain.locale = 'de_AT';
132
- return gtx.resolve();
133
- });
134
- describe('locale should be de_AT indeed', function () {
135
- it('should use the locale de_AT', function () {
136
- expect(Textdomain.locale).toEqual('de_AT');
137
- });
138
- });
139
- describe('tests', function () {
140
- it('should select the plural', function () {
141
- expect(gtx._n('Singular', 'Plural', 0)).toEqual('Mehrzahl');
142
- });
143
- it('should select the singular', function () {
144
- expect(gtx._n('Singular', 'Plural', 1)).toEqual('Einzahl');
145
- });
146
- it('should select the plural', function () {
147
- expect(gtx._n('Singular', 'Plural', 2)).toEqual('Mehrzahl');
148
- });
149
- });
150
- });
151
- describe('_nx() (plural forms with placeholder expansion)', function () {
152
- var gtx = Textdomain.getInstance('existing');
153
- beforeAll(function () {
154
- Textdomain.locale = 'de_AT';
155
- return gtx.resolve();
156
- });
157
- describe('locale should be de_AT indeed', function () {
158
- it('should use the locale de_AT', function () {
159
- expect(Textdomain.locale).toEqual('de_AT');
160
- });
161
- });
162
- describe('tests', function () {
163
- it('should select the singular', function () {
164
- expect(gtx._nx('One directory has been deleted.', '{num} directories have been deleted.', 1, { num: 1 })).toEqual('Ein Verzeichnis wurde gelöscht.');
165
- });
166
- it('should select the singular', function () {
167
- expect(gtx._nx('One directory has been deleted.', '{numDirs} directories have been deleted.', 2304, { num: 2304 })).toEqual('2304 Verzeichnisse wurden gelöscht.');
168
- });
169
- it('should work without placeholders', function () {
170
- expect(gtx._nx('One directory has been deleted.', '{numDirs} directories have been deleted.', 2304)).toEqual('{num} Verzeichnisse wurden gelöscht.');
171
- });
172
- });
173
- });
174
- describe('_p() (with context)', function () {
175
- var gtx = Textdomain.getInstance('existing');
176
- beforeAll(function () {
177
- Textdomain.locale = 'de_AT';
178
- return gtx.resolve();
179
- });
180
- describe('locale should be de_AT indeed', function () {
181
- it('should use the locale de_AT', function () {
182
- expect(Textdomain.locale).toEqual('de_AT');
183
- });
184
- });
185
- describe('tests', function () {
186
- it('should select no context', function () {
187
- expect(gtx._('View')).toEqual('Anzeigen');
188
- });
189
- it('should select the 1st context', function () {
190
- expect(gtx._p('Which folder would you like to view?', 'View')).toEqual('Ansicht');
191
- });
192
- it('should select the 2nd context', function () {
193
- expect(gtx._p('Which folder would you like to view? (2)', 'View')).toEqual('View 2');
194
- });
195
- it('should use the original string for unknown contexts', function () {
196
- expect(gtx._p('gips.net', 'View')).toEqual('View');
197
- });
198
- });
199
- });
200
- describe('_px() (with context and placeholders)', function () {
201
- var gtx = Textdomain.getInstance('existing');
202
- beforeAll(function () {
203
- Textdomain.locale = 'de_AT';
204
- return gtx.resolve();
205
- });
206
- describe('locale should be de_AT indeed', function () {
207
- it('should use the locale de_AT', function () {
208
- expect(Textdomain.locale).toEqual('de_AT');
209
- });
210
- });
211
- describe('tests', function () {
212
- it('should select no context', function () {
213
- expect(gtx._x('The colors are {color1}, {color2}, and {color3}.', {
214
- color1: gtx._('red'),
215
- color2: gtx._('green'),
216
- color3: gtx._('blue'),
217
- })).toEqual('Die Farben sind Rot, Grün und Blau.');
218
- });
219
- it("should select the 'colon' context", function () {
220
- expect(gtx._px('colon', 'The colors are {color1}, {color2}, and {color3}.', {
221
- color1: gtx._('red'),
222
- color2: gtx._('green'),
223
- color3: gtx._('blue'),
224
- })).toEqual('Die Farben sind: Rot, Grün und Blau.');
225
- });
226
- it('should use the original string for unknown contexts', function () {
227
- expect(gtx._px('gips.net', 'The colors are {color1}, {color2}, and {color3}.', {
228
- color1: gtx._('red'),
229
- color2: gtx._('green'),
230
- color3: gtx._('blue'),
231
- })).toEqual('The colors are Rot, Grün, and Blau.');
232
- });
233
- it('should work without placeholders', function () {
234
- expect(gtx._px('gips.net', 'The colors are {color1}, {color2}, and {color3}.')).toEqual('The colors are {color1}, {color2}, and {color3}.');
235
- });
236
- });
237
- });
238
- describe('_np() (with context and placeholders)', function () {
239
- var gtx = Textdomain.getInstance('existing');
240
- beforeAll(function () {
241
- Textdomain.locale = 'de_AT';
242
- return gtx.resolve();
243
- });
244
- describe('locale should be de_AT indeed', function () {
245
- it('should use the locale de_AT', function () {
246
- expect(Textdomain.locale).toEqual('de_AT');
247
- });
248
- });
249
- describe('tests', function () {
250
- it('should select the singular without context', function () {
251
- expect(gtx._n('Singular', 'Plural', 1)).toEqual('Einzahl');
252
- });
253
- it('should select the plural without context', function () {
254
- expect(gtx._n('Singular', 'Plural', 2)).toEqual('Mehrzahl');
255
- });
256
- it('should select the singular with context', function () {
257
- expect(gtx._np('Context here (2)', 'Singular', 'Plural', 1)).toEqual('Einzahl 2');
258
- });
259
- it('should select the plural with context', function () {
260
- expect(gtx._np('Context here (2)', 'Singular', 'Plural', 2)).toEqual('Mehrzahl 2');
261
- });
262
- it('should select the singular with unknown context', function () {
263
- expect(gtx._np('gips.net', 'Singular', 'Plural', 1)).toEqual('Singular');
264
- });
265
- it('should select the plural with unknown context', function () {
266
- expect(gtx._np('gips.net', 'Singular', 'Plural', 2)).toEqual('Plural');
267
- });
268
- });
269
- });
270
- describe('_npx() (with plural, context and placeholders)', function () {
271
- var gtx = Textdomain.getInstance('existing');
272
- beforeAll(function () {
273
- Textdomain.locale = 'de_AT';
274
- return gtx.resolve();
275
- });
276
- describe('locale should be de_AT indeed', function () {
277
- it('should use the locale de_AT', function () {
278
- expect(Textdomain.locale).toEqual('de_AT');
279
- });
280
- });
281
- describe('tests', function () {
282
- it('should select no context and the singular', function () {
283
- expect(gtx._nx('One directory has been deleted.', '{num} directories have been deleted.', 1, { num: 1 })).toEqual('Ein Verzeichnis wurde gelöscht.');
284
- });
285
- it('should select no context and the plural', function () {
286
- expect(gtx._nx('One directory has been deleted.', '{num} directories have been deleted.', 2304, { num: 2304 })).toEqual('2304 Verzeichnisse wurden gelöscht.');
287
- });
288
- it('should select windows context and the singular', function () {
289
- expect(gtx._npx('Windows', 'One directory has been deleted.', '{num} directories have been deleted.', 1, { num: 1 })).toEqual('Ein Ordner wurde gelöscht.');
290
- });
291
- it('should select windows context and the plural', function () {
292
- expect(gtx._npx('Windows', 'One directory has been deleted.', '{num} directories have been deleted.', 2304, { num: 2304 })).toEqual('2304 Ordner wurden gelöscht.');
293
- });
294
- it('should select unknown context and the singular', function () {
295
- expect(gtx._npx('Linux', 'One directory has been deleted.', '{num} directories have been deleted.', 1, { num: 1 })).toEqual('One directory has been deleted.');
296
- });
297
- it('should select unknown context and the plural', function () {
298
- expect(gtx._npx('Linux', 'One directory has been deleted.', '{num} directories have been deleted.', 2304, { num: 2304 })).toEqual('2304 directories have been deleted.');
299
- });
300
- it('should work without placeholders', function () {
301
- expect(gtx._npx('Linux', 'One directory has been deleted.', '{num} directories have been deleted.', 2304)).toEqual('{num} directories have been deleted.');
302
- });
303
- });
304
- });
305
- describe('_l methods with fixed locale', function () {
306
- var gtx = Textdomain.getInstance('existing');
307
- beforeAll(function () {
308
- return gtx.resolve('de');
309
- });
310
- describe('tests', function () {
311
- describe('_l', function () {
312
- it('should translate "January"', function () {
313
- expect(gtx._l('de', 'January')).toEqual('Januar');
314
- });
315
- it('should expand all placeholders', function () {
316
- expect(gtx._lx('de', 'The colors are {color1}, {color2}, and {color3}.', {
317
- color1: gtx._('red'),
318
- color2: gtx._('green'),
319
- color3: gtx._('blue'),
320
- })).toEqual('Die Farben sind Rot, Grün und Blau.');
321
- });
322
- });
323
- });
324
- });
325
- describe('no-op methods', function () {
326
- var gtx = Textdomain.getInstance('test');
327
- describe('N_()', function () {
328
- it('the instance method should return the msgid', function () {
329
- expect(gtx.N_('one')).toEqual('one');
330
- });
331
- it('the class method should return the msgid', function () {
332
- expect(Textdomain.N_('one')).toEqual('one');
333
- });
334
- });
335
- describe('N_x()', function () {
336
- it('the instance method should return the expanded msgid', function () {
337
- expect(gtx.N_x('age: {age}', { age: 7 })).toEqual('age: 7');
338
- });
339
- it('the class method should return the expanded msgid', function () {
340
- expect(Textdomain.N_x('age: {age}', { age: 7 })).toEqual('age: 7');
341
- });
342
- });
343
- describe('N_p()', function () {
344
- it('the instance method should return the msgid', function () {
345
- expect(gtx.N_p('whatever', 'one')).toEqual('one');
346
- });
347
- it('the class method should return the msgid', function () {
348
- expect(Textdomain.N_p('whatever', 'one')).toEqual('one');
349
- });
350
- });
351
- describe('N_px()', function () {
352
- it('the instance method should return the expanded msgid', function () {
353
- expect(gtx.N_px('whatever', 'age: {age}', { age: 7 })).toEqual('age: 7');
354
- });
355
- it('the class method should return the expanded msgid', function () {
356
- expect(Textdomain.N_px('whatever', 'age: {age}', { age: 7 })).toEqual('age: 7');
357
- });
358
- });
359
- });
360
- describe('plural inconsistencies', function () {
361
- var catalog = {
362
- major: 0,
363
- minor: 0,
364
- pluralFunction: function () { return 42; },
365
- entries: {
366
- one: ['yksi'],
367
- two: ['yksi', 'kaksi'],
368
- },
369
- };
370
- it('should pick the only translation', function () {
371
- var trans = gettextImpl({
372
- catalog: catalog,
373
- msgid: 'one',
374
- msgidPlural: 'two',
375
- numItems: 1,
376
- });
377
- expect(trans).toEqual('yksi');
378
- });
379
- it('should use germanic plural', function () {
380
- var trans = gettextImpl({
381
- catalog: catalog,
382
- msgid: 'two',
383
- msgidPlural: 'twos',
384
- numItems: 2,
385
- });
386
- expect(trans).toEqual('kaksi');
387
- });
388
- });
389
- //# sourceMappingURL=gettext.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gettext.spec.js","sourceRoot":"","sources":["../../src/core/gettext.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAQ,CAAC,uCAAuC,EAAE;IACjD,IAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAE3C,QAAQ,CAAC,oBAAoB,EAAE;QAC9B,EAAE,CAAC,0BAA0B,EAAE;YAC9B,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,6BAA6B,EAAE;QACvC,EAAE,CAAC,4BAA4B,EAAE;YAChC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAC1D,eAAe,CACf,CAAC;QACH,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,sCAAsC,EAAE;YAC1C,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,qCAAqC,EAAE;IAC/C,IAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE/C,SAAS,CAAC;QACT,UAAU,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G,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;SACtB;KACD,CAAC;IAEF,EAAE,CAAC,kCAAkC,EAAE;QACtC,IAAM,KAAK,GAAG,WAAW,CAAC;YACzB,OAAO,SAAA;YACP,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE,CAAC;SACX,CAAC,CAAC;QACH,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE;QAChC,IAAM,KAAK,GAAG,WAAW,CAAC;YACzB,OAAO,SAAA;YACP,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,CAAC;SACX,CAAC,CAAC;QACH,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './catalog';
2
- export * from './textdomain';
3
- export * from './catalog-cache';
4
- export * from './locale-container';
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -1,8 +0,0 @@
1
- import { Catalog } from './catalog';
2
- export interface LocaleContainer {
3
- [key: string]: {
4
- [key: string]: {
5
- [key: string]: Catalog;
6
- };
7
- };
8
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=locale-container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"locale-container.js","sourceRoot":"","sources":["../../src/core/locale-container.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare function pathSeparator(sep?: string): string;
@@ -1,8 +0,0 @@
1
- var usePathSeparator = '/';
2
- export function pathSeparator(sep) {
3
- if (typeof sep !== 'undefined') {
4
- usePathSeparator = sep;
5
- }
6
- return usePathSeparator;
7
- }
8
- //# sourceMappingURL=path-separator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"path-separator.js","sourceRoot":"","sources":["../../src/core/path-separator.ts"],"names":[],"mappings":"AAAA,IAAI,gBAAgB,GAAG,GAAG,CAAC;AAM3B,MAAM,UAAU,aAAa,CAAC,GAAY;IACzC,IAAI,OAAO,GAAG,KAAK,WAAW,EAAE,CAAC;QAChC,gBAAgB,GAAG,GAAG,CAAC;IACxB,CAAC;IAED,OAAO,gBAAgB,CAAC;AACzB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Catalog } from './catalog';
2
- import { LocaleContainer } from './locale-container';
3
- export declare function resolveImpl(domainname: string, path: string | LocaleContainer, format: string, localeKey: string): Promise<Catalog>;