Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Docs

  • Loading branch information...
commit 8c86827a8d54a7ee0742de75d85abefe901b8e20 1 parent c799436
@tj authored
Showing with 10 additions and 4 deletions.
  1. +1 −1  LICENSE
  2. +9 −3 Readme.md
View
2  LICENSE
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2009-2010 TJ Holowaychuk <tj@vision-media.ca>
+Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
12 Readme.md
@@ -39,18 +39,24 @@ Camelcase with first character upppercase:
## i18n (translations)
+New languages can be defined as shown below:
+
var Language = require('lingo').Language
- , french = new Language('fr');
+ , fr = new Language('fr');
- french.translations = {
+ fr.translations = {
'Welcome {name}': 'Bonjour {name}'
};
+The language code passed to `Language()` self-registers itself, so you could grab the implementation via:
+
+ var fr = require('lingo').Language.fr;
+
## License
(The MIT License)
-Copyright (c) 2009-2010 TJ Holowaychuk <tj@vision-media.ca>
+Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Please sign in to comment.
Something went wrong with that request. Please try again.