Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gyllen committed Nov 13, 2014
0 parents commit d35223a
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
*.js
*.baked
28 changes: 28 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Build configurations.
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON("./package.json")

bake:
compile:
files:
"<%= pkg.name %>.coffee.baked": "./<%=pkg.name%>.coffee"

coffee:
compile:
files: [
src: "<%= pkg.name %>.coffee.baked"
dest: "./<%=pkg.name%>.js"
]
options:
bare: false

loadNpmTasks = (tasks) ->
for dep, ver of tasks when dep.match("grunt-contrib")
grunt.loadNpmTasks dep

grunt.loadNpmTasks( "grunt-bake" )

pkg = grunt.file.readJSON("./package.json")
loadNpmTasks pkg.dependencies
grunt.registerTask "default", ["bake", "coffee"]
22 changes: 22 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "mapillary_localization",
"main": "mapillary_localization.js",
"version": "1.0.0",
"authors": [
"Johan Gyllenspetz <[email protected]>"
],
"description": "Localization for Mapillary",
"keywords": [
"mapillary"
],
"license": "MIT",
"homepage": "http://www.mapillary.com",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
4 changes: 4 additions & 0 deletions locales/de.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LANDING:
TITLE: "Bilder für alle."
BUTTON_LANG_EN: "Englisch"
BUTTON_LANG_DE: "Deutsch"
5 changes: 5 additions & 0 deletions locales/en.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
LANDING:
TITLE: "Crowdsourced Street Level Photos."
FOO: "Crowdsourced Street Level Photos."
BUTTON_LANG_EN: "English"
BUTTON_LANG_DE: "German"
9 changes: 9 additions & 0 deletions mapillary_localization.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("mapapp").config ($translateProvider) ->
$translateProvider.translations "en",
<!--(bake locales/en.coffee)-->

$translateProvider.translations "de",
<!--(bake locales/de.coffee)-->

$translateProvider.preferredLanguage "en"
$translateProvider.useLocalStorage()
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "mapillary_localization",
"description": "Localization of Mapillary",
"version": "0.0.1",
"dependencies": {
"grunt": "0.4.0",
"grunt-bake": "~0.3.12",
"grunt-cli": "~0.1.6",
"grunt-contrib-coffee": "~0.4.0"
}
}

0 comments on commit d35223a

Please sign in to comment.