Skip to content

Commit

Permalink
feat(i18n): accessibility i18n terms to 'en'
Browse files Browse the repository at this point in the history
Adds accessibility tags to the i18n service.
  • Loading branch information
JLLeitschuh committed Jul 27, 2015
1 parent 22c7300 commit e5c8299
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/js/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
angular.module('ui.grid').config(['$provide', function($provide) {
$provide.decorator('i18nService', ['$delegate', function($delegate) {
$delegate.add('en', {
headerCell: {
aria: {
defaultFilterLabel: 'Filter for column',
removeFilter: 'Remove Filter',
columnMenuButtonLabel: 'Column Menu'
},
priority: 'Priority:',
filterLabel: "Filter for column: "
},
aggregate: {
label: 'items'
},
Expand All @@ -28,6 +37,7 @@
sort: {
ascending: 'Sort Ascending',
descending: 'Sort Descending',
none: 'Sort None',
remove: 'Remove Sort'
},
column: {
Expand All @@ -41,11 +51,17 @@
max: 'max: '
},
pinning: {
pinLeft: 'Pin Left',
pinLeft: 'Pin Left',
pinRight: 'Pin Right',
unpin: 'Unpin'
},
columnMenu: {
close: 'Close'
},
gridMenu: {
aria: {
buttonLabel: 'Grid Menu'
},
columns: 'Columns:',
importerTitle: 'Import file',
exporterAllAsCsv: 'Export all data as csv',
Expand All @@ -63,8 +79,16 @@
jsonNotArray: 'Imported json file must contain an array, aborting.'
},
pagination: {
aria: {
pageToFirst: 'Page to first',
pageBack: 'Page back',
pageSelected: 'Selected page',
pageForward: 'Page forward',
pageToLast: 'Page to last'
},
sizes: 'items per page',
totalItems: 'items',
through: 'through',
of: 'of'
},
grouping: {
Expand Down

0 comments on commit e5c8299

Please sign in to comment.