Skip to content

Commit 0ee2257

Browse files
committed
Appended chrome.i18n format note to messages.json refs
1 parent 05d4ca1 commit 0ee2257

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

translate-messages/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<a href="https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=adamlui_python-utils">
1414
<img height=31 src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dadamlui_python-utils%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonarcloud&logoColor=white&labelColor=464646&label=Vulnerabilities&color=fafc74"></a>
1515

16-
> ### _Translate `en/messages.json` to other locales automatically._
16+
> ### _Translate `en/messages.json` (chrome.i18n format) to other locales automatically._
1717
1818
## Installation
1919

@@ -31,7 +31,7 @@ translate-msgs
3131
If no options are provided, the CLI will:
3232
1. Prompt for message keys to ignore
3333
2. Auto-discover closest `_locales` dir
34-
3. Translate `en/messages.json` to target languages
34+
3. Translate `en/messages.json` ([chrome.i18n format](https://developer.chrome.com/docs/extensions/how-to/ui/localization-message-formats)) to target languages
3535

3636
## Options
3737

translate-messages/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "translate-messages"
33
version = "1.0.4"
4-
description = "Translate en/messages.json to other locales."
4+
description = "Translate en/messages.json (chrome.i18n format) to other locales."
55
authors = [{name = "Adam Lui", email = "adam@kudoai.com"}]
66
readme = "README.md"
77
dependencies = ["requests>=2.32.0,<3.0.0", "translate>=3.8.0,<4.0.0"]

translate-messages/src/translate_messages/lib/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def cli(caller_file):
1717

1818
# Parse CLI args
1919
argp = argparse.ArgumentParser(
20-
description="Translate en/messages.json to other locales",
20+
description="Translate en/messages.json (chrome.i18n format) to other locales",
2121
add_help=False # disable default --help arg to re-create last
2222
)
2323
argp.add_argument('--locales-dir', '--locales-folder',

0 commit comments

Comments
 (0)