literallycanvas/literallycanvas — pull request #206 by campaul (2014-06-22 20:29:41+00:00)
Title: Add a really simple localization system

This probably doesn't belong on the lc object, but since the strings have to get passed to the init function anyway this was the easiest way to make this work.

Initialization looks something like this:

```javascript
var lc = LC.init(containerOne, {
backgroundShapes: [
LC.createShape(
'Image', {image: backgroundImage, x: 100, y: 100})
],
watermarkImage: watermarkImage,
imageSize: {width: 500, height: 300},
strings: {
'Sans-serif': 'Hodor',
'Serif': 'Hodor',
'Typewriter': 'Hodor',
'Enter text here': 'Hodor',
'Click and hold to place text.': 'Hodor.',
'Size: ': 'Hodor: ',
'italic': 'Hodor',
'bold': 'Hodor',
'background': 'Hodor',
'stroke': 'Hodor',
'fill': 'Hodor',
'Clear': 'Hodor'
}
});
```