@adminforth/i18n 1.1.1 → 1.1.3-next.1

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
@@ -182,13 +182,25 @@ export default class I18nPlugin extends AdminForthPlugin {
182
182
  throw new Error(`Field ${this.options.completedFieldName} not found in resource ${resourceConfig.resourceId}${similar ? `Did you mean '${similar}'?` : ''}`);
183
183
  }
184
184
  // if showIn is not defined, add it as empty
185
- column.showIn = [];
185
+ column.showIn = {
186
+ show: false,
187
+ list: false,
188
+ edit: false,
189
+ create: false,
190
+ filter: false,
191
+ };
186
192
  // add virtual field for incomplete
187
193
  resourceConfig.columns.unshift({
188
194
  name: 'fully_translated',
189
195
  label: 'Fully translated',
190
196
  virtual: true,
191
- showIn: ['list', 'show', 'filter'],
197
+ showIn: {
198
+ show: true,
199
+ list: true,
200
+ edit: false,
201
+ create: false,
202
+ filter: true,
203
+ },
192
204
  type: AdminForthDataTypes.BOOLEAN,
193
205
  });
194
206
  }
package/index.ts CHANGED
@@ -204,14 +204,26 @@ export default class I18nPlugin extends AdminForthPlugin {
204
204
  }
205
205
 
206
206
  // if showIn is not defined, add it as empty
207
- column.showIn = [];
207
+ column.showIn = {
208
+ show: false,
209
+ list: false,
210
+ edit: false,
211
+ create: false,
212
+ filter: false,
213
+ };
208
214
 
209
215
  // add virtual field for incomplete
210
216
  resourceConfig.columns.unshift({
211
217
  name: 'fully_translated',
212
218
  label: 'Fully translated',
213
219
  virtual: true,
214
- showIn: ['list', 'show', 'filter'],
220
+ showIn: {
221
+ show: true,
222
+ list: true,
223
+ edit: false,
224
+ create: false,
225
+ filter: true,
226
+ },
215
227
  type: AdminForthDataTypes.BOOLEAN,
216
228
  });
217
229
  }
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "1.1.1",
3
+ "version": "1.1.3-next.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "build": "tsc && rsync -av --exclude 'node_modules' custom dist/",
9
- "rollout": "npm run build && npm version patch && npm publish --access public && npm run rollout-next",
10
- "rollout-next": "npm run build && npm version prerelease --preid=next && npm publish --tag next",
11
9
  "prepare": "npm link adminforth"
12
10
  },
13
11
  "repository": {
package/Changelog.md DELETED
@@ -1,71 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.0.23] - next
9
-
10
- ### Improved
11
-
12
- - Better instructions for LLM pluralization Slavik messages
13
-
14
- ### Added
15
- - support for pluralization in Backend `tr` function
16
- - add handy languagesList function to get all languages for translation of side apps
17
-
18
- ### Fixed
19
- - invalidation of indvidual tr messages when translation using LLM adapter
20
-
21
- ## [1.0.22]
22
-
23
- ### Fixed
24
-
25
- - More predictable class name
26
- - When loading unique translations from category, they were not registered if existing in other category
27
-
28
-
29
- ## [1.0.21] - 2024-12-30
30
-
31
- ### Fixed
32
- - improve cache reset when editing messages manually
33
-
34
- ### Added
35
- - Translating external app" feature by using feedCategoryTranslations
36
-
37
- ## [1.0.20]
38
-
39
- ### Fixed
40
- - fix automatic translations
41
-
42
- ## [1.0.14]
43
-
44
- ### Fixed
45
-
46
- - Add `ignoreInitial` for watch to prevent initial messages loading
47
- - Add locking mechanism to prevent initial messages loading call in parallel (just in case)
48
-
49
- ## [1.0.13]
50
-
51
- - Deduplicate frontend strings before creating translations
52
-
53
-
54
- ## [1.0.12]
55
-
56
- ### Fixed
57
-
58
- - live mode frontend translations loading when tmp dir is nopt preserver (e.g. docker cached /tmp pipeline)
59
-
60
- ## [1.0.11]
61
-
62
- ### Fixed
63
-
64
- - cache invalidations on delete
65
-
66
- ## [v1.0.10]
67
-
68
- ### Fixed
69
-
70
- - fix automatic translations for duplicate strings
71
- - improve slavik pluralization generations by splitting the requests