Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mololab
GitHub Repository: mololab/json-translator
Path: blob/master/src/utils/micro.ts
235 views
1
import * as packageJSON from '../../package.json';
2
3
export function translationStatistic(
4
totalTranslated: number,
5
totalTranslation: number,
6
skipInCache: number
7
): string {
8
return `${totalTranslated} of ${totalTranslation} translated. In cache: ${skipInCache}`;
9
}
10
11
export const current_version = packageJSON.version;
12
export const default_value = '--';
13
export const translation_value_limit = 5000;
14
export const default_concurrency_limit = 3;
15
export const fallbacks = {
16
yes: true,
17
no: false,
18
};
19
export const cacheEnableds = {
20
yes: true,
21
no: false,
22
};
23
export const default_fallback = fallbacks.no;
24
25