https://github.com/leomca/ftl-to-md
Convert Mozilla Fluent files to Markdown (and more!)
https://github.com/leomca/ftl-to-md
ftl
Last synced: 4 months ago
JSON representation
Convert Mozilla Fluent files to Markdown (and more!)
- Host: GitHub
- URL: https://github.com/leomca/ftl-to-md
- Owner: LeoMcA
- License: mpl-2.0
- Created: 2019-12-17T11:35:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-17T11:35:52.000Z (over 6 years ago)
- Last Synced: 2025-08-23T06:34:49.147Z (10 months ago)
- Topics: ftl
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ftl-to-md
*Convert Mozilla Fluent files to Markdown (and more!)*
## Rationale
Allows for the proofreading and commenting on fluent files in a tool such as Google Docs, by exporting the fluent file to ODT, then uploading that to Google Drive.
## Installation
Requires [`pandoc`](https://pandoc.org/) to be installed to convert from markdown to other formats.
Install the node dependencies:
```
make install
```
## Usage
### Convert to Markdown
To convert from fluent file to markdown:
```
make md path=../path/to/file.ftl
```
The markdown will be generated in output.md
### Convert to ODT
```
make odt path=../path/to/file.ftl
```
The odt file will be created at output.odt
### Convert to any format pandoc supports
For example, html5:
```
make pandoc type=html5 extension=html path=../path/to/file.ftl
```
The html file will be created at output.html
### Cleaning up output files
To clean up all output files:
```
make clean
```
## Licence
[MPL-2.0](https://www.mozilla.org/en-GB/MPL/2.0/)