
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
accent-cli
Advanced tools
$ npm install -g accent-cli
$ accent COMMAND
running command...
$ accent (-v|--version|version)
accent-cli/0.9.2 darwin-x64 node-v10.16.3
$ accent --help [COMMAND]
USAGE
$ accent COMMAND
...
accent-cli reads from a accent.json
file. The file should contain valid JSON representing the configuration of your project.
{
"apiUrl": "http://your.accent.instance",
"apiKey": "2nziVSaa8yUJxLkwoZA",
"files": [
{
"format": "json",
"source": "localization/fr/*.json",
"target": "localization/%slug%/%document_path%.json",
"hooks": {
"afterSync": "touch sync-done.txt"
}
}
]
}
Each operation section sync
and addTranslations
can contain the following object:
language
: The identifier of the document’s languageformat
: The format of the documentsource
: The path of the document. This can contain glob pattern (See [the node glob library] used as a dependancy (https://github.com/isaacs/node-glob))target
: Path of the target languageshooks
: List of hooks to be runHere is a list of available hooks. Those are self-explanatory
beforeSync
afterSync
beforeExport
afterExport
accent export
Export files from Accent and write them to your local filesystem
USAGE
$ accent export
OPTIONS
--order-by=index|key-asc [default: index] Will be used in the export call as the order of the keys
EXAMPLE
$ accent export
See code: src/commands/export.ts
accent help [COMMAND]
display help for accent
USAGE
$ accent help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
accent jipt PSEUDOLANGUAGENAME
Export jipt files from Accent and write them to your local filesystem
USAGE
$ accent jipt PSEUDOLANGUAGENAME
ARGUMENTS
PSEUDOLANGUAGENAME The pseudo language for in-place-translation-editing
EXAMPLE
$ accent jipt
See code: src/commands/jipt.ts
accent stats
Fetch stats from the API and display it beautifully
USAGE
$ accent stats
EXAMPLE
$ accent stats
See code: src/commands/stats.ts
accent sync
Sync files in Accent and write them to your local filesystem
USAGE
$ accent sync
OPTIONS
--add-translations Add translations in Accent to help translators if you already have translated
strings
--dry-run Do not write the file from the export _after_ the operation
--merge-type=smart|passive|force [default: smart] Will be used in the add translations call as the "merge_type" param
--order-by=index|key-asc [default: index] Will be used in the export call as the order of the keys
--sync-type=smart|passive [default: smart] Will be used in the sync call as the "sync_type" param
EXAMPLE
$ accent sync
See code: src/commands/sync.ts
accent-cli
is © 2019 Mirego and may be freely distributed under the New BSD license. See the LICENSE.md
file.
Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We’re a team of talented people who imagine and build beautiful Web and mobile applications. We come together to share ideas and change the world.
We also love open-source software and we try to give back to the community as much as we can.
FAQs
Accent CLI
The npm package accent-cli receives a total of 4,647 weekly downloads. As such, accent-cli popularity was classified as popular.
We found that accent-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.