-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from plumelo/feature/NEOV-236-grouping-tests-…
…demo-fixes Group, sort demo fixes; Group, sort tests for column, boolean, amount columns
- Loading branch information
Showing
11 changed files
with
2,320 additions
and
1,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: node_js | ||
node_js: 6 | ||
node_js: 8 | ||
dist: trusty | ||
sudo: required | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<link rel="import" href="../../../cosmoz-i18next/cosmoz-i18next.html"> | ||
|
||
<dom-module id="cosmoz-translations"> | ||
<template> | ||
<cosmoz-i18next | ||
translations="[[ _getTranslations(locale) ]]" | ||
interpolation-prefix="{" | ||
interpolation-suffix="}" | ||
key-separator="::" | ||
ns-separator=":::"> | ||
</cosmoz-i18next> | ||
</template> | ||
<script> | ||
(function () { | ||
'use strict'; | ||
|
||
Polymer({ | ||
is: 'cosmoz-translations', | ||
|
||
_getTranslations(locale) { | ||
if (locale === 'sv') { | ||
return { | ||
'Ascending': 'stigande', | ||
'Descending': 'fallande', | ||
'Amount': 'Belopp', | ||
'Group': 'Grupp', | ||
'{0} group': '{0} grupp', | ||
'{0} group_plural': '{0} grupper', | ||
'{0} row': '{0} rad', | ||
'{0} row_plural': '{0} rader', | ||
'{0} selected item': '{0} valt objekt', | ||
'{0} selected item_plural': '{0} valda objekt', | ||
'Group on': 'Gruppera på', | ||
'Sort on': 'Sortera på', | ||
'No grouping': 'Ingen gruppering', | ||
'No sorting': 'Ingen sortering' | ||
}; | ||
|
||
} else if (locale === 'fr') { | ||
return { | ||
'Ascending': 'croissant', | ||
'Descending': 'décroissant', | ||
'Amount': 'Montant', | ||
'Save as CSV': 'Eporter en CSV', | ||
'Group': 'Groupe', | ||
'{0} group': '{0} groupe', | ||
'{0} group_plural': '{0} groupes', | ||
'{0} row': '{0} ligne', | ||
'{0} row_plural': '{0} lignes', | ||
'{0} selected item': '{0} élément sélectionné', | ||
'{0} selected item_plural': '{0} éléments sélectionnés', | ||
'Group on': 'Grouper sur', | ||
'Sort on': 'Trier sur', | ||
'No grouping': 'Pas de groupement', | ||
'No sorting': 'Pas de tri' | ||
}; | ||
} | ||
|
||
return {}; | ||
} | ||
}); | ||
}()); | ||
</script> | ||
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.