Skip to content

Commit

Permalink
Merge pull request #378 from bogatykh/master
Browse files Browse the repository at this point in the history
Latvian (lv-LV) localization added
  • Loading branch information
stevegreatrex committed Dec 12, 2013
2 parents 0e9a402 + 6e145f2 commit c38a8d7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Localization/lv-LV.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/// <reference path="../Src/knockout.validation.js" />

/************************************************
* This is an example localization page. All of these
* messages are the default messages for ko.validation
*
* Currently ko.validation only does a single parameter replacement
* on your message (indicated by the {0}).
*
* The parameter that you provide in your validation extender
* is what is passed to your message to do the {0} replacement.
*
* eg: myProperty.extend({ minLength: 5 });
* ... will provide a message of "Please enter at least 5 characters"
* when validated
*
* This message replacement obviously only works with primitives
* such as numbers and strings. We do not stringify complex objects
* or anything like that currently.
*/

ko.validation.localize({
required: 'Lauks ir obligāts.',
min: 'Lūdzu, ievadiet vērtību lielāku vai vienādu ar {0}.',
max: 'Lūdzu, ievadiet vērtību mazāku vai vienādu par {0}.',
minLength: 'Lūdzu, ievadiet vismaz {0} simbolus.',
maxLength: 'Lūdzu, ievadiet ne vairāk kā {0} simbolus.',
pattern: 'Lūdzu, pārbaudiet norādītās vērtības formātu.',
step: 'Norādītām vērtībām jābūt pieaugošām ar soli {0}',
email: 'Norādītā e-pasta adrese neatbilst formātam',
date: 'Lūdzu, norādiet atbilstošu datuma formātu.',
dateISO: 'Lūdzu, norādiet atbilstošu datuma formātu.',
number: 'Lūdzu, ievadiet numuru.',
digit: 'Lūdzu, ievadiet ciparu.',
phoneUS: 'Lūdzu, norādiet formātam atbilstošu telefona numuru.',
equal: 'Norādītām vērtībām jābūt vienādām.',
notEqual: 'Norādītās vērtības nav vienādas.',
unique: 'Vērtībai jābūt unikālai.'
});

0 comments on commit c38a8d7

Please sign in to comment.