Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOD Netherlands culture code in translations-list #564

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions demo/libs/lucca-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3054,8 +3054,8 @@ var lui;
(function (translate) {
"use strict";
translate.AVAILABLE_LANGUAGES = ["en", "fr", "de", "es", "it", "nl", "pt"];
translate.LANGUAGES_TO_CODE = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 2067, pt: 2070 };
translate.CODES_TO_LANGUAGES = { 1033: "en", 1031: "de", 1034: "es", 1036: "fr", 1040: "it", 2067: "nl", 2070: "pt" };
translate.LANGUAGES_TO_CODE = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 1043, pt: 2070 };
translate.CODES_TO_LANGUAGES = { 1033: "en", 1031: "de", 1034: "es", 1036: "fr", 1040: "it", 1043: "nl", 2070: "pt" };
var CulturedList = (function () {
function CulturedList(culture) {
this.culture = culture;
Expand Down Expand Up @@ -4162,7 +4162,7 @@ var lui;
angular.module("lui").service(UploaderService.IID, UploaderService);
})(upload = lui.upload || (lui.upload = {}));
})(lui || (lui = {}));
;angular.module('lui').run(['$templateCache', function($templateCache) {
;angular.module('lui').run(['$templateCache', function($templateCache) {
'use strict';

$templateCache.put('lui/templates/date-picker/datepicker-inline.html',
Expand Down Expand Up @@ -4358,8 +4358,8 @@ var lui;
$templateCache.put('lui/templates/user-picker/user-picker.multiple.html',
"<ui-select multiple ng-disabled=\"controlDisabled\" search-enabled=\"true\" on-select=\"onSelect()\" on-remove=\"onRemove()\" close-on-select=\"false\" reset-search-input=\"true\" uis-open-close=\"onOpen(isOpen)\" open-on=\"toggleFormerEmployees\"><ui-select-match placeholder=\"{{placeholder}}\" allow-clear=\"{{!!allowClear}}\">{{$item.lastName}} {{$item.firstName}}</ui-select-match><ui-select-choices repeat=\"user in users track by $index\" refresh=\"find($select.search)\" refresh-delay=\"0\" luid-on-scroll-bottom=\"loadMore()\"><div ng-if=\"user.id === myId\" class=\"selected-first\" ng-class=\"{'dividing': $index === 0}\" ng-bind-html=\"user.lastName + ' ' + user.firstName | luifHighlight : $select.search : user.info : 'LUIDUSERPICKER_ME'\"></div><div ng-if=\"user.id === -1\" translate>LUIDUSERPICKER_ALL</div><div ng-if=\"user.id !== myId\" ng-bind-html=\"user.lastName + ' ' + user.firstName | luifHighlight : $select.search : user.info\"></div><div ng-if=\"user.hasLeft\"><small translate translate-values=\"{dtContractEnd:user.dtContractEnd}\">LUIDUSERPICKER_FORMEREMPLOYEE</small></div><div ng-if=\"user.hasHomonyms\" ng-repeat=\"property in user.additionalProperties\"><small><i class=\"lui icon {{property.icon}}\"></i> <b data-ng-bind-html=\"property.translationKey | translate\"></b> <span data-ng-bind-html=\"property.value\"></span></small></div></ui-select-choices></ui-select>"
);

}]);
}]);
;/* global angular */
(function(){
'use strict';
Expand Down Expand Up @@ -4502,7 +4502,7 @@ var lui;
var translateCtrl = ctrls[0];

/** Associations language/code */
var languagesToCodes = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 2067 };
var languagesToCodes = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 1043 };

/** List of all the available languages labels */
var cultures = _.keys(languagesToCodes);
Expand Down
2 changes: 1 addition & 1 deletion dist/lucca-ui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ declare module lui.translate {
1034: string;
1036: string;
1040: string;
2067: string;
1043: string;
2070: string;
};
class CulturedList {
Expand Down
12 changes: 6 additions & 6 deletions dist/lucca-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3054,8 +3054,8 @@ var lui;
(function (translate) {
"use strict";
translate.AVAILABLE_LANGUAGES = ["en", "fr", "de", "es", "it", "nl", "pt"];
translate.LANGUAGES_TO_CODE = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 2067, pt: 2070 };
translate.CODES_TO_LANGUAGES = { 1033: "en", 1031: "de", 1034: "es", 1036: "fr", 1040: "it", 2067: "nl", 2070: "pt" };
translate.LANGUAGES_TO_CODE = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 1043, pt: 2070 };
translate.CODES_TO_LANGUAGES = { 1033: "en", 1031: "de", 1034: "es", 1036: "fr", 1040: "it", 1043: "nl", 2070: "pt" };
var CulturedList = (function () {
function CulturedList(culture) {
this.culture = culture;
Expand Down Expand Up @@ -4162,7 +4162,7 @@ var lui;
angular.module("lui").service(UploaderService.IID, UploaderService);
})(upload = lui.upload || (lui.upload = {}));
})(lui || (lui = {}));
;angular.module('lui').run(['$templateCache', function($templateCache) {
;angular.module('lui').run(['$templateCache', function($templateCache) {
'use strict';

$templateCache.put('lui/templates/date-picker/datepicker-inline.html',
Expand Down Expand Up @@ -4358,8 +4358,8 @@ var lui;
$templateCache.put('lui/templates/user-picker/user-picker.multiple.html',
"<ui-select multiple ng-disabled=\"controlDisabled\" search-enabled=\"true\" on-select=\"onSelect()\" on-remove=\"onRemove()\" close-on-select=\"false\" reset-search-input=\"true\" uis-open-close=\"onOpen(isOpen)\" open-on=\"toggleFormerEmployees\"><ui-select-match placeholder=\"{{placeholder}}\" allow-clear=\"{{!!allowClear}}\">{{$item.lastName}} {{$item.firstName}}</ui-select-match><ui-select-choices repeat=\"user in users track by $index\" refresh=\"find($select.search)\" refresh-delay=\"0\" luid-on-scroll-bottom=\"loadMore()\"><div ng-if=\"user.id === myId\" class=\"selected-first\" ng-class=\"{'dividing': $index === 0}\" ng-bind-html=\"user.lastName + ' ' + user.firstName | luifHighlight : $select.search : user.info : 'LUIDUSERPICKER_ME'\"></div><div ng-if=\"user.id === -1\" translate>LUIDUSERPICKER_ALL</div><div ng-if=\"user.id !== myId\" ng-bind-html=\"user.lastName + ' ' + user.firstName | luifHighlight : $select.search : user.info\"></div><div ng-if=\"user.hasLeft\"><small translate translate-values=\"{dtContractEnd:user.dtContractEnd}\">LUIDUSERPICKER_FORMEREMPLOYEE</small></div><div ng-if=\"user.hasHomonyms\" ng-repeat=\"property in user.additionalProperties\"><small><i class=\"lui icon {{property.icon}}\"></i> <b data-ng-bind-html=\"property.translationKey | translate\"></b> <span data-ng-bind-html=\"property.value\"></span></small></div></ui-select-choices></ui-select>"
);

}]);
}]);
;/* global angular */
(function(){
'use strict';
Expand Down Expand Up @@ -4502,7 +4502,7 @@ var lui;
var translateCtrl = ctrls[0];

/** Associations language/code */
var languagesToCodes = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 2067 };
var languagesToCodes = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 1043 };

/** List of all the available languages labels */
var cultures = _.keys(languagesToCodes);
Expand Down
4 changes: 2 additions & 2 deletions dist/lucca-ui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/directives/lucca/translations-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
var translateCtrl = ctrls[0];

/** Associations language/code */
var languagesToCodes = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 2067 };
var languagesToCodes = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 1043 };

/** List of all the available languages labels */
var cultures = _.keys(languagesToCodes);
Expand Down
4 changes: 2 additions & 2 deletions ts/translations-list/translations-list.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module lui.translate {
/** All the languages supported by the translation-list directive */
export const AVAILABLE_LANGUAGES = ["en", "fr", "de", "es", "it", "nl", "pt"];
/** Used to convert languages labels to their associated culture codes */
export const LANGUAGES_TO_CODE = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 2067, pt: 2070 };
export const LANGUAGES_TO_CODE = { en: 1033, de: 1031, es: 1034, fr: 1036, it: 1040, nl: 1043, pt: 2070 };
/** Used to converted culture codes to their associated labels */
export const CODES_TO_LANGUAGES = { 1033: "en", 1031: "de", 1034: "es", 1036: "fr", 1040: "it", 2067: "nl", 2070: "pt" };
export const CODES_TO_LANGUAGES = { 1033: "en", 1031: "de", 1034: "es", 1036: "fr", 1040: "it", 1043: "nl", 2070: "pt" };

export class CulturedList {
public culture: string;
Expand Down