Skip to content

Commit acf8a05

Browse files
committed
Updated usercount shield counters in Perplexity Omnibox readmes
1 parent 0193af7 commit acf8a05

File tree

17 files changed

+370
-3
lines changed

17 files changed

+370
-3
lines changed

perplexity-omnibox/chromium/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<br><br>
55

66
<a href="#">
7-
<img height=31 src="https://img.shields.io/badge/Users-6.7K-blue?logo=weightsandbiases&logoColor=white&labelColor=464646&style=for-the-badge"></img></a>
7+
<img height=31 src="https://img.shields.io/badge/Users-6.6K-blue?logo=weightsandbiases&logoColor=white&labelColor=464646&style=for-the-badge"></img></a>
88
<a href="https://edge.perplexityomnibox.com">
99
<img alt="[Top 20 Trending Edge Add-on]" height=31 src="https://img.shields.io/badge/Trending-Top_20_Edge_Add--on-7bfce9?logo=data:image/svg%2bxml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSJ3aGl0ZSIgZD0iTTIxLjg2IDE3Ljg2cS4xNCAwIC4yNS4xMi4xLjEzLjEuMjV0LS4xMS4zM2wtLjMyLjQ2LS40My41My0uNDQuNXEtLjIxLjI1LS4zOC40MmwtLjIyLjIzcS0uNTguNTMtMS4zNCAxLjA0LS43Ni41MS0xLjYuOTEtLjg2LjQtMS43NC42NHQtMS42Ny4yNHEtLjkgMC0xLjY5LS4yOC0uOC0uMjgtMS40OC0uNzgtLjY4LS41LTEuMjItMS4xNy0uNTMtLjY2LS45Mi0xLjQ0LS4zOC0uNzctLjU4LTEuNi0uMi0uODMtLjItMS42NyAwLTEgLjMyLTEuOTYuMzMtLjk3Ljg3LTEuOC4xNC45NS41NSAxLjc3LjQxLjgyIDEuMDIgMS41LjYuNjggMS4zOCAxLjIxLjc4LjU0IDEuNjQuOS44Ni4zNiAxLjc3LjU2LjkyLjIgMS44LjI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LjUuMi0uMjguMzYtLjY4LjE2LS40LjE2LS45NSAwLTEuMDYtLjQtMS45Ni0uNC0uOTEtMS4wNi0xLjY0LS42Ni0uNzQtMS41Mi0xLjI4LS44Ni0uNTUtMS43OS0uODktLjg0LS4zLTEuNzItLjQ0LS44Ny0uMTQtMS43Ni0uMTQtMS41NSAwLTMuMDYuNDVULjk0IDcuNTVxLjcxLTEuNzQgMS44MS0zLjEzIDEuMS0xLjM4IDIuNTItMi4zNVE2LjY4IDEuMSA4LjM3LjU4cTEuNy0uNTIgMy41OC0uNTJaIi8+PC9zdmc+&logoColor=white&labelColor=464646&style=for-the-badge"></img></a>
1010
<a href="https://edge.perplexityomnibox.com">

perplexity-omnibox/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ Made with ❤️ by [Adam Lui][link-author]
242242
BADGE DEFINITIONS
243243
═══════════════════════════════════════════════════════════════════════════════ -->
244244

245-
[badge-users]: https://img.shields.io/badge/Users-6.7K-2563eb?style=for-the-badge&logo=weightsandbiases&logoColor=white
245+
[badge-users]: https://img.shields.io/badge/Users-6.6K-2563eb?style=for-the-badge&logo=weightsandbiases&logoColor=white
246246
[badge-trending]: https://img.shields.io/badge/Top_20-Edge_Add--on-7bfce9?style=for-the-badge&logo=microsoft-edge&logoColor=white
247247
[badge-rating]: https://img.shields.io/chrome-web-store/stars/ckhgddjdjkphbaediggjdddjdjgkalom?style=for-the-badge&logo=googlechrome&logoColor=white&color=10b981&label=Chrome
248248
[badge-jsdelivr]: https://img.shields.io/jsdelivr/gh/hm/adamlui/perplexity-omnibox?style=flat-square&logo=jsdelivr&logoColor=white&color=2bbbd8&label=jsDelivr
249249
[badge-codefactor]: https://img.shields.io/codefactor/grade/github/adamlui/perplexity-omnibox?style=flat-square&logo=codefactor&logoColor=white&color=b3ff68&label=Code%20Quality
250-
[badge-sonar]: https://img.shields.io/badge/Vulnerabilities-6.7K-gold?style=flat-square&logo=sonarcloud&logoColor=white
250+
[badge-sonar]: https://img.shields.io/badge/Vulnerabilities-6.6K-gold?style=flat-square&logo=sonarcloud&logoColor=white
251251
[badge-license]: https://img.shields.io/badge/License-MIT-e11d48?style=flat-square&logo=opensourceinitiative&logoColor=white
252252

253253
<!-- ═══════════════════════════════════════════════════════════════════════════════
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# 🏛️ MIT License
2+
3+
**Copyright © 2023–2026 [Adam Lui](https://github.com/adamlui)**
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<a id="top"></a>
2+
3+
# > translate-messages
4+
5+
Translate `en/messages.json` to other locales automatically.
6+
7+
## Installation
8+
9+
```bash
10+
pip install translate-messages
11+
```
12+
13+
## Usage
14+
15+
Run the CLI:
16+
```bash
17+
translate-msgs
18+
```
19+
20+
If no options are provided, the CLI will:
21+
1. Prompt for message keys to ignore
22+
2. Auto-discover closest `_locales` dir
23+
3. Translate `en/messages.json` to target languages
24+
25+
## Options
26+
27+
Options can be set by using command-line arguments:
28+
29+
| Option | Description | Example
30+
| ----------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------
31+
| `--locales-dir` | Name of the folder containing locale files (default: `_locales`) | `--locales-dir=_messages`
32+
| `--include-langs` | Comma-separated list of languages to include (default: all [`supported_locales`][supported-locales]) | `--include-langs=en,es,fr`
33+
| `--exclude-langs` | Comma-separated list of languages to exclude | `--exclude-langs=en,es`
34+
| `--ignore-keys` | Comma-separated list of keys to ignore | `--ignore-keys=appName,author`
35+
| `--init` | Create translate-messages.config.json in project root to store defaults |
36+
| `--no-wizard` | Skip interactive prompts during start-up |
37+
| `-h`, `--help` | Show help screen |
38+
39+
[supported-locales]: https://github.com/adamlui/python-utils/blob/translate-messages-1.0.4/translate-messages/src/translate_messages/package-data.json#L10-L17
40+
41+
## Example
42+
43+
```bash
44+
translate-msgs --include-langs=fr,es --ignore-keys=appName,author
45+
```
46+
47+
## Config file
48+
49+
Use `--init` to create `translate-messages.config.json` in your project root to set default options.
50+
51+
Example defaults:
52+
53+
```json
54+
{
55+
"locales_dir": "_locales",
56+
"include_langs": "",
57+
"exclude_langs": "",
58+
"ignore_keys": "",
59+
"no_wizard": false
60+
}
61+
```
62+
63+
_Note: CLI arguments always override config file._
64+
65+
## MIT License
66+
67+
**Copyright © 2023–2026 [Adam Lui](https://github.com/adamlui).**
68+
69+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
70+
71+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
72+
73+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
74+
75+
#
76+
77+
<a href="#top">Back to top ↑</a>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[project]
2+
name = "translate-messages"
3+
version = "1.0.4"
4+
description = "Translate en/messages.json to other locales."
5+
authors = [{name = "Adam Lui", email = "adam@kudoai.com"}]
6+
readme = "README.md"
7+
dependencies = ["requests>=2.32.0,<3.0.0", "translate>=3.8.0,<4.0.0"]
8+
9+
[project.scripts]
10+
translate-msgs = "translate_messages.__main__:main"
11+
translate-messages = "translate_messages.__main__:main"
12+
13+
[tool.setuptools.packages.find]
14+
where = ["src"]
15+
16+
[tool.setuptools.package-data]
17+
"*" = ["package_data.json", "*.md", "assets/ascii/*.txt"]

perplexity-omnibox/translate-messages/src/translate_messages/__init__.py

Whitespace-only changes.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
def main():
2+
import os, sys
3+
from .lib import data, init, language, log
4+
5+
cli = init.cli(__file__)
6+
if cli.config.init : init.config_file(cli) ; sys.exit(0)
7+
8+
if not cli.config.no_wizard:
9+
while True: # prompt user for keys to ignore
10+
if getattr(cli.config, 'ignore_keys', '') : print('Ignored key(s):', cli.config.ignore_keys)
11+
input_key = input('Enter key to ignore (or ENTER if done): ')
12+
if not input_key : break
13+
cli.config.ignore_keys.append(input_key)
14+
15+
log.trunc(f'\nSearching for {cli.config.locales_dir}...')
16+
cli.config.locales_dir = init.locales_dir(cli.config.locales_dir)
17+
if cli.config.locales_dir : log.trunc(f'_locales directory found!\n\n>> {cli.config.locales_dir}\n')
18+
else : log.trunc('Unable to locate directory.') ; sys.exit(1)
19+
20+
cli.config.msgs_filename = 'messages.json'
21+
cli.config.en_msgs = data.json.read(os.path.join(cli.config.locales_dir, 'en', cli.config.msgs_filename))
22+
cli.config.output_langs = list(set(cli.config.target_locales)) # remove dupes
23+
24+
if not cli.config.include_langs: # merge discovered locales w/ output_langs
25+
for root, dirs, _ in os.walk(cli.config.locales_dir):
26+
for lang_folder in dirs:
27+
msgs_path = os.path.join(root, lang_folder, cli.config.msgs_filename)
28+
discovered_lang = lang_folder.replace('_', '-')
29+
if os.path.exists(msgs_path) and discovered_lang not in cli.config.output_langs:
30+
cli.config.output_langs.append(discovered_lang)
31+
cli.config.output_langs.sort()
32+
33+
langs_translated, langs_skipped, langs_added, langs_not_translated = language.write_translations(cli)
34+
35+
log.final_summary({
36+
'translated': langs_translated,
37+
'skipped': langs_skipped,
38+
'added': langs_added,
39+
'not translated': langs_not_translated,
40+
})
41+
42+
if __name__ == '__main__' : main()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
▀█▀░█▀▄░█▀█░█▀█░█▀▀░█░░░█▀█░▀█▀░█▀▀
2+
░█░░█▀▄░█▀█░█░█░▀▀█░█░░░█▀█░░█░░█▀▀
3+
░▀░░▀░▀░▀░▀░▀░▀░▀▀▀░▀▀▀░▀░▀░░▀░░▀▀▀
4+
░░░█▄█░█▀▀░█▀▀░█▀▀░█▀█░█▀▀░█▀▀░█▀▀
5+
▄▄▄░█░█░█▀▀░▀▀█░▀▀█░█▀█░█░█░█▀▀░▀▀█
6+
░░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
d8 888 d8
2+
d88 888,8, ,"Y88b 888 8e dP"Y 888 ,"Y88b d88 ,e e,
3+
d88888 888 " "8" 888 888 88b C88b 888 "8" 888 d88888 d88 88b
4+
888 888 ,ee 888 888 888 Y88D 888 ,ee 888 888 888 ,
5+
888 888 "88 888 888 888 d,dP 888 "88 888 888 "YeeP"
6+
7+
8+
9+
888 888 8e ,e e, dP"Y dP"Y ,"Y88b e88 888 ,e e, dP"Y
10+
888 888 88b d88 88b C88b C88b "8" 888 d888 888 d88 88b C88b
11+
888 888 888 888 , Y88D Y88D ,ee 888 Y888 888 888 , Y88D
12+
888 888 888 "YeeP" d,dP d,dP "88 888 "88 888 "YeeP" d,dP
13+
, 88P
14+
"8",P"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
____ ____ ____ ____ ____ ____ ____ ____ ____
2+
||t |||r |||a |||n |||s |||l |||a |||t |||e ||
3+
||__|||__|||__|||__|||__|||__|||__|||__|||__||
4+
|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|
5+
____ ____ ____ ____ ____ ____ ____ ____
6+
||m |||e |||s |||s |||a |||g |||e |||s ||
7+
||__|||__|||__|||__|||__|||__|||__|||__||
8+
|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|

0 commit comments

Comments
 (0)