gtx-cli 1.2.6 → 1.2.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/cli/base.js
CHANGED
|
@@ -211,6 +211,9 @@ See the docs for more information: https://generaltranslation.com/docs/react/tut
|
|
|
211
211
|
defaultValue: true,
|
|
212
212
|
})
|
|
213
213
|
: false;
|
|
214
|
+
if (isUsingGT && !usingCDN) {
|
|
215
|
+
(0, console_1.logMessage)(`To block translations from being published, please disable the project setting on the dashboard: ${chalk_1.default.cyan('https://dash.generaltranslation.com/settings/project')}`);
|
|
216
|
+
}
|
|
214
217
|
// Ask where the translations are stored
|
|
215
218
|
const translationsDir = isUsingGT && !usingCDN
|
|
216
219
|
? await (0, console_1.promptText)({
|
|
@@ -19,7 +19,7 @@ async function createInlineUpdates(options, pkg) {
|
|
|
19
19
|
// Use the provided app directory or default to the current directory
|
|
20
20
|
const srcDirectory = options.src || ['./'];
|
|
21
21
|
// Define the file extensions to look for
|
|
22
|
-
const extensions = ['.js', '.jsx', '.tsx'];
|
|
22
|
+
const extensions = ['.js', '.jsx', '.tsx', '.ts'];
|
|
23
23
|
/**
|
|
24
24
|
* Recursively scan the directory and collect all files with the specified extensions,
|
|
25
25
|
* excluding files or directories that start with a dot (.)
|