masylum / dialect Goto Github PK
View Code? Open in Web Editor NEWTranslations for nodejs
Translations for nodejs
And add tests to it.
Dialect currently does not help when clients are rendered on the client side. It would be very nice to have some basics implemented for :
Any thoughts on this one, @masylum you probably have experience with this situation?
We are requiring dialect in our package.json file:
"dialect" : "1.0.2"
After running npm install there is an excessive amount of data (1.4GB) in this folder:
node_modules/dialect/node_modules/mongodb/data
I am unable to figure out what is causing this and I'm looking for help.
Thanks,
Robert
Make the tests run on serial, so I can reuse the same database for each test.
This will slow down a little bit the tests, but its fine.
I would like to extend dialect for XLIFF files.
Just one issue: I would like to leave interactive functions like approve and add for later, as the main objective for me is reading the file, not writing. Would that be ok for you?
What would be your requirements for me to add a pull request?
Cheers
Felix
Upgrade funk to 0.0.2 in the package.json file. Currently dialect is not installable due to referring to 0.0.1:
npm install dialect
npm info it worked if it ends with ok
npm info using [email protected]
npm ERR! Error installing [email protected]
npm ERR! Error: version not found: 0.0.1 undefined: funk/0.0.1
npm ERR! at IncomingMessage.<anonymous> (/home/isaac/apps/node/lib/node/.npm/npm/0.2.5-1/package/lib/utils/registry/request.js:98:19)
npm ERR! at IncomingMessage.emit (events.js:41:20)
npm ERR! at HTTPParser.onMessageComplete (http.js:112:23)
npm ERR! at Client.onData [as ondata] (http.js:889:27)
npm ERR! at IOWatcher.callback (net.js:498:29)
npm ERR! at node.js:634:9
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <[email protected]>
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok
Is anyone using Dialect to serve translated pages on a per-request basis? It appears to me that there is no request context available to Dialect.
I'm trying to add a mysql store, the problem I am facing:
though the entry doesn't exist, it tries to issue an update command:
UPDATE dialect SET translation = 'Hola Mundo!', approved = 0 WHERE original = 'Hello World!' AND locale = 'es'
I wonder, why doesn't it insert a new row or something, or why is sqlite doing it that way? Does it work on sqlite?
(I'm using most of the sqlite code base right now)
There are several issues with installing sqlite
package on node (it says 0.6.x
fails, but I'm facing errors with 0.8.0
):
Installing sqlite
from this fork helps (AFAIK, it fixes somehow missing node_events.h
).
I think removing storage packages from dependencies should be considered. (Maybe adding them to devDependencies
or something.) One more reason for this is when user selects Mongo as storage he probably never gonna use SQLite and vice versa.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.