Commit Graph

164 Commits

Author SHA1 Message Date
Simon Prévost
ae0df57dae
Add basic support for XLIFF 1.2 file format (#79)
![image](https://user-images.githubusercontent.com/464900/55203015-35c17980-51a0-11e9-8647-d91209c7b6de.png)

## Issue
📚 https://github.com/mirego/accent/issues/21

## Feature
This is a basic implementation of the XLIFF 1.2 format. This format is used heavily in a lot of translations related tool (and in XCode) so I may have missed some of the implementation details. But it’s a good start for someone who want to contribute to Accent 😉 

## Refactor
This format is a bit trickier than other since it required the master language to export the targets. We needed to refactor some module to use the master language in the serialization process. Also, not needed but cleaner, we wrap the document’s key `top_of_the_file_comment` and `header` inside a new struct `Language.Document`. This will become handy if we ever need to add an attribute to the document OR if we add a different attribute to the serialization input.

## Next steps
This format includes 2 new dependencies to handle XML encode and decode. _Why not use the same XML library used for the XML Android format?_ Because… \*drum roll\* The `<source>` XML tag when encoded by the `mochiweb_html` module is a self closing tag (per the HTML spec) 🥇 

Since those 2 new deps are required for the XLIFF format and can pretty print XML, we should use them _instead of `mochiweb`_ 🎉
2019-03-31 16:16:20 -04:00
Simon Prévost
ad8ec11f75 Update emberjs to latest 2019-03-28 22:05:16 -04:00
Simon Prévost
c373713678 Fix small UI tweaks 2019-03-28 21:14:27 -04:00
Simon Prévost
3fdd36f73a v1.0.0 2019-03-13 21:59:47 -04:00
Simon Prévost
15996bcae9 Update prettierignore and npm 2019-03-13 21:59:36 -04:00
Louis-Michel Couture
51e03071ec Update elixir buildpack config to install latest Elixir and Erlang 2019-03-13 20:54:13 -04:00
Louis-Michel Couture
fc84b0de08 Upgrade absinthe to 1.4.16 to get around issue with build artifacts
https://github.com/absinthe-graphql/absinthe/issues/691
2019-03-13 14:03:39 -04:00
Simon Prévost
8be916828a Use mirego/accent image if available else build in docker-compose 2019-03-13 08:34:17 -04:00
Simon Prévost
713a14e03f Fix version form colors 2019-03-13 08:34:17 -04:00
Guillaume Cauchon
06f9f6086d Remove useless dependencies 2019-03-13 08:32:43 -04:00
Simon Prévost
b0749bdad7 Put back alpine 3.9 with libssl1.1 to fix crypto deps /usr/lib 2019-03-11 12:51:16 -04:00
Simon Prévost
a165cbe278 Add root and subapp node_modules cache 2019-03-11 07:07:06 -04:00
Simon Prévost
74681e2afa Add root npm i 2019-03-11 07:01:48 -04:00
Simon Prévost
474e53f33b Typo in travis config 2019-03-11 06:54:49 -04:00
Simon Prévost
c56c80db56 Revert to npm i 2019-03-11 06:36:15 -04:00
Simon Prévost
21add08ad7 Bump nodejs version to use npm ci 2019-03-11 06:30:58 -04:00
Simon Prévost
7378b59090 Fix travis badge in readme 2019-03-11 06:28:50 -04:00
Simon Prévost
b9045b5bcd Fix ci-check by rewriting lint and format under root package.json 2019-03-11 06:27:14 -04:00
Simon Prévost
ee39f1a168 Run prettier on webapp 2019-03-10 21:39:49 -04:00
Simon Prévost
5fd55241c9 Fix docker setup with bad libcrypto from alpine 3.9 2019-03-10 21:16:23 -04:00
Simon Prévost
b3b8203623 v0.0.3 2019-03-09 22:59:46 -05:00
Simon Prévost
25a292bdea Use left/top instead of x/y on jipt pin 2019-03-09 22:58:24 -05:00
Simon Prévost
336f465431 Update CLI Readme after publish 2019-03-09 22:48:10 -05:00
Simon Prévost
a9e090f26f Update CLI version to 0.6.1 2019-03-09 22:47:31 -05:00
Simon Prévost
e38b7f4adc Fix tests 2019-03-09 22:46:07 -05:00
Simon Prévost
ea6878f5bb Update from ui refactor 2019-03-09 22:46:07 -05:00
Simon Prévost
bbac30a4bb Add missing test for export jipt controller 2019-03-09 22:46:07 -05:00
Simon Prévost
1221778908 Use guard in forEach 2019-03-09 22:46:07 -05:00
Simon Prévost
2dd1ea1b53 Fix tests 2019-03-09 22:46:07 -05:00
Simon Prévost
a3e96e4236 Add just in place translation kit to translate directly in the project’s app 2019-03-09 22:46:07 -05:00
Simon Prévost
57b8559feb Refactor UI 2019-03-09 22:46:07 -05:00
Simon Prévost
38a1a20188 Add cli repo info in package.json 2019-03-04 17:19:30 -05:00
Simon Prévost
be9f6bed83 Add cli in the repo to truly become a MONOREPO 🎉 2019-03-04 17:16:50 -05:00
Simon Prévost
b2750d0b60 Update travis deps 2019-03-03 15:15:58 -05:00
Simon Prévost
fa55c9a543 Update deps and elixir/erlang version 2019-03-03 14:56:36 -05:00
Rémi Prévost
139c0a0487
Remove Hanzo setup 2019-02-18 08:52:41 -05:00
Guillaume Cauchon
c27abd3156 Upgrade to alpine:3.9 and add the missing dependencies 2019-02-15 13:46:40 -05:00
Simon Prévost
835d32285c Fix placeholders inclusion in previous translation mapping 2019-01-22 08:09:45 -05:00
Simon Prévost
6e4a0d9846 0.0.2 2019-01-11 14:20:44 -05:00
Simon Prévost
6316fc4ec3 Add halt in webapp controller when rendering maintenance 2019-01-11 14:19:53 -05:00
Simon Prévost
6621db4a15 Fix document path parsing in frontend and sync type on new sync 2019-01-11 13:19:52 -05:00
Simon Prévost
3d83985b32 Fix tests 2019-01-11 10:31:35 -05:00
Simon Prévost
3cd60023a4 Fix filename parsing when using document path param and fix export filename parsing 2019-01-11 10:28:36 -05:00
Simon Prévost
765bf046cd Fix coveralls merge 2019-01-11 09:48:09 -05:00
Simon Prévost
55887ae542 Update install postgres instruction to point to Docker setup in the README 2019-01-11 09:47:14 -05:00
Simon Prévost
c7e18f2507 Fix typo 2019-01-11 09:47:14 -05:00
Simon Prévost
a5454cf4ad Add maintenance page when ember build runs in the background on deploy 2019-01-11 09:47:14 -05:00
Simon Prévost
5f6127719c Use & to run ember build prod in docker entrypoint 2019-01-11 09:47:14 -05:00
Simon Prévost
aed5793dab Add distillery and docker setup 2019-01-11 09:47:14 -05:00
Simon Prévost
0ba4d0474d wip 2019-01-09 08:01:19 -05:00