{"id":21326255,"url":"https://github.com/masylum/express-dialect","last_synced_at":"2026-03-04T05:31:20.975Z","repository":{"id":1153060,"uuid":"1038278","full_name":"masylum/express-dialect","owner":"masylum","description":"Pluggable express app to handle i18n and L18n","archived":false,"fork":false,"pushed_at":"2011-04-13T23:42:13.000Z","size":2007,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-12T07:31:56.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masylum.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-30T21:04:33.000Z","updated_at":"2019-06-10T13:25:36.000Z","dependencies_parsed_at":"2022-08-16T12:15:30.468Z","dependency_job_id":null,"html_url":"https://github.com/masylum/express-dialect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masylum/express-dialect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fexpress-dialect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fexpress-dialect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fexpress-dialect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fexpress-dialect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masylum","download_url":"https://codeload.github.com/masylum/express-dialect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fexpress-dialect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30072491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:13:31.218Z","status":"ssl_error","status_checked_at":"2026-03-04T05:10:24.293Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T21:08:56.521Z","updated_at":"2026-03-04T05:31:20.957Z","avatar_url":"https://github.com/masylum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED\n\nThis module is not maintained anymore.\n\nIf you want a backend for your dialect translations please use [dialect-http](https://github.com/masylum/dialect-http)\n\n# ExpressDialect\n\nExpressDialect is a \"pluggable\" express application that deals with i18n.\n\nThis module is builtin upon [dialect](http://github.com/masylum/dialect/), the nodejs alternative to gettext.\n\nCurrently [dialect](http://github.com/masylum/dialect/) just provides a MongoDB store,\nso you need MongoDB to be installed and running.\n\n## Features\n\n  * An amazing helper _t()_ that you can use to translate your views.\n  * A super awesome backend GUI tool to manage your translations.\n\n\u003cimg src = \"https://github.com/masylum/express-dialect/raw/master/lib/public/images/example.jpg\" border = \"0\" /\u003e\n\n## How does it work?\n\nEasy!\nImagine you have this express application:\n\n    var express = require('express'),\n        app = express.createServer(),\n        connect = require('connect');\n\n    app.get('', function (req, res) {\n      res.render('index', {layout: null});\n    });\n\n    app.listen(3000);\n\nTo \"plug\" espress_dialect you just need to:\n\n    npm install express-dialect\n\nand then add some lines to your app.\n\n    var express = require('express'),\n        app = express.createServer(),\n        connect = require('connect'),\n\n        express_dialect = require('./../lib/express-dialect'),\n        dialect_options = {\n          app: app,\n          path: __dirname + '/data',\n          title: 'dialect test',\n          store: 'mongodb',\n          database: 'translations'\n        };\n\n    express_dialect(dialect_options, function (error, dialect) {\n      app.dynamicHelpers(dialect.dynamic_helpers); // makes t() available\n\n      app.get('', function (req, res) {\n        res.render('index', {layout: null});\n      });\n\n      app.listen(3000);\n      dialect.app.listen(3001); // Starts express-dialect on port 3001\n    });\n\nNow open your views and make your strings available to translate.\n\n    h1= t('Post')\n    p= t(post.body)\n\nOpen your browser and type \"http://localhost:3001\", if you didn't provide a custom user password type 'admin' and 'admin'.\n\nOMG! Double rainbow! its amazing, isn't it?\n\n## Configuration options\n\n  - *app*: Your current express app.\n  - *path*: Where you want to store the JSON files with the cached translations.\n  - *store*: 'mongodb'. Other stores will be implemented soon.\n  - *database*: 'translations'. Database name you want to store the translations.\n  - *title* (optional): Custom title for the backend admin.\n  - *username* (optional): username to authenticate. Defaults to 'admin'\n  - *password* (optional): password to authenticate. Defaults to 'admin'\n\n## TODO\n\nDon't hesitate on forking the project!\n\n  * Compatibilililitity with dialect's API (counts and contexts missing)\n  * Show languages names. (en =\u003e English)\n  * Make the helper visible, not just on the views.\n  * Dashboard on the homepage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fexpress-dialect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasylum%2Fexpress-dialect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fexpress-dialect/lists"}