Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Brazilian Portuguese translation #750

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e94154b
chore(release): 5.0.0-beta.1
bitjson Aug 18, 2017
7155ff0
Added a build runner in line with starting the service.
Sep 26, 2017
6cbca55
Apparently pushd and popd are not available in the shell used by exec on
Sep 27, 2017
4931504
Bumped version.
Oct 1, 2017
37177c4
Bumped version.
Oct 2, 2017
a0ba1ef
Bumped version.
Oct 8, 2017
ba31444
Bumped version.
Oct 9, 2017
2010f73
Bumped version.
Oct 11, 2017
9195c90
Bumped version.
Oct 11, 2017
fbc38a7
Bumped version.
Oct 12, 2017
2cc88a2
Bumped version.
Oct 12, 2017
c52682b
Added test stubs.
Oct 12, 2017
65f88ef
Bumped version.
Oct 12, 2017
9c00ac8
Added a travis.yml file.
Oct 12, 2017
81155eb
Added mocha as a dependency.
Oct 12, 2017
a69ef92
Bumped version.
Oct 18, 2017
3ff0341
Bump version
Oct 20, 2017
f34006e
Bumped version.
Oct 24, 2017
8251807
Bumped version.
Oct 24, 2017
59c4bf2
Bumped version.
Oct 26, 2017
d4bb931
Bumped version.
Oct 26, 2017
96b44e2
Bumped version.
Oct 30, 2017
55e6427
Bumped version.
Nov 1, 2017
bc49b1d
Bumped version.
Nov 2, 2017
efb275b
Bumped version.
Nov 2, 2017
e87ad01
Bumped version.
Nov 2, 2017
0852a26
Bumped version.
Nov 5, 2017
d5d6191
Bumped version.
Nov 7, 2017
1e431f9
Bumped version.
Nov 7, 2017
9559af9
Bumped version.
Nov 7, 2017
e13e24d
Bumped version.
Nov 7, 2017
46821f0
Bumped version.
Nov 8, 2017
271bc41
Bumped version.
Nov 8, 2017
f41fb29
Bumped version.
Nov 9, 2017
24426b7
Bumped version.
Nov 10, 2017
51d3566
Bumped version.
Nov 13, 2017
aef5a88
Bumped version.
Nov 13, 2017
c825504
Bumped version.
Nov 22, 2017
128a5c9
Add Brazilian Portuguese translation
Xinayder Dec 19, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- 'v8'
install:
- npm install
29 changes: 20 additions & 9 deletions bitcore-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,35 @@
var BaseService = require('./service');
var inherits = require('util').inherits;
var fs = require('fs');
var pkg = require('../package');
var exec = require('child_process').exec;
var pkg = require('../package.json');

var InsightUI = function(options) {
BaseService.call(this, options);
// we don't use the options object for routePrefix and apiPrefix, since the
// client must be rebuilt with the proper options. A future version of
// Bitcore should allow for a service "build" step to make this better.
this.apiPrefix = pkg.insightConfig.apiPrefix;
this.routePrefix = pkg.insightConfig.routePrefix;
this.apiPrefix = options.apiPrefix || 'api';
this.routePrefix = options.routePrefix || '';
};

InsightUI.dependencies = ['insight-api'];

inherits(InsightUI, BaseService);

InsightUI.prototype.start = function(callback) {
this.indexFile = this.filterIndexHTML(fs.readFileSync(__dirname + '/../public/index-template.html', {encoding: 'utf8'}));
setImmediate(callback);

var self = this;
pkg.insightConfig.apiPrefix = self.apiPrefix;
pkg.insightConfig.routePrefix = self.routePrefix;

fs.writeFileSync(__dirname + '/../package.json', JSON.stringify(pkg, null, 2));
exec('cd ' + __dirname + '/../;' +
' npm run install-and-build', function(err) {
if (err) {
return callback(err);
}
self.indexFile = self.filterIndexHTML(fs.readFileSync(__dirname + '/../public/index-template.html', {encoding: 'utf8'}));
callback();
});

};

InsightUI.prototype.getRoutePrefix = function() {
Expand All @@ -31,7 +42,7 @@ InsightUI.prototype.setupRoutes = function(app, express) {
var self = this;
app.use(express.static(__dirname + '/../public'));
// if not in found, fall back to indexFile (404 is handled client-side)
app.use(function(req, res, next) {
app.use(function(req, res) {
res.setHeader('Content-Type', 'text/html');
res.send(self.indexFile);
});
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Insight",
"version": "0.0.1",
"version": "5.0.0-beta.1",
"dependencies": {
"angular": "~1.2.13",
"angular-resource": "~1.2.13",
Expand Down
Loading