Skip to content

Commit

Permalink
chore: replace meteor version of T9n with npm version (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
bubonicfred authored Jun 16, 2024
1 parent 33239f7 commit ca732cc
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 64 deletions.
1 change: 0 additions & 1 deletion .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ msavin:[email protected]
ostrio:flow-router-extra
[email protected]
universe:[email protected]
softwarerero:accounts-t9n
babrahams:accounts-ldap
[email protected]
[email protected]
Expand Down
4 changes: 1 addition & 3 deletions .meteor/versions
4 changes: 2 additions & 2 deletions imports/config/accounts.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { GlobalSettings } from "/imports/config/GlobalSettings";
import { LdapSettings } from "/imports/config/LdapSettings";
import { getLocaleCodes, I18nHelper } from "/imports/helpers/i18n";
import { T9n } from "meteor-accounts-t9n";
import { Accounts } from "meteor/accounts-base";
import { Meteor } from "meteor/meteor";
import { T9n } from "meteor/softwarerero:accounts-t9n";
import { i18n } from "meteor/universe:i18n";
import { AccountsTemplates } from "meteor/useraccounts:core";

Expand All @@ -16,7 +16,7 @@ import { AccountsTemplates } from "meteor/useraccounts:core";
// already provided by accounts-t9n you can always map your own keys.

const availLanguages = getLocaleCodes();

// TODO Check if NPM version of meteor T9n needs more configuration
for (const lang of availLanguages) {
T9n.map(lang, {
custom: {
Expand Down
2 changes: 1 addition & 1 deletion imports/helpers/i18n.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { T9n } from "meteor-accounts-t9n";
import { Meteor } from "meteor/meteor";
import { T9n } from "meteor/softwarerero:accounts-t9n";
import { i18n } from "meteor/universe:i18n";

/**
Expand Down
182 changes: 125 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"ldapjs": "^3.0.7",
"lodash": "^4.17.10",
"md5-file": "^5.0.0",
"meteor-accounts-t9n": "^2.6.0",
"meteor-node-stubs": "^1.2.9",
"moment": "^2.30.1",
"mongo-uri": "^0.1.2",
Expand Down

0 comments on commit ca732cc

Please sign in to comment.