2019-09-18 15:24:45 +00:00
|
|
|
# JoinPeerTube
|
2018-03-01 11:31:23 +00:00
|
|
|
|
2019-09-18 15:24:45 +00:00
|
|
|
## Dev
|
2018-09-21 21:00:42 +00:00
|
|
|
|
|
|
|
```
|
2019-09-18 15:24:45 +00:00
|
|
|
$ npm run serve
|
2018-09-21 21:00:42 +00:00
|
|
|
```
|
|
|
|
|
2019-09-18 15:24:45 +00:00
|
|
|
## Build for production
|
2018-09-21 21:00:42 +00:00
|
|
|
|
|
|
|
```
|
2019-09-18 15:24:45 +00:00
|
|
|
$ npm run build
|
2018-09-21 21:00:42 +00:00
|
|
|
```
|
2019-10-24 13:11:05 +00:00
|
|
|
|
|
|
|
## Update translations
|
|
|
|
|
|
|
|
Add Weblate remote:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ git remote add weblate https://weblate.framasoft.org/git/joinpeertube/main
|
|
|
|
```
|
|
|
|
|
|
|
|
Update from Weblate:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ git fetch weblate && git merge weblate/master
|
|
|
|
```
|
|
|
|
|
|
|
|
Re generate translations:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ npm run i18n:generate
|
|
|
|
```
|
|
|
|
|
|
|
|
Push on master (Weblate will be automatically updated)
|
|
|
|
|
|
|
|
```
|
|
|
|
$ git push origin master
|
|
|
|
```
|
2019-11-26 09:15:29 +00:00
|
|
|
|
|
|
|
## Add locale
|
|
|
|
|
|
|
|
Add the locale in `src/main.js` and `Makefile`. Then update translations.
|