Skip to content

Moved ilib-js/ilib-localeinfo -> ilib-mono/packages/ilib-localeinfo#142

Open
ehoogerbeets wants to merge 65 commits intomainfrom
addLocaleInfo
Open

Moved ilib-js/ilib-localeinfo -> ilib-mono/packages/ilib-localeinfo#142
ehoogerbeets wants to merge 65 commits intomainfrom
addLocaleInfo

Conversation

@ehoogerbeets
Copy link
Copy Markdown
Contributor

No description provided.

ehoogerbeets and others added 30 commits March 14, 2022 00:11
- now runs the unit tests properly, though they fail still
- needs ilib-localedata 1.0.0 to be published first though
Initial version: only works on nodejs
This doesn't get used in the module itself, but it is loaded by
ilib-assemble to gather together all of the locale data files
necessary to support a list of locales.
Add the assemble module for ilib-assemble to use
- still a few things left
- used cldr41 and new tools
- updated a few unit tests that seemed to be testing for the wrong
thing in ilib. (We need to investigate those.)
	- manually verified each of these fixes by looking in the raw
	  cldr files
Generate the localeinfo.json files directly
- browser based tests now work
- implement assemble.mjs to work with the ilib-assemble tool to add
locale data from this package to the locale data for an app
- use LocaleData.ensureLocale to make sure locale data is preloaded
for browser-based tests in sync mode
ehoogerbeets and others added 22 commits August 5, 2022 20:18
- hybrid commonjs and esm
This module is now a hybrid ESM/CommonJS package that works under node or webpack
* Did not export the assemble.mjs file so it was not possible to assemble
  the locale data
* Remove the incorrect check for synchronous loading of data that is already
  in the cache. The check is now in ilib-localedata instead.
* Updated dependencies
Corrected exports, removed incorrect check, update deps
This makes it work better on node < v16.11.0 which didn't support
static initializers so well.
Moved static initializer to regular const
* use a babel plugin to remove import.meta from the transpiled code for
  node < v10. Previously, this prevented this package from running properly
  on node v10
remove import.meta from transpiled code
Fix incorrect info for zh-TW, zh-MO, and zh-HK
Generate the Chinese locale data properly
…942aa8c2e5491f28'

git-subtree-dir: packages/ilib-localeinfo
git-subtree-mainline: f398663
git-subtree-split: 896046b
@ehoogerbeets ehoogerbeets self-assigned this Jul 16, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 16, 2025

🦋 Changeset detected

Latest commit: 0eea892

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
ilib-localeinfo Patch
ilib-lint Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 16, 2025

Jest Code Coverage

Code Coverage for changed files • (0%) 
File% Stmts% Branch% Funcs% LinesUncovered Line #s
report-only-changed-files is enabled. No files were changed in this commit :)
Title Lines Statements Branches Functions
ilib-assemble Coverage: 96%
92.98% (53/57) 86.66% (26/30) 90.9% (10/11)
ilib-casemapper Coverage: 86%
86.66% (39/45) 87.8% (36/41) 80% (4/5)
ilib-common Coverage: 79%
79.41% (270/340) 69.73% (212/304) 69.64% (39/56)
ilib-ctype Coverage: 65%
65.38% (102/156) 65.6% (82/125) 100% (18/18)
ilib-data-utils Coverage: 52%
51.86% (181/349) 56.52% (169/299) 50.74% (34/67)
ilib-env Coverage: 65%
65.27% (94/144) 55% (99/180) 92.85% (13/14)
ilib-lint Coverage: 87%
86.7% (2015/2324) 76.64% (1129/1473) 88.16% (395/448)
ilib-lint-apple Coverage: 95%
92.39% (85/92) 84.05% (58/69) 100% (8/8)
ilib-lint-java Coverage: 90%
89.33% (134/150) 79.8% (83/104) 93.1% (27/29)
ilib-lint-javascript Coverage: 81%
80.48% (132/164) 71.66% (86/120) 84.21% (32/38)
ilib-lint-python Coverage: 73%
73.43% (141/192) 60.46% (52/86) 62.06% (18/29)
ilib-lint-python-gnu Coverage: 76%
75.15% (118/157) 71.18% (42/59) 60.97% (25/41)
ilib-lint-react Coverage: 96%
95.88% (303/316) 84.91% (152/179) 91.04% (61/67)
ilib-locale Coverage: 87%
87.71% (100/114) 87.3% (110/126) 91.3% (21/23)
ilib-loctool-android-layout Coverage: 73%
72.17% (166/230) 67.25% (76/113) 54.83% (17/31)
ilib-loctool-android-resource Coverage: 61%
61.86% (292/472) 60.85% (171/281) 57.14% (24/42)
ilib-loctool-csv Coverage: 80%
79.38% (208/262) 73.33% (132/180) 65.21% (30/46)
ilib-loctool-ghfm Coverage: 86%
86.44% (644/745) 78.82% (417/529) 86.2% (50/58)
ilib-loctool-haml Coverage: 92%
92.56% (436/471) 86.48% (224/259) 72.97% (27/37)
ilib-loctool-html Coverage: 91%
91.17% (279/306) 82.84% (140/169) 73.68% (28/38)
ilib-loctool-java-android-ilib Coverage: 71%
70.28% (123/175) 60% (45/75) 48% (12/25)
ilib-loctool-javascript Coverage: 74%
73.25% (178/243) 61.15% (85/139) 45.16% (14/31)
ilib-loctool-javascript-resource Coverage: 68%
69.32% (113/163) 56.41% (44/78) 37.5% (12/32)
ilib-loctool-json Coverage: 79%
79.06% (442/559) 72.08% (266/369) 73.07% (57/78)
ilib-loctool-jst Coverage: 89%
89.16% (288/323) 81.34% (157/193) 73.68% (28/38)
ilib-loctool-jsx Coverage: 72%
70.8% (114/161) 68.75% (55/80) 39.13% (9/23)
ilib-loctool-mrkdwn Coverage: 88%
87.5% (357/408) 80.35% (229/285) 74.41% (32/43)
ilib-loctool-objectivec Coverage: 70%
68.57% (96/140) 69.56% (32/46) 38.46% (10/26)
ilib-loctool-php-resource Coverage: 65%
65.8% (102/155) 45.76% (27/59) 37.14% (13/35)
ilib-loctool-po Coverage: 88%
87.87% (232/264) 76.92% (130/169) 76.92% (30/39)
ilib-loctool-properties Coverage: 67%
67.67% (157/232) 57.54% (61/106) 34.21% (13/38)
ilib-loctool-regex Coverage: 74%
73.72% (202/274) 65.06% (95/146) 56.81% (25/44)
ilib-loctool-ruby-ilib Coverage: 67%
66.53% (173/260) 73.63% (81/110) 40% (12/30)
ilib-loctool-salesforce-metaxml Coverage: 88%
87.08% (209/240) 70.49% (86/122) 68.62% (35/51)
ilib-loctool-strings Coverage: 75%
74.74% (222/297) 78.91% (131/166) 48.71% (19/39)
ilib-loctool-swift Coverage: 68%
66.88% (101/151) 62.74% (32/51) 40.74% (11/27)
ilib-loctool-tap-i18n Coverage: 87%
87.58% (254/290) 85.07% (114/134) 71.42% (35/49)
ilib-loctool-xml Coverage: 87%
86.53% (437/505) 78.1% (289/370) 78.26% (54/69)
ilib-loctool-yaml Coverage: 85%
85.71% (348/406) 82.16% (235/286) 71.42% (40/56)
ilib-loctool-yaml-resource Coverage: 65%
65.31% (194/297) 60.86% (84/138) 47.61% (20/42)
ilib-tmx Coverage: 93%
92.73% (217/234) 80.24% (130/162) 90.9% (50/55)
ilib-tools-common Coverage: 89%
88.82% (1152/1297) 81.45% (685/841) 91.1% (215/236)
ilib-tree-node Coverage: 100%
100% (69/69) 97.43% (38/39) 100% (10/10)
ilib-xliff Coverage: 75%
75.48% (314/416) 67.95% (229/337) 83.33% (45/54)
ilib-yaml Coverage: 94%
93.96% (109/116) 91.3% (105/115) 100% (19/19)
loctool Coverage: 81%
81.36% (6834/8399) 73.97% (3496/4726) 72.9% (783/1074)
message-accumulator Coverage: 100%
100% (160/160) 94.11% (96/102) 100% (26/26)
tmxtool Coverage: 75%
76.47% (13/17) 66.66% (6/9) 100% (3/3)
Title Tests Skipped Failures Errors Time
ilib-assemble 55 0 💤 0 ❌ 0 🔥 6.271s ⏱️
ilib-casemapper 75 0 💤 0 ❌ 0 🔥 2.665s ⏱️
ilib-common 271 0 💤 0 ❌ 0 🔥 7.175s ⏱️
ilib-ctype 261 0 💤 0 ❌ 0 🔥 1.702s ⏱️
ilib-data-utils 73 0 💤 0 ❌ 0 🔥 7.735s ⏱️
ilib-env 56 0 💤 0 ❌ 0 🔥 1.801s ⏱️
ilib-lint 997 0 💤 0 ❌ 0 🔥 26.147s ⏱️
ilib-lint-apple 31 0 💤 0 ❌ 0 🔥 6.719s ⏱️
ilib-lint-java 29 0 💤 0 ❌ 0 🔥 8.221s ⏱️
ilib-lint-javascript 57 0 💤 0 ❌ 0 🔥 10.449s ⏱️
ilib-lint-python 52 0 💤 0 ❌ 0 🔥 10.291s ⏱️
ilib-lint-python-gnu 35 0 💤 0 ❌ 0 🔥 14.675s ⏱️
ilib-lint-react 111 12 💤 0 ❌ 0 🔥 9.045s ⏱️
ilib-locale 89 0 💤 0 ❌ 0 🔥 2.051s ⏱️
ilib-loctool-android-layout 44 0 💤 0 ❌ 0 🔥 18.894s ⏱️
ilib-loctool-android-resource 61 0 💤 0 ❌ 0 🔥 18.833s ⏱️
ilib-loctool-csv 57 0 💤 0 ❌ 0 🔥 17.924s ⏱️
ilib-loctool-ghfm 200 0 💤 0 ❌ 0 🔥 9.193s ⏱️
ilib-loctool-haml 192 0 💤 0 ❌ 0 🔥 19.234s ⏱️
ilib-loctool-html 89 0 💤 0 ❌ 0 🔥 20.484s ⏱️
ilib-loctool-java-android-ilib 62 0 💤 0 ❌ 0 🔥 19.267s ⏱️
ilib-loctool-javascript 76 0 💤 0 ❌ 0 🔥 16.584s ⏱️
ilib-loctool-javascript-resource 39 0 💤 0 ❌ 0 🔥 19.134s ⏱️
ilib-loctool-json 103 0 💤 0 ❌ 0 🔥 20.756s ⏱️
ilib-loctool-jst 115 0 💤 0 ❌ 0 🔥 19.692s ⏱️
ilib-loctool-jsx 48 0 💤 0 ❌ 0 🔥 18.798s ⏱️
ilib-loctool-mrkdwn 76 0 💤 0 ❌ 0 🔥 20.015s ⏱️
ilib-loctool-objectivec 34 0 💤 0 ❌ 0 🔥 18.778s ⏱️
ilib-loctool-php-resource 22 0 💤 0 ❌ 0 🔥 17.837s ⏱️
ilib-loctool-po 107 0 💤 0 ❌ 0 🔥 19.983s ⏱️
ilib-loctool-properties 49 0 💤 0 ❌ 0 🔥 20.209s ⏱️
ilib-loctool-regex 46 0 💤 0 ❌ 0 🔥 19.203s ⏱️
ilib-loctool-ruby-ilib 90 0 💤 0 ❌ 0 🔥 19.972s ⏱️
ilib-loctool-salesforce-metaxml 101 0 💤 0 ❌ 0 🔥 8.359s ⏱️
ilib-loctool-strings 55 0 💤 0 ❌ 0 🔥 18.718s ⏱️
ilib-loctool-swift 35 0 💤 0 ❌ 0 🔥 18.567s ⏱️
ilib-loctool-tap-i18n 64 0 💤 0 ❌ 0 🔥 19.127s ⏱️
ilib-loctool-xml 85 0 💤 0 ❌ 0 🔥 19.266s ⏱️
ilib-loctool-yaml 102 0 💤 0 ❌ 0 🔥 20s ⏱️
ilib-loctool-yaml-resource 47 0 💤 0 ❌ 0 🔥 20.473s ⏱️
ilib-po 75 0 💤 0 ❌ 0 🔥 19.889s ⏱️
ilib-tmx 90 0 💤 0 ❌ 0 🔥 8.673s ⏱️
ilib-tools-common 636 0 💤 0 ❌ 0 🔥 33.975s ⏱️
ilib-tree-node 43 0 💤 0 ❌ 0 🔥 1.683s ⏱️
ilib-xliff 108 0 💤 0 ❌ 0 🔥 8.614s ⏱️
ilib-yaml 37 0 💤 0 ❌ 0 🔥 17.395s ⏱️
loctool 2356 82 💤 0 ❌ 0 🔥 2m 28s ⏱️
message-accumulator 103 0 💤 0 ❌ 0 🔥 0.967s ⏱️
tmxtool 6 0 💤 0 ❌ 0 🔥 4.923s ⏱️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant