@jupyterlab/translation
Advanced tools
Comparing version 3.1.6 to 3.1.7
@@ -20,6 +20,44 @@ import { DataConnector, IDataConnector } from '@jupyterlab/statedb'; | ||
} | ||
/** | ||
* Bundle of gettext-based translation functions. | ||
* | ||
* The calls to the functions in this bundle will be automatically | ||
* extracted by `jupyterlab-translate` package to generate translation | ||
* template files if the bundle is assigned to: | ||
* - variable named `trans`, | ||
* - public attribute named `trans` (`this.trans`), | ||
* - private attribute named `trans` (`this._trans`), | ||
* - `trans` attribute `props` variable (`props.trans`), | ||
* - `trans` attribute `props` attribute (`this.props.trans`) | ||
*/ | ||
export declare type TranslationBundle = { | ||
/** | ||
* Alias for `gettext` (translate strings without number inflection) | ||
* @param msgid message (text to translate) | ||
* @param args | ||
*/ | ||
__(msgid: string, ...args: any[]): string; | ||
/** | ||
* Alias for `ngettext` (translate accounting for plural forms) | ||
* @param msgid message for singular | ||
* @param msgid_plural message for plural | ||
* @param n determines which plural form to use | ||
* @param args | ||
*/ | ||
_n(msgid: string, msgid_plural: string, n: number, ...args: any[]): string; | ||
/** | ||
* Alias for `pgettext` (translate in given context) | ||
* @param msgctxt context | ||
* @param msgid message (text to translate) | ||
* @param args | ||
*/ | ||
_p(msgctxt: string, msgid: string, ...args: any[]): string; | ||
/** | ||
* Alias for `npgettext` (translate accounting for plural forms in given context) | ||
* @param msgctxt context | ||
* @param msgid message for singular | ||
* @param msgid_plural message for plural | ||
* @param n number used to determine which plural form to use | ||
* @param args | ||
*/ | ||
_np(msgctxt: string, msgid: string, msgid_plural: string, n: number, ...args: any[]): string; | ||
@@ -26,0 +64,0 @@ gettext(msgid: string, ...args: any[]): string; |
{ | ||
"name": "@jupyterlab/translation", | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"description": "JupyterLab - Translation services", | ||
@@ -35,3 +35,2 @@ "keywords": [ | ||
"eslint:check": "eslint . --ext .ts,.tsx", | ||
"prepublishOnly": "npm run build", | ||
"test": "jest", | ||
@@ -44,9 +43,9 @@ "test:cov": "jest --collect-coverage", | ||
"dependencies": { | ||
"@jupyterlab/coreutils": "^5.1.6", | ||
"@jupyterlab/services": "^6.1.6", | ||
"@jupyterlab/statedb": "^3.1.6", | ||
"@jupyterlab/coreutils": "^5.1.7", | ||
"@jupyterlab/services": "^6.1.7", | ||
"@jupyterlab/statedb": "^3.1.7", | ||
"@lumino/coreutils": "^1.5.3" | ||
}, | ||
"devDependencies": { | ||
"@jupyterlab/testutils": "^3.1.6", | ||
"@jupyterlab/testutils": "^3.1.7", | ||
"@types/jest": "^26.0.10", | ||
@@ -60,3 +59,3 @@ "jest": "^26.4.2", | ||
}, | ||
"gitHead": "b095caf52936d631e254f1a6a7f031e8c140c9f7" | ||
"gitHead": "6a080862fa1c166826bee641f3b0eacaa4b1b551" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56996
1109
Updated@jupyterlab/coreutils@^5.1.7
Updated@jupyterlab/services@^6.1.7
Updated@jupyterlab/statedb@^3.1.7