@things-factory/i18n-base 7.0.70 → 7.0.72

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/i18n-base",
3
- "version": "7.0.70",
3
+ "version": "7.0.72",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@operato/i18n": "^7.0.0",
31
- "@things-factory/auth-base": "^7.0.70",
32
- "@things-factory/shell": "^7.0.70"
31
+ "@things-factory/auth-base": "^7.0.72",
32
+ "@things-factory/shell": "^7.0.72"
33
33
  },
34
- "gitHead": "f046cfbb15447499fc5be9a9d82e2deb296b5f36"
34
+ "gitHead": "6131a0f20fcc11bc8e9e9d839de8e9700a2b0ac0"
35
35
  }
@@ -11,18 +11,18 @@ var fs = require('fs')
11
11
 
12
12
  const disableCustomTerminologyFeature = config.get('i18n/disableCustomTerminologyFeature')
13
13
 
14
- if (!disableCustomTerminologyFeature) {
15
- process.on('client-rebuilt' as any, (app, compilerFileSystem) => {
16
- /* change filesystem whenever webpacking assets done. only for development mode. */
17
- fs = compilerFileSystem
14
+ process.on('client-rebuilt' as any, (app, compilerFileSystem) => {
15
+ /* change filesystem whenever webpacking assets done. only for development mode. */
16
+ fs = compilerFileSystem
18
17
 
18
+ if (!disableCustomTerminologyFeature) {
19
19
  const cacheFileFolder = path.join('cache', 'translations')
20
20
 
21
21
  if (cacheFS.existsSync(cacheFileFolder)) {
22
22
  cacheFS.rmSync(cacheFileFolder, { recursive: true })
23
23
  }
24
- })
25
- }
24
+ }
25
+ })
26
26
 
27
27
  export const translationsRouter = new Router()
28
28