@things-factory/i18n-base 7.0.70 → 7.0.71
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.
|
|
3
|
+
"version": "7.0.71",
|
|
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.
|
|
31
|
+
"@things-factory/auth-base": "^7.0.71",
|
|
32
32
|
"@things-factory/shell": "^7.0.70"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "d242e4a4415764d0d389e9dff09d2ce3a8fc317f"
|
|
35
35
|
}
|
|
@@ -11,18 +11,18 @@ var fs = require('fs')
|
|
|
11
11
|
|
|
12
12
|
const disableCustomTerminologyFeature = config.get('i18n/disableCustomTerminologyFeature')
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|