@adminforth/i18n 1.3.5 → 1.3.7

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.
package/dist/index.js CHANGED
@@ -13,9 +13,6 @@ import path from 'path';
13
13
  import fs from 'fs-extra';
14
14
  import chokidar from 'chokidar';
15
15
  import { AsyncQueue } from '@sapphire/async-queue';
16
- console.log = (...args) => {
17
- process.stdout.write(args.join(" ") + "\n");
18
- };
19
16
  const processFrontendMessagesQueue = new AsyncQueue();
20
17
  const SLAVIC_PLURAL_EXAMPLES = {
21
18
  uk: 'яблук | Яблуко | Яблука | Яблук', // zero | singular | 2-4 | 5+
@@ -343,7 +340,7 @@ export default class I18nPlugin extends AdminForthPlugin {
343
340
  if (fullyTranslatedFilter) {
344
341
  // remove it from filters because it is virtual field
345
342
  query.filters = query.filters.filter((f) => f.field !== 'fully_translated');
346
- if (fullyTranslatedFilter.value[0]) {
343
+ if (fullyTranslatedFilter.value) {
347
344
  query.filters.push({
348
345
  field: this.options.completedFieldName,
349
346
  value: this.fullCompleatedFieldValue,
package/index.ts CHANGED
@@ -8,10 +8,6 @@ import chokidar from 'chokidar';
8
8
  import { AsyncQueue } from '@sapphire/async-queue';
9
9
 
10
10
 
11
- console.log = (...args) => {
12
- process.stdout.write(args.join(" ") + "\n");
13
- };
14
-
15
11
  const processFrontendMessagesQueue = new AsyncQueue();
16
12
 
17
13
  const SLAVIC_PLURAL_EXAMPLES = {
@@ -391,7 +387,7 @@ export default class I18nPlugin extends AdminForthPlugin {
391
387
  if (fullyTranslatedFilter) {
392
388
  // remove it from filters because it is virtual field
393
389
  query.filters = query.filters.filter((f: any) => f.field !== 'fully_translated');
394
- if (fullyTranslatedFilter.value[0]) {
390
+ if (fullyTranslatedFilter.value) {
395
391
  query.filters.push({
396
392
  field: this.options.completedFieldName,
397
393
  value: this.fullCompleatedFieldValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",