typed-locales 1.0.17 → 1.0.18

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.
@@ -38,7 +38,7 @@ export const initReact = (allTranslations, initialLocale, extraFormatters) => {
38
38
  setLocale: setLocaleInternal,
39
39
  // @ts-ignore
40
40
  t: (key, ...args) => {
41
- if (typeof key === 'string') {
41
+ if (typeof key !== 'string') {
42
42
  console.trace('incorrect translation', key, args);
43
43
  }
44
44
  return translate(key, ...args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typed-locales",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Type safe utilities for translating strings",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",