@adminforth/i18n 1.1.0 → 1.1.2
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/CHANGELOG.md +5 -0
- package/dist/index.js +14 -2
- package/index.ts +14 -2
- package/package.json +12 -6
package/CHANGELOG.md
ADDED
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:
|
|
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:
|
|
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,19 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/i18n",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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
|
-
"
|
|
14
|
-
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/devforth/adminforth-i18n.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"i18n",
|
|
17
|
+
"adminforth",
|
|
18
|
+
"translation"
|
|
19
|
+
],
|
|
20
|
+
"author": "devforth",
|
|
15
21
|
"license": "ISC",
|
|
16
|
-
"description": "",
|
|
22
|
+
"description": "Internationalization plugin for Adminforth projects",
|
|
17
23
|
"dependencies": {
|
|
18
24
|
"@aws-sdk/client-ses": "^3.654.0",
|
|
19
25
|
"@sapphire/async-queue": "^1.5.5",
|