@coorpacademy/components 11.34.1 → 11.34.2
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/es/atom/button-link-icon/index.js +1 -1
- package/es/atom/button-link-icon/index.js.map +1 -1
- package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/index.js +24 -9
- package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/es/molecule/bullet-point-menu-button/types.d.ts +1 -1
- package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/types.js.map +1 -1
- package/es/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/es/molecule/progress-wrapper/index.js +10 -5
- package/es/molecule/progress-wrapper/index.js.map +1 -1
- package/es/template/certification-detail/index.js +3 -2
- package/es/template/certification-detail/index.js.map +1 -1
- package/lib/atom/button-link-icon/index.js +1 -1
- package/lib/atom/button-link-icon/index.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.js +23 -8
- package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/types.d.ts +1 -1
- package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/types.js.map +1 -1
- package/lib/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/progress-wrapper/index.js +10 -5
- package/lib/molecule/progress-wrapper/index.js.map +1 -1
- package/lib/template/certification-detail/index.js +3 -2
- package/lib/template/certification-detail/index.js.map +1 -1
- package/locales/bs/global.json +13 -11
- package/locales/cs/global.json +13 -11
- package/locales/de/global.json +13 -11
- package/locales/en/global.json +8 -6
- package/locales/es/global.json +13 -11
- package/locales/et/global.json +13 -11
- package/locales/fi/global.json +13 -11
- package/locales/fr/global.json +8 -6
- package/locales/hr/global.json +13 -11
- package/locales/hu/global.json +13 -11
- package/locales/hy/global.json +13 -11
- package/locales/it/global.json +13 -11
- package/locales/ja/global.json +13 -11
- package/locales/ko/global.json +13 -11
- package/locales/nl/global.json +13 -11
- package/locales/pl/global.json +13 -11
- package/locales/pt/global.json +13 -11
- package/locales/ro/global.json +13 -11
- package/locales/ru/global.json +13 -11
- package/locales/sk/global.json +13 -11
- package/locales/sl/global.json +13 -11
- package/locales/sv/global.json +13 -11
- package/locales/tl/global.json +13 -11
- package/locales/tr/global.json +13 -11
- package/locales/uk/global.json +13 -11
- package/locales/vi/global.json +13 -11
- package/locales/zh/global.json +13 -11
- package/locales/zh_TW/global.json +13 -11
- package/package.json +2 -2
|
@@ -123,7 +123,10 @@ const ProgressWrapper = ({
|
|
|
123
123
|
const {
|
|
124
124
|
translate
|
|
125
125
|
} = context;
|
|
126
|
-
const mandatoryCompletedModulesLocale = translate('modules_completed_mandatory'
|
|
126
|
+
const mandatoryCompletedModulesLocale = translate('modules_completed_mandatory', {
|
|
127
|
+
total: mandatoryModules,
|
|
128
|
+
count: completedModules > mandatoryModules ? mandatoryModules : completedModules
|
|
129
|
+
});
|
|
127
130
|
const isLocked = progression !== 100;
|
|
128
131
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
129
132
|
className: _style.default.container,
|
|
@@ -140,10 +143,12 @@ const ProgressWrapper = ({
|
|
|
140
143
|
className: _style.default.statscontainer
|
|
141
144
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
142
145
|
className: _style.default.stats
|
|
143
|
-
}, /*#__PURE__*/_react.default.createElement("div",
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
147
|
+
// eslint-disable-next-line react/no-danger
|
|
148
|
+
dangerouslySetInnerHTML: {
|
|
149
|
+
__html: mandatoryCompletedModulesLocale
|
|
150
|
+
}
|
|
151
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
147
152
|
className: _style.default.progression
|
|
148
153
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
149
154
|
className: _style.default.statsNumber,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_cssColorFunction","_title","_progressBar","_colors","_tag","_buttonLink","_icon","_provider","_interopRequireWildcard","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","uncappedMap","_map2","convert","cap","DetailSection","index","type","isLocked","downloadUrl","stars","context","translate","skin","GetSkinFromContext","primarySkinColor","_get2","isTypeStars","downloadButtonProps","label","link","target","href","customStyle","backgroundColor","color","width","transition","hoverBackgroundColor","hoverColor","COLORS","white","icon","position","faIcon","name","size","padding","disabled","LockedTag","createElement","iconName","iconColor","cm_grey_500","preset","className","style","detailsInfo","detailsInfoText","detailsTitle","img","src","buttonContainer","ProgressWrapper","completedModules","mandatoryModules","title","subtitle","progression","sections","mandatoryCompletedModulesLocale","container","titleContainer","titleSize","statscontainer","stats","statsNumber","customProgressBar","positive","displayInfo","value","max","statsProgressionMobile","_isEmpty2","details","section","key","commonDetailSectionPropTypes","process","env","NODE_ENV","PropTypes","oneOf","string","number","contextTypes","Provider","childContextTypes","propTypes","bool","arrayOf","shape","_default","exports"],"sources":["../../../src/molecule/progress-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {convert} from 'css-color-function';\nimport {isEmpty, map, get} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Icon from '../../atom/icon';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst uncappedMap = map.convert({cap: false});\n\nconst DetailSection = ({index, type, isLocked, downloadUrl, stars}, context) => {\n const {translate} = context;\n const skin = GetSkinFromContext(context);\n const primarySkinColor = get('common.primary', skin);\n const isTypeStars = type === 'stars';\n\n const downloadButtonProps = {\n label: translate('download'),\n link: {\n target: '_blank',\n href: downloadUrl\n },\n 'data-name': `download-${type}-button`,\n 'aria-label': `download ${type} button`,\n customStyle: {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`),\n color: primarySkinColor,\n width: 'auto',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n hoverBackgroundColor: primarySkinColor,\n hoverColor: COLORS.white,\n icon: {\n position: 'left',\n faIcon: {\n name: 'download',\n color: primarySkinColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n disabled: isLocked\n };\n\n const LockedTag = (\n <Tag\n label={translate('locked')}\n size=\"S\"\n icon={{\n position: 'left',\n iconName: 'lock',\n iconColor: COLORS.cm_grey_500,\n preset: 's',\n customStyle: {padding: 0}\n }}\n />\n );\n\n return isTypeStars ? (\n <div\n className={style[`detailsSection${index}`]}\n data-name={type}\n aria-label={`${type} informations`}\n >\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>{translate('bonus_stars')}</span>\n {isLocked ? LockedTag : null}\n </div>\n <div className={style.stars}>\n <Icon iconName=\"star\" iconColor=\"#FFCE0A\" backgroundColor=\"#FFF9D1\" preset=\"xl\" />\n <span>{stars}</span>\n </div>\n </div>\n </div>\n ) : (\n <div\n className={style[`detailsSection${index}`]}\n data-name={type}\n aria-label={`${type} informations`}\n >\n <img\n className={style.img}\n src={\n type === 'badge'\n ? downloadUrl\n : 'https://s3.eu-west-1.amazonaws.com/static.coorpacademy.com/assets/images/diploma.svg'\n }\n />\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>\n {type === 'diploma' ? translate('diploma') : translate('badge')}\n </span>\n {isLocked ? LockedTag : null}\n </div>\n\n <div className={style.buttonContainer}>\n <ButtonLink {...downloadButtonProps} />\n </div>\n </div>\n </div>\n );\n};\n\nconst ProgressWrapper = (\n {completedModules, mandatoryModules, title, subtitle, progression, sections},\n context\n) => {\n const {translate} = context;\n const mandatoryCompletedModulesLocale = translate('modules_completed_mandatory');\n const isLocked = progression !== 100;\n\n return (\n <div\n className={style.container}\n data-name=\"prgress-wrapper\"\n aria-label=\"progress wrapper section\"\n >\n <div className={style.titleContainer}>\n <Title type=\"form-group\" titleSize=\"medium\" title={title} subtitle={subtitle} />\n </div>\n <div className={style.statscontainer}>\n <div className={style.stats}>\n <div>\n <span className={style.statsNumber} data-name=\"progress-stats\">\n {`${\n completedModules > mandatoryModules ? mandatoryModules : completedModules\n } / ${mandatoryModules}`}\n </span>\n {mandatoryCompletedModulesLocale}\n </div>\n </div>\n <div className={style.progression}>\n <span className={style.statsNumber} data-name=\"progress-value\">\n {progression}%\n </span>\n </div>\n </div>\n <ProgressBar\n className={style.customProgressBar}\n style={{backgroundColor: COLORS.positive}}\n displayInfo={false}\n value={progression}\n max={100}\n />\n <div className={style.statsProgressionMobile}>\n <span className={style.statsNumber}>{progression}%</span>\n </div>\n\n {isEmpty(sections) ? null : (\n <div className={style.details}>\n {uncappedMap(\n (section, index) => (\n <DetailSection\n {...section}\n isLocked={isLocked}\n key={`${section.type}-${index}`}\n index={index}\n />\n ),\n sections\n )}\n </div>\n )}\n </div>\n );\n};\n\nconst commonDetailSectionPropTypes = {\n type: PropTypes.oneOf(['diploma', 'badge', 'stars']),\n downloadUrl: PropTypes.string,\n stars: PropTypes.number\n};\n\nDetailSection.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nDetailSection.propTypes = {\n index: PropTypes.number,\n isLocked: PropTypes.bool,\n ...commonDetailSectionPropTypes\n};\n\nProgressWrapper.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nProgressWrapper.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n completedModules: PropTypes.number,\n mandatoryModules: Prop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Q,EAAEwB,kBAAS,CAACE,MAAM;EAC1B7B,gBAAgB,EAAE2B,kBAAS,CAACG,MAAM;EAClC7B,gBAAgB,EAAE0B,kBAAS,CAACG,MAAM;EAClC1B,WAAW,EAAEuB,kBAAS,CAACG,MAAM;EAC7BzB,QAAQ,EAAEsB,kBAAS,CAACS,OAAO,CAACT,kBAAS,CAACU,KAAK,CAACd,4BAA4B,CAAC;AAC3E,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,CAAAhH,OAAA,GAEawE,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_cssColorFunction","_title","_progressBar","_colors","_tag","_buttonLink","_icon","_provider","_interopRequireWildcard","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","uncappedMap","_map2","convert","cap","DetailSection","index","type","isLocked","downloadUrl","stars","context","translate","skin","GetSkinFromContext","primarySkinColor","_get2","isTypeStars","downloadButtonProps","label","link","target","href","customStyle","backgroundColor","color","width","transition","hoverBackgroundColor","hoverColor","COLORS","white","icon","position","faIcon","name","size","padding","disabled","LockedTag","createElement","iconName","iconColor","cm_grey_500","preset","className","style","detailsInfo","detailsInfoText","detailsTitle","img","src","buttonContainer","ProgressWrapper","completedModules","mandatoryModules","title","subtitle","progression","sections","mandatoryCompletedModulesLocale","total","count","container","titleContainer","titleSize","statscontainer","stats","dangerouslySetInnerHTML","__html","statsNumber","customProgressBar","positive","displayInfo","value","max","statsProgressionMobile","_isEmpty2","details","section","key","commonDetailSectionPropTypes","process","env","NODE_ENV","PropTypes","oneOf","string","number","contextTypes","Provider","childContextTypes","propTypes","bool","arrayOf","shape","_default","exports"],"sources":["../../../src/molecule/progress-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {convert} from 'css-color-function';\nimport {isEmpty, map, get} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Icon from '../../atom/icon';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst uncappedMap = map.convert({cap: false});\n\nconst DetailSection = ({index, type, isLocked, downloadUrl, stars}, context) => {\n const {translate} = context;\n const skin = GetSkinFromContext(context);\n const primarySkinColor = get('common.primary', skin);\n const isTypeStars = type === 'stars';\n\n const downloadButtonProps = {\n label: translate('download'),\n link: {\n target: '_blank',\n href: downloadUrl\n },\n 'data-name': `download-${type}-button`,\n 'aria-label': `download ${type} button`,\n customStyle: {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`),\n color: primarySkinColor,\n width: 'auto',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n hoverBackgroundColor: primarySkinColor,\n hoverColor: COLORS.white,\n icon: {\n position: 'left',\n faIcon: {\n name: 'download',\n color: primarySkinColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n disabled: isLocked\n };\n\n const LockedTag = (\n <Tag\n label={translate('locked')}\n size=\"S\"\n icon={{\n position: 'left',\n iconName: 'lock',\n iconColor: COLORS.cm_grey_500,\n preset: 's',\n customStyle: {padding: 0}\n }}\n />\n );\n\n return isTypeStars ? (\n <div\n className={style[`detailsSection${index}`]}\n data-name={type}\n aria-label={`${type} informations`}\n >\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>{translate('bonus_stars')}</span>\n {isLocked ? LockedTag : null}\n </div>\n <div className={style.stars}>\n <Icon iconName=\"star\" iconColor=\"#FFCE0A\" backgroundColor=\"#FFF9D1\" preset=\"xl\" />\n <span>{stars}</span>\n </div>\n </div>\n </div>\n ) : (\n <div\n className={style[`detailsSection${index}`]}\n data-name={type}\n aria-label={`${type} informations`}\n >\n <img\n className={style.img}\n src={\n type === 'badge'\n ? downloadUrl\n : 'https://s3.eu-west-1.amazonaws.com/static.coorpacademy.com/assets/images/diploma.svg'\n }\n />\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>\n {type === 'diploma' ? translate('diploma') : translate('badge')}\n </span>\n {isLocked ? LockedTag : null}\n </div>\n\n <div className={style.buttonContainer}>\n <ButtonLink {...downloadButtonProps} />\n </div>\n </div>\n </div>\n );\n};\n\nconst ProgressWrapper = (\n {completedModules, mandatoryModules, title, subtitle, progression, sections},\n context\n) => {\n const {translate} = context;\n const mandatoryCompletedModulesLocale = translate('modules_completed_mandatory', {\n total: mandatoryModules,\n count: completedModules > mandatoryModules ? mandatoryModules : completedModules\n });\n const isLocked = progression !== 100;\n\n return (\n <div\n className={style.container}\n data-name=\"prgress-wrapper\"\n aria-label=\"progress wrapper section\"\n >\n <div className={style.titleContainer}>\n <Title type=\"form-group\" titleSize=\"medium\" title={title} subtitle={subtitle} />\n </div>\n <div className={style.statscontainer}>\n <div className={style.stats}>\n <div\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: mandatoryCompletedModulesLocale}}\n />\n </div>\n <div className={style.progression}>\n <span className={style.statsNumber} data-name=\"progress-value\">\n {progression}%\n </span>\n </div>\n </div>\n <ProgressBar\n className={style.customProgressBar}\n style={{backgroundColor: COLORS.positive}}\n displayInfo={false}\n value={progression}\n max={100}\n />\n <div className={style.statsProgressionMobile}>\n <span className={style.statsNumber}>{progression}%</span>\n </div>\n\n {isEmpty(sections) ? null : (\n <div className={style.details}>\n {uncappedMap(\n (section, index) => (\n <DetailSection\n {...section}\n isLocked={isLocked}\n key={`${section.type}-${index}`}\n index={index}\n />\n ),\n sections\n )}\n </div>\n )}\n </div>\n );\n};\n\nconst commonDetailSectionPropTypes = {\n type: PropTypes.oneOf(['diploma', 'badge', 'stars']),\n downloadUrl: PropTypes.string,\n stars: PropTypes.number\n};\n\nDetailSection.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nDetailSection.propTypes = {\n index: PropTypes.number,\n isLocked: PropTypes.bool,\n ...commonDetailSectionPropTypes\n};\n\nProgressWrapper.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nProgressWrapper.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n completedModules: PropTypes.number,\n mandatoryModules: PropTypes.number,\n progression: PropTypes.number,\n sections: PropTypes.arrayOf(PropTypes.shape(commonDetailSectionPropTypes))\n};\n\nexport default ProgressWrapper;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,IAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,WAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,KAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,SAAA,GAAAC,uBAAA,CAAAV,OAAA;AAEA,IAAAW,MAAA,GAAAZ,sBAAA,CAAAC,OAAA;AAAgC,SAAAY,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,E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,IAAI;EACxB,GAAGZ;AACL,CAAC;AAED5B,eAAe,CAACoC,YAAY,GAAG;EAC7B7E,SAAS,EAAE8E,iBAAQ,CAACC,iBAAiB,CAAC/E;AACxC,CAAC;AAEDyC,eAAe,CAACuC,SAAS,GAAAV,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EAC1B5B,KAAK,EAAE6B,kBAAS,CAACE,MAAM;EACvB9B,QAAQ,EAAE4B,kBAAS,CAACE,MAAM;EAC1BjC,gBAAgB,EAAE+B,kBAAS,CAACG,MAAM;EAClCjC,gBAAgB,EAAE8B,kBAAS,CAACG,MAAM;EAClC9B,WAAW,EAAE2B,kBAAS,CAACG,MAAM;EAC7B7B,QAAQ,EAAE0B,kBAAS,CAACS,OAAO,CAACT,kBAAS,CAACU,KAAK,CAACd,4BAA4B,CAAC;AAC3E,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,CAAApH,OAAA,GAEawE,eAAe","ignoreList":[]}
|
|
@@ -4,7 +4,6 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
var _isNil2 = _interopRequireDefault(require("lodash/fp/isNil"));
|
|
6
6
|
var _round2 = _interopRequireDefault(require("lodash/fp/round"));
|
|
7
|
-
var _lowerCase2 = _interopRequireDefault(require("lodash/fp/lowerCase"));
|
|
8
7
|
var _compact2 = _interopRequireDefault(require("lodash/fp/compact"));
|
|
9
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -103,7 +102,9 @@ const CertificationDetail = (props, context) => {
|
|
|
103
102
|
}
|
|
104
103
|
})) : null) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
105
104
|
className: _style.default.contentStats
|
|
106
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, `${
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, `${translate('modules', {
|
|
106
|
+
count: totalModules
|
|
107
|
+
})}`)), /*#__PURE__*/_react.default.createElement(_skillDetail.ContinueLearningButton, {
|
|
107
108
|
ongoingCoursesAvailable: ongoingCoursesAvailable,
|
|
108
109
|
onClick: onContinueLearningClick
|
|
109
110
|
}))), /*#__PURE__*/_react.default.createElement(_progressWrapper.default, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_markdownToJsx","_provider","_tag","_select","_buttonLinkIcon","_icon","_cardsGrid","_allCourses","_skillDetail","_progressWrapper","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CertificationDetail","props","context","certificationRef","title","tag","description","certificationCourses","ongoingCoursesAvailable","filters","onBackClick","onContinueLearningClick","metrics","logoUrl","diplomaUrl","badgeUrl","search","descriptionRef","useRef","translate","progression","mandatoryModules","stars","totalModules","isDescriptionTruncated","setIsDescriptionTruncated","useState","showMore","setShowMore","handleShowMore","useCallback","useEffect","current","clientHeight","scrollHeight","Description","createElement","ref","className","classnames","style","truncate","completedModules","useMemo","_round2","backgroundContainer","container","_isNil2","faIcon","onClick","backButton","tooltipPlacement","ctaContainer","logoContainer","logo","src","label","Fragment","showMoreWrapper","iconName","size","faSize","wrapperSize","contentStats","_lowerCase2","ContinueLearningButton","subtitle","sections","_compact2","type","downloadUrl","content","contextTypes","skin","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","string","isRequired","shape","number","bool","CardsGrid","onChange","func","options","arrayOf","SelectOptionPropTypes","oldValue","_default","exports"],"sources":["../../../src/template/certification-detail/index.js"],"sourcesContent":["import React, {useCallback, useEffect, useRef, useState, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, lowerCase, round, isNil} from 'lodash/fp';\nimport Markdown from 'markdown-to-jsx';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Icon from '../../atom/icon';\nimport CardsGrid from '../../organism/cards-grid';\nimport AllCourses from '../skill-detail/all-courses';\nimport {ContinueLearningButton} from '../skill-detail';\nimport ProgressWrapper from '../../molecule/progress-wrapper';\nimport style from './style.css';\n\nconst CertificationDetail = (props, context) => {\n const {\n certificationRef,\n title,\n tag,\n description,\n certificationCourses,\n ongoingCoursesAvailable,\n filters,\n onBackClick,\n onContinueLearningClick,\n metrics,\n logoUrl,\n diplomaUrl,\n badgeUrl,\n search\n } = props;\n const descriptionRef = useRef(null);\n const {translate} = context;\n\n const {progression, mandatoryModules, stars, totalModules} = metrics;\n\n const [isDescriptionTruncated, setIsDescriptionTruncated] = useState(false);\n const [showMore, setShowMore] = useState(false);\n\n const handleShowMore = useCallback(() => setShowMore(!showMore), [setShowMore, showMore]);\n\n useEffect(() => {\n if (descriptionRef.current) {\n const {clientHeight = 0, scrollHeight = 0} = descriptionRef.current;\n setIsDescriptionTruncated(scrollHeight > clientHeight);\n }\n }, [description]);\n\n const Description = useCallback(() => {\n return (\n <div\n ref={descriptionRef}\n className={classnames(style.description, !showMore && style.truncate)}\n >\n <Markdown>{description}</Markdown>\n </div>\n );\n }, [showMore, description]);\n\n const completedModules = useMemo(\n () => round((mandatoryModules * progression) / 100),\n [mandatoryModules, progression]\n );\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={certificationRef}>\n {!isNil(onBackClick) ? (\n <ButtonLinkIcon\n faIcon=\"arrow-left\"\n data-name=\"back-button\"\n aria-label={translate('back')}\n onClick={onBackClick}\n className={style.backButton}\n tooltipPlacement=\"right\"\n />\n ) : null}\n <div className={style.ctaContainer}>\n <div className={style.logoContainer}>\n <img className={style.logo} src={logoUrl} />\n </div>\n <div>\n <Tag label={tag} />\n <div className={style.title}>{title}</div>\n {description ? (\n <>\n <Description />\n {isDescriptionTruncated ? (\n <div className={style.showMoreWrapper} onClick={handleShowMore}>\n {translate(showMore ? 'Show less' : 'Show more')}\n <Icon\n iconName={showMore ? 'chevron-up' : 'chevron-down'}\n size={{faSize: 14, wrapperSize: 16}}\n />\n </div>\n ) : null}\n </>\n ) : null}\n <div className={style.contentStats}>\n <span>{`${totalModules} ${lowerCase(translate('modules'))}`}</span>\n </div>\n <ContinueLearningButton\n ongoingCoursesAvailable={ongoingCoursesAvailable}\n onClick={onContinueLearningClick}\n />\n </div>\n </div>\n <ProgressWrapper\n title={translate('your_progress')}\n subtitle={translate('certification_progress_wrapper_subtitle')}\n progression={progression}\n completedModules={completedModules}\n mandatoryModules={mandatoryModules}\n sections={compact([\n diplomaUrl && {\n type: 'diploma',\n downloadUrl: diplomaUrl\n },\n badgeUrl && {\n type: 'badge',\n downloadUrl: badgeUrl\n },\n stars && {\n type: 'stars',\n stars\n }\n ])}\n />\n <AllCourses\n content={certificationCourses}\n filters={filters}\n data-name=\"certification-courses\"\n search={search}\n />\n </div>\n </div>\n );\n};\n\nCertificationDetail.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nCertificationDetail.propTypes = {\n title: PropTypes.string.isRequired,\n tag: PropTypes.string,\n certificationRef: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n logoUrl: PropTypes.string,\n metrics: PropTypes.shape({\n progression: PropTypes.number,\n stars: PropTypes.number,\n mandatoryModules: PropTypes.number,\n totalModules: PropTypes.number\n }),\n diplomaUrl: PropTypes.string,\n badgeUrl: PropTypes.string,\n ongoingCoursesAvailable: PropTypes.bool,\n certificationCourses: PropTypes.shape(CardsGrid.propTypes),\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n onBackClick: PropTypes.func,\n onContinueLearningClick: PropTypes.func,\n search: PropTypes.shape({\n oldValue: PropTypes.string,\n onChange: PropTypes.func\n })\n};\n\nexport default CertificationDetail;\n"],"mappings":";;;;;;;;AAAA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,CAACQ,IAAI;EAC3B7E,uBAAuB,EAAEqE,kBAAS,CAACQ,IAAI;EACvCxE,MAAM,EAAEgE,kBAAS,CAACG,KAAK,CAAC;IACtBS,QAAQ,EAAEZ,kBAAS,CAACC,MAAM;IAC1BM,QAAQ,EAAEP,kBAAS,CAACQ;EACtB,CAAC;AACH,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAA5G,OAAA,GAEac,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_markdownToJsx","_provider","_tag","_select","_buttonLinkIcon","_icon","_cardsGrid","_allCourses","_skillDetail","_progressWrapper","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CertificationDetail","props","context","certificationRef","title","tag","description","certificationCourses","ongoingCoursesAvailable","filters","onBackClick","onContinueLearningClick","metrics","logoUrl","diplomaUrl","badgeUrl","search","descriptionRef","useRef","translate","progression","mandatoryModules","stars","totalModules","isDescriptionTruncated","setIsDescriptionTruncated","useState","showMore","setShowMore","handleShowMore","useCallback","useEffect","current","clientHeight","scrollHeight","Description","createElement","ref","className","classnames","style","truncate","completedModules","useMemo","_round2","backgroundContainer","container","_isNil2","faIcon","onClick","backButton","tooltipPlacement","ctaContainer","logoContainer","logo","src","label","Fragment","showMoreWrapper","iconName","size","faSize","wrapperSize","contentStats","count","ContinueLearningButton","subtitle","sections","_compact2","type","downloadUrl","content","contextTypes","skin","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","string","isRequired","shape","number","bool","CardsGrid","onChange","func","options","arrayOf","SelectOptionPropTypes","oldValue","_default","exports"],"sources":["../../../src/template/certification-detail/index.js"],"sourcesContent":["import React, {useCallback, useEffect, useRef, useState, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, round, isNil} from 'lodash/fp';\nimport Markdown from 'markdown-to-jsx';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Icon from '../../atom/icon';\nimport CardsGrid from '../../organism/cards-grid';\nimport AllCourses from '../skill-detail/all-courses';\nimport {ContinueLearningButton} from '../skill-detail';\nimport ProgressWrapper from '../../molecule/progress-wrapper';\nimport style from './style.css';\n\nconst CertificationDetail = (props, context) => {\n const {\n certificationRef,\n title,\n tag,\n description,\n certificationCourses,\n ongoingCoursesAvailable,\n filters,\n onBackClick,\n onContinueLearningClick,\n metrics,\n logoUrl,\n diplomaUrl,\n badgeUrl,\n search\n } = props;\n const descriptionRef = useRef(null);\n const {translate} = context;\n\n const {progression, mandatoryModules, stars, totalModules} = metrics;\n\n const [isDescriptionTruncated, setIsDescriptionTruncated] = useState(false);\n const [showMore, setShowMore] = useState(false);\n\n const handleShowMore = useCallback(() => setShowMore(!showMore), [setShowMore, showMore]);\n\n useEffect(() => {\n if (descriptionRef.current) {\n const {clientHeight = 0, scrollHeight = 0} = descriptionRef.current;\n setIsDescriptionTruncated(scrollHeight > clientHeight);\n }\n }, [description]);\n\n const Description = useCallback(() => {\n return (\n <div\n ref={descriptionRef}\n className={classnames(style.description, !showMore && style.truncate)}\n >\n <Markdown>{description}</Markdown>\n </div>\n );\n }, [showMore, description]);\n\n const completedModules = useMemo(\n () => round((mandatoryModules * progression) / 100),\n [mandatoryModules, progression]\n );\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={certificationRef}>\n {!isNil(onBackClick) ? (\n <ButtonLinkIcon\n faIcon=\"arrow-left\"\n data-name=\"back-button\"\n aria-label={translate('back')}\n onClick={onBackClick}\n className={style.backButton}\n tooltipPlacement=\"right\"\n />\n ) : null}\n <div className={style.ctaContainer}>\n <div className={style.logoContainer}>\n <img className={style.logo} src={logoUrl} />\n </div>\n <div>\n <Tag label={tag} />\n <div className={style.title}>{title}</div>\n {description ? (\n <>\n <Description />\n {isDescriptionTruncated ? (\n <div className={style.showMoreWrapper} onClick={handleShowMore}>\n {translate(showMore ? 'Show less' : 'Show more')}\n <Icon\n iconName={showMore ? 'chevron-up' : 'chevron-down'}\n size={{faSize: 14, wrapperSize: 16}}\n />\n </div>\n ) : null}\n </>\n ) : null}\n <div className={style.contentStats}>\n <span>{`${translate('modules', {count: totalModules})}`}</span>\n </div>\n <ContinueLearningButton\n ongoingCoursesAvailable={ongoingCoursesAvailable}\n onClick={onContinueLearningClick}\n />\n </div>\n </div>\n <ProgressWrapper\n title={translate('your_progress')}\n subtitle={translate('certification_progress_wrapper_subtitle')}\n progression={progression}\n completedModules={completedModules}\n mandatoryModules={mandatoryModules}\n sections={compact([\n diplomaUrl && {\n type: 'diploma',\n downloadUrl: diplomaUrl\n },\n badgeUrl && {\n type: 'badge',\n downloadUrl: badgeUrl\n },\n stars && {\n type: 'stars',\n stars\n }\n ])}\n />\n <AllCourses\n content={certificationCourses}\n filters={filters}\n data-name=\"certification-courses\"\n search={search}\n />\n </div>\n </div>\n );\n};\n\nCertificationDetail.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nCertificationDetail.propTypes = {\n title: PropTypes.string.isRequired,\n tag: PropTypes.string,\n certificationRef: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n logoUrl: PropTypes.string,\n metrics: PropTypes.shape({\n progression: PropTypes.number,\n stars: PropTypes.number,\n mandatoryModules: PropTypes.number,\n totalModules: PropTypes.number\n }),\n diplomaUrl: PropTypes.string,\n badgeUrl: PropTypes.string,\n ongoingCoursesAvailable: PropTypes.bool,\n certificationCourses: PropTypes.shape(CardsGrid.propTypes),\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n onBackClick: PropTypes.func,\n onContinueLearningClick: PropTypes.func,\n search: PropTypes.shape({\n oldValue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,6BAAqB,CAAC;EACnE,CAAC,CAAC;EACFjF,WAAW,EAAEsE,kBAAS,CAACQ,IAAI;EAC3B7E,uBAAuB,EAAEqE,kBAAS,CAACQ,IAAI;EACvCxE,MAAM,EAAEgE,kBAAS,CAACG,KAAK,CAAC;IACtBS,QAAQ,EAAEZ,kBAAS,CAACC,MAAM;IAC1BM,QAAQ,EAAEP,kBAAS,CAACQ;EACtB,CAAC;AACH,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAA5G,OAAA,GAEac,mBAAmB","ignoreList":[]}
|
package/locales/bs/global.json
CHANGED
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"locked": "Zaključano",
|
|
50
50
|
"icon_picker_title": "Promijeni ikonu",
|
|
51
51
|
"icon_picker_description": "Odaberite novu ikonu za svoju vještinu",
|
|
52
|
-
"icon_editor_color": "
|
|
53
|
-
"invalid_color": "
|
|
52
|
+
"icon_editor_color": "Boja ikone",
|
|
53
|
+
"invalid_color": "Nevažeća boja",
|
|
54
54
|
"translation_title": "Prevedi",
|
|
55
55
|
"translation_description": "Upravljajte prijevodima kako biste dosegli više učenika",
|
|
56
56
|
"skills_change_focus": "Promijenite fokus vještina",
|
|
57
57
|
"skills_choose_focus": "Odaberite fokus",
|
|
58
58
|
"cancel": "Otkaži",
|
|
59
|
-
"close": "
|
|
59
|
+
"close": "Zatvori",
|
|
60
60
|
"confirm": "Potvrdi",
|
|
61
61
|
"Delete": "Izbrisati",
|
|
62
62
|
"Draft": "Skica",
|
|
@@ -78,9 +78,10 @@
|
|
|
78
78
|
"learning_priorities_brand_description": "Definirajte prioritete učenja za svoju kompaniju pomoću vještina, lista za reprodukciju ili certifikata. Oni će se pojaviti na stranici Moje učenje.",
|
|
79
79
|
"media_stars_to_win_plural": "Osvoji {{count}} dodatnu zvijezdu u ovom poglavlju prvi put kad vidiš lekciju!",
|
|
80
80
|
"media_stars_to_win": "Osvoji {{count}} dodatnu zvijezdu u ovom poglavlju prvi put kad vidiš lekciju!",
|
|
81
|
-
"modules": "
|
|
82
|
-
"
|
|
83
|
-
"modules_completed_mandatory": "obavezni
|
|
81
|
+
"modules": "{{count}} modul",
|
|
82
|
+
"modules_plural": "{{count}} moduli",
|
|
83
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> obavezni modul završen",
|
|
84
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> obavezni moduli završeni",
|
|
84
85
|
"More": "Više",
|
|
85
86
|
"More details": "Više detalja",
|
|
86
87
|
"New media": "Nova lekcija",
|
|
@@ -113,8 +114,8 @@
|
|
|
113
114
|
"secured_payment": "Osiguraj server",
|
|
114
115
|
"start_learning": "Počni učiti",
|
|
115
116
|
"sort_by": "Poredaj po:",
|
|
116
|
-
"clear": "
|
|
117
|
-
"clear_all": "
|
|
117
|
+
"clear": "Jasno",
|
|
118
|
+
"clear_all": "Obriši sve",
|
|
118
119
|
"See clue": "Vidi trag",
|
|
119
120
|
"See less": "Vidi manje",
|
|
120
121
|
"See lesson": "Pogledajte lekciju",
|
|
@@ -215,9 +216,10 @@
|
|
|
215
216
|
"badge": "Dodatne informacije o vašem certifikatu"
|
|
216
217
|
},
|
|
217
218
|
"css": {
|
|
218
|
-
"modules": "
|
|
219
|
-
"
|
|
220
|
-
"modules_completed_mandatory": "obavezni
|
|
219
|
+
"modules": "{{count}} nivo",
|
|
220
|
+
"modules_plural": "{{count}} nivoa",
|
|
221
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> obavezni nivo završen",
|
|
222
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> obavezni nivoi završeni",
|
|
221
223
|
"certification_module": "nivo koji treba završiti"
|
|
222
224
|
}
|
|
223
225
|
}
|
package/locales/cs/global.json
CHANGED
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"locked": "Uzamčeno",
|
|
50
50
|
"icon_picker_title": "Ikona změny",
|
|
51
51
|
"icon_picker_description": "Vyberte novou ikonu pro svou dovednost",
|
|
52
|
-
"icon_editor_color": "
|
|
53
|
-
"invalid_color": "
|
|
52
|
+
"icon_editor_color": "Barva ikony",
|
|
53
|
+
"invalid_color": "Neplatná barva",
|
|
54
54
|
"translation_title": "Přeložit",
|
|
55
55
|
"translation_description": "Spravujte překlady, abyste oslovili více studentů",
|
|
56
56
|
"skills_change_focus": "Změnit zaměření dovednosti",
|
|
57
57
|
"skills_choose_focus": "Vyberte své zaměření",
|
|
58
58
|
"cancel": "Zrušit",
|
|
59
|
-
"close": "
|
|
59
|
+
"close": "Blízko",
|
|
60
60
|
"confirm": "Potvrdit",
|
|
61
61
|
"Delete": "Smazat",
|
|
62
62
|
"Draft": "Návrh",
|
|
@@ -78,9 +78,10 @@
|
|
|
78
78
|
"learning_priorities_brand_description": "Definujte pro svou společnost priority vzdělávání pomocí dovedností, seznamů skladeb nebo certifikací. Zobrazí se na stránce Moje učení.",
|
|
79
79
|
"media_stars_to_win_plural": "Získejte další hvězdy ({{count}}) v této kapitole při prvním zobrazení lekce!",
|
|
80
80
|
"media_stars_to_win": "Vyhrajte další hvězdu ({{count}}) v této kapitole při prvním zobrazení lekce!",
|
|
81
|
-
"modules": "
|
|
82
|
-
"
|
|
83
|
-
"modules_completed_mandatory": "
|
|
81
|
+
"modules": "{{count}} modul ",
|
|
82
|
+
"modules_plural": "{{count}} moduly",
|
|
83
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> povinný modul dokončen",
|
|
84
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> povinné moduly dokončeny",
|
|
84
85
|
"More": "Více",
|
|
85
86
|
"More details": "Více informací",
|
|
86
87
|
"New media": "Nová lekce",
|
|
@@ -113,8 +114,8 @@
|
|
|
113
114
|
"secured_payment": "Zabezpečený server",
|
|
114
115
|
"start_learning": "Začněte se učit",
|
|
115
116
|
"sort_by": "Seřazeno podle:",
|
|
116
|
-
"clear": "
|
|
117
|
-
"clear_all": "
|
|
117
|
+
"clear": "Jasný",
|
|
118
|
+
"clear_all": "Vymazat vše",
|
|
118
119
|
"See clue": "Zobrazit nápovědu",
|
|
119
120
|
"See less": "Zobrazit méně",
|
|
120
121
|
"See lesson": "Zobrazit lekci",
|
|
@@ -215,9 +216,10 @@
|
|
|
215
216
|
"badge": "Další informace o vašem certifikátu"
|
|
216
217
|
},
|
|
217
218
|
"css": {
|
|
218
|
-
"modules": "
|
|
219
|
-
"
|
|
220
|
-
"modules_completed_mandatory": "
|
|
219
|
+
"modules": "{{count}} úroveň ",
|
|
220
|
+
"modules_plural": " {{count}} úrovně",
|
|
221
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> povinná úroveň dokončena",
|
|
222
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> dokončeno povinné úrovně",
|
|
221
223
|
"certification_module": "úroveň dokončit"
|
|
222
224
|
}
|
|
223
225
|
}
|
package/locales/de/global.json
CHANGED
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"locked": "Gesperrt",
|
|
50
50
|
"icon_picker_title": "Symbol „Ändern“",
|
|
51
51
|
"icon_picker_description": "Wählen Sie ein neues Symbol für Ihre Fertigkeit",
|
|
52
|
-
"icon_editor_color": "
|
|
53
|
-
"invalid_color": "
|
|
52
|
+
"icon_editor_color": "Symbolfarbe",
|
|
53
|
+
"invalid_color": "Ungültige Farbe",
|
|
54
54
|
"translation_title": "Übersetzen",
|
|
55
55
|
"translation_description": "Verwalten Sie Übersetzungen, um mehr Lernende zu erreichen",
|
|
56
56
|
"skills_change_focus": "Fähigkeitsfokus ändern",
|
|
57
57
|
"skills_choose_focus": "Wählen Sie Ihren Fokus",
|
|
58
58
|
"cancel": "Abbrechen",
|
|
59
|
-
"close": "
|
|
59
|
+
"close": "Schließen",
|
|
60
60
|
"confirm": "Bestätigen",
|
|
61
61
|
"Delete": "Löschen",
|
|
62
62
|
"Draft": "Entwurf",
|
|
@@ -78,9 +78,10 @@
|
|
|
78
78
|
"learning_priorities_brand_description": "Definieren Sie Lernprioritäten für Ihr Unternehmen mit Fähigkeiten, Playlists oder Zertifizierungen. Diese werden auf der Seite „Mein Lernen“ angezeigt.",
|
|
79
79
|
"media_stars_to_win_plural": "Gewinnen Sie {{count}} zusätzliche Sterne in diesem Kapitel, wenn Sie die Lektion das erste Mal ansehen!",
|
|
80
80
|
"media_stars_to_win": "Gewinnen Sie {{count}} zusätzliche Sterne in diesem Kapitel, wenn Sie die Lektion das erste Mal ansehen!",
|
|
81
|
-
"modules": "
|
|
82
|
-
"
|
|
83
|
-
"modules_completed_mandatory": "
|
|
81
|
+
"modules": "{{count}} -Modul",
|
|
82
|
+
"modules_plural": "{{count}} Module",
|
|
83
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> Pflichtmodul abgeschlossen",
|
|
84
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> Pflichtmodule abgeschlossen",
|
|
84
85
|
"More": "Mehr",
|
|
85
86
|
"More details": "Mehr Details",
|
|
86
87
|
"New media": "Neue Lektion",
|
|
@@ -113,8 +114,8 @@
|
|
|
113
114
|
"secured_payment": "Sicherer Server",
|
|
114
115
|
"start_learning": "Beginne zu lernen",
|
|
115
116
|
"sort_by": "Sortiere nach:",
|
|
116
|
-
"clear": "
|
|
117
|
-
"clear_all": "
|
|
117
|
+
"clear": "Klar",
|
|
118
|
+
"clear_all": "Alle löschen",
|
|
118
119
|
"See clue": "Hinweis öffnen",
|
|
119
120
|
"See less": "Weniger anzeigen",
|
|
120
121
|
"See lesson": "Lektion anzeigen",
|
|
@@ -215,9 +216,10 @@
|
|
|
215
216
|
"badge": "Die zusätzlichen Informationen zu Ihrem Zertifikat"
|
|
216
217
|
},
|
|
217
218
|
"css": {
|
|
218
|
-
"modules": "
|
|
219
|
-
"
|
|
220
|
-
"modules_completed_mandatory": "
|
|
219
|
+
"modules": "{{count}} Ebene",
|
|
220
|
+
"modules_plural": "{{count}} Ebenen",
|
|
221
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> Pflichtlevel abgeschlossen",
|
|
222
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> obligatorische Level abgeschlossen",
|
|
221
223
|
"certification_module": "Level zum Abschließen"
|
|
222
224
|
}
|
|
223
225
|
}
|
package/locales/en/global.json
CHANGED
|
@@ -78,9 +78,10 @@
|
|
|
78
78
|
"learning_priorities_brand_description": "Define learning priorities for your company with skills, playlists or certifications. They will appear on the My Learning page.",
|
|
79
79
|
"media_stars_to_win_plural": "Win {{count}} additional stars in this chapter the first time you view a lesson!",
|
|
80
80
|
"media_stars_to_win": "Win {{count}} additional star in this chapter the first time you view a lesson!",
|
|
81
|
-
"modules": "
|
|
82
|
-
"
|
|
83
|
-
"modules_completed_mandatory": "mandatory
|
|
81
|
+
"modules": "{{count}} module",
|
|
82
|
+
"modules_plural": "{{count}} modules",
|
|
83
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}}/{{total}}</span> mandatory module completed",
|
|
84
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}}/{{total}}</span> mandatory modules completed",
|
|
84
85
|
"More": "More",
|
|
85
86
|
"More details": "More details",
|
|
86
87
|
"New media": "New lesson",
|
|
@@ -215,9 +216,10 @@
|
|
|
215
216
|
"badge": "Additional information about your certificate"
|
|
216
217
|
},
|
|
217
218
|
"css": {
|
|
218
|
-
"modules": "
|
|
219
|
-
"
|
|
220
|
-
"modules_completed_mandatory": "mandatory
|
|
219
|
+
"modules": "{{count}} level",
|
|
220
|
+
"modules_plural": "{{count}} levels",
|
|
221
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}}/{{total}}</span> mandatory level completed",
|
|
222
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}}/{{total}}</span> mandatory levels completed",
|
|
221
223
|
"certification_module": "level to complete"
|
|
222
224
|
}
|
|
223
225
|
}
|
package/locales/es/global.json
CHANGED
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"locked": "Bloqueado",
|
|
50
50
|
"icon_picker_title": "Cambiar icono",
|
|
51
51
|
"icon_picker_description": "Selecciona un nuevo icono para tu habilidad",
|
|
52
|
-
"icon_editor_color": "
|
|
53
|
-
"invalid_color": "
|
|
52
|
+
"icon_editor_color": "Color del icono",
|
|
53
|
+
"invalid_color": "Color no válido",
|
|
54
54
|
"translation_title": "Traducción",
|
|
55
55
|
"translation_description": "Gestione las traducciones para aumentar el número de alumnos",
|
|
56
56
|
"skills_change_focus": "Cambiar enfoque de habilidades",
|
|
57
57
|
"skills_choose_focus": "Elige el enfoque que te interese",
|
|
58
58
|
"cancel": "Cancelar",
|
|
59
|
-
"close": "
|
|
59
|
+
"close": "Cerca",
|
|
60
60
|
"confirm": "Confirmar",
|
|
61
61
|
"Delete": "Borrar",
|
|
62
62
|
"Draft": "Sequía",
|
|
@@ -78,9 +78,10 @@
|
|
|
78
78
|
"learning_priorities_brand_description": "Define las prioridades de aprendizaje de tu empresa con habilidades, listas de reproducción o certificaciones. Aparecerán en la página Mi aprendizaje.",
|
|
79
79
|
"media_stars_to_win_plural": "Gana {{count}} estrellas adicionales en este capítulo la primera vez que veas una lección.",
|
|
80
80
|
"media_stars_to_win": "Gana {{count}} estrellas adicionales en este capítulo la primera vez que veas una lección.",
|
|
81
|
-
"modules": "
|
|
82
|
-
"
|
|
83
|
-
"modules_completed_mandatory": "
|
|
81
|
+
"modules": "{{count}} módulo",
|
|
82
|
+
"modules_plural": "{{count}} módulos",
|
|
83
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> módulo obligatorio completado",
|
|
84
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> módulos obligatorios completados",
|
|
84
85
|
"More": "Más",
|
|
85
86
|
"More details": "Más detalles",
|
|
86
87
|
"New media": "Nueva lección",
|
|
@@ -113,8 +114,8 @@
|
|
|
113
114
|
"secured_payment": "Servidor seguro",
|
|
114
115
|
"start_learning": "Comienza a aprender",
|
|
115
116
|
"sort_by": "Ordenar por:",
|
|
116
|
-
"clear": "
|
|
117
|
-
"clear_all": "
|
|
117
|
+
"clear": "Claro",
|
|
118
|
+
"clear_all": "Borrar todo",
|
|
118
119
|
"See clue": "Ver pista",
|
|
119
120
|
"See less": "Ver menos",
|
|
120
121
|
"See lesson": "Ver lección",
|
|
@@ -215,9 +216,10 @@
|
|
|
215
216
|
"badge": "Información adicional sobre su certificado"
|
|
216
217
|
},
|
|
217
218
|
"css": {
|
|
218
|
-
"modules": "
|
|
219
|
-
"
|
|
220
|
-
"modules_completed_mandatory": "
|
|
219
|
+
"modules": "{{count}} nivel",
|
|
220
|
+
"modules_plural": "{{count}} niveles",
|
|
221
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> nivel obligatorio completado",
|
|
222
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> niveles obligatorios completados",
|
|
221
223
|
"certification_module": "nivel para completar"
|
|
222
224
|
}
|
|
223
225
|
}
|
package/locales/et/global.json
CHANGED
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"locked": "Lukustatud",
|
|
50
50
|
"icon_picker_title": "Muuda ikooni",
|
|
51
51
|
"icon_picker_description": "Valige oma oskuse jaoks uus ikoon",
|
|
52
|
-
"icon_editor_color": "
|
|
53
|
-
"invalid_color": "
|
|
52
|
+
"icon_editor_color": "Ikooni värv",
|
|
53
|
+
"invalid_color": "Vale värv",
|
|
54
54
|
"translation_title": "Tõlgi",
|
|
55
55
|
"translation_description": "Rohkem õppijate kaasamiseks hallake tõlkeid",
|
|
56
56
|
"skills_change_focus": "Muuda oskusfookust",
|
|
57
57
|
"skills_choose_focus": "Vali oma fookus",
|
|
58
58
|
"cancel": "Tühista",
|
|
59
|
-
"close": "
|
|
59
|
+
"close": "Sule",
|
|
60
60
|
"confirm": "Kinnita",
|
|
61
61
|
"Delete": "Kustuta",
|
|
62
62
|
"Draft": "Mustand",
|
|
@@ -78,9 +78,10 @@
|
|
|
78
78
|
"learning_priorities_brand_description": "Määrake oma ettevõtte õppimisprioriteedid oskuste, esitusloendite või sertifikaatide abil. Need kuvatakse lehel Minu õppimine.",
|
|
79
79
|
"media_stars_to_win_plural": "Võida selles peatükis õppetunni esmakordsel vaatamisel {{count}} lisatähepunkti!",
|
|
80
80
|
"media_stars_to_win": "Võida selles peatükis õppetunni esmakordsel vaatamisel {{count}} lisatähepunkt!",
|
|
81
|
-
"modules": "
|
|
82
|
-
"
|
|
83
|
-
"modules_completed_mandatory": "
|
|
81
|
+
"modules": "{{count}} moodul",
|
|
82
|
+
"modules_plural": "{{count}} moodulid",
|
|
83
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> kohustuslik moodul täidetud",
|
|
84
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> kohustuslikud moodulid on täidetud",
|
|
84
85
|
"More": "Lisaks",
|
|
85
86
|
"More details": "Rohkem detaile",
|
|
86
87
|
"New media": "Uus õppetund",
|
|
@@ -113,8 +114,8 @@
|
|
|
113
114
|
"secured_payment": "Turvaline server",
|
|
114
115
|
"start_learning": "Alusta õppimist",
|
|
115
116
|
"sort_by": "Sorteerima:",
|
|
116
|
-
"clear": "
|
|
117
|
-
"clear_all": "
|
|
117
|
+
"clear": "Selge",
|
|
118
|
+
"clear_all": "Tühjenda kõik",
|
|
118
119
|
"See clue": "Näita vihjet",
|
|
119
120
|
"See less": "Näita vähem",
|
|
120
121
|
"See lesson": "Vaadake õppetundi",
|
|
@@ -215,9 +216,10 @@
|
|
|
215
216
|
"badge": "Täiendav teave teie sertifikaadi kohta"
|
|
216
217
|
},
|
|
217
218
|
"css": {
|
|
218
|
-
"modules": "
|
|
219
|
-
"
|
|
220
|
-
"modules_completed_mandatory": "
|
|
219
|
+
"modules": "{{count}} tase",
|
|
220
|
+
"modules_plural": "{{count}} tasemed",
|
|
221
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> kohustuslik tase läbitud",
|
|
222
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> kohustuslikud tasemed läbitud",
|
|
221
223
|
"certification_module": "taseme lõpetamiseks"
|
|
222
224
|
}
|
|
223
225
|
}
|
package/locales/fi/global.json
CHANGED
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"locked": "Lukittu",
|
|
50
50
|
"icon_picker_title": "Vaihda kuvake",
|
|
51
51
|
"icon_picker_description": "Valitse uusi kuvake taidollesi",
|
|
52
|
-
"icon_editor_color": "
|
|
53
|
-
"invalid_color": "
|
|
52
|
+
"icon_editor_color": "Ikonin väri",
|
|
53
|
+
"invalid_color": "Virheellinen väri",
|
|
54
54
|
"translation_title": "Käännä",
|
|
55
55
|
"translation_description": "Hallitse käännöksiä ja saat lisää oppijoita",
|
|
56
56
|
"skills_change_focus": "Vaihda osaamisen painopistettä",
|
|
57
57
|
"skills_choose_focus": "Valitse painopisteesi",
|
|
58
58
|
"cancel": "Peruuta",
|
|
59
|
-
"close": "
|
|
59
|
+
"close": "Lähellä",
|
|
60
60
|
"confirm": "Vahvista",
|
|
61
61
|
"Delete": "Poista",
|
|
62
62
|
"Draft": "Luonnos",
|
|
@@ -78,9 +78,10 @@
|
|
|
78
78
|
"learning_priorities_brand_description": "Määritä yrityksesi oppimisprioriteetit taitojen, soittolistojen tai sertifikaattien avulla. Ne näkyvät Oma oppiminen -sivulla.",
|
|
79
79
|
"media_stars_to_win_plural": "Voita {{count}} ylimääräistä tähteä tässä kappaleessa, kun katsot oppitunnin ensimmäisen kerran!",
|
|
80
80
|
"media_stars_to_win": "Voita {{count}} ylimääräinen tähti tässä kappaleessa, kun katsot oppitunnin ensimmäisen kerran!",
|
|
81
|
-
"modules": "
|
|
82
|
-
"
|
|
83
|
-
"modules_completed_mandatory": "
|
|
81
|
+
"modules": "{{count}} -moduuli",
|
|
82
|
+
"modules_plural": "{{count}} moduulit",
|
|
83
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> pakollinen moduuli suoritettu",
|
|
84
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> pakolliset moduulit suoritettu",
|
|
84
85
|
"More": "Enemmän",
|
|
85
86
|
"More details": "Lisää tietoja",
|
|
86
87
|
"New media": "Uusi oppitunti",
|
|
@@ -113,8 +114,8 @@
|
|
|
113
114
|
"secured_payment": "Turvallinen palvelin",
|
|
114
115
|
"start_learning": "Aloita oppiminen",
|
|
115
116
|
"sort_by": "Järjestä:",
|
|
116
|
-
"clear": "
|
|
117
|
-
"clear_all": "
|
|
117
|
+
"clear": "Selkeä",
|
|
118
|
+
"clear_all": "Tyhjennä kaikki",
|
|
118
119
|
"See clue": "Näytä vihje",
|
|
119
120
|
"See less": "Näytä vähemmän",
|
|
120
121
|
"See lesson": "Näytä oppitunti",
|
|
@@ -215,9 +216,10 @@
|
|
|
215
216
|
"badge": "Lisätietoja todistuksestasi"
|
|
216
217
|
},
|
|
217
218
|
"css": {
|
|
218
|
-
"modules": "
|
|
219
|
-
"
|
|
220
|
-
"modules_completed_mandatory": "
|
|
219
|
+
"modules": "{{count}} taso",
|
|
220
|
+
"modules_plural": "{{count}} tasot",
|
|
221
|
+
"modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> pakollinen taso suoritettu",
|
|
222
|
+
"modules_completed_mandatory_plural": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}} / {{total}}</span> pakolliset tasot suoritettu",
|
|
221
223
|
"certification_module": "suoritettava taso"
|
|
222
224
|
}
|
|
223
225
|
}
|