Skip to content

Commit 95cd83a

Browse files
committed
Added action
1 parent 1ad94a9 commit 95cd83a

13 files changed

Lines changed: 141 additions & 32 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: github-repo-stats
2+
3+
on:
4+
schedule:
5+
# Run this once per day, towards the end of the day for keeping the most
6+
# recent data point most meaningful (hours are interpreted in UTC).
7+
- cron: "0 23 * * *"
8+
workflow_dispatch: # Allow for running this manually.
9+
10+
jobs:
11+
j1:
12+
name: github-repo-stats
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: run-ghrs
16+
# Use latest release.
17+
uses: jgehrcke/github-repo-stats@RELEASE
18+
with:
19+
ghtoken: ${{ secrets.ghrs_github_api_token }}

translators/gettext-translator-azure/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# translator-azure
1+
# gettext-translator-azure
22

33
Azure implementation for `translator-service`.
44

translators/gettext-translator-azure/gettext_translator_azure/gettext_translator_azure.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,4 @@ def translate(self, texts_to_translate):
8787
traceback.print_stack()
8888
return []
8989
# translate
90-
91-
# -------------------------------------------------------------------------
92-
93-
def get_required_configuration(self):
94-
meta = {}
95-
for name, typ in self.__annotations__.items():
96-
value = getattr(self, name, None)
97-
meta[name] = value
98-
99-
return meta
100-
# get_required_configuration
10190
# TranslatorAzure

translators/gettext-translator-azure/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "gettext-translator-azure"
77
version = "0.0.1"
88
description = "Azure implementation for translator-service"
9-
authors = [{ name="Rodolfo González González", email="github@rodolfo.gg" }]
9+
authors = [{ name="Rodolfo González González", email="code@rodolfo.gg" }]
1010
readme = "README.md"
1111
license = { text = "Apache 2.0" }
1212
dependencies = [

translators/gettext-translator-chatgpt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# translator-chatgpt
1+
# gettext-translator-chatgpt
22

33
ChatGPT API implementation for `translator-service`.
44

translators/gettext-translator-chatgpt/gettext_translator_chatgpt/gettext_translator_chatgpt.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def translate(self, texts_to_translate):
103103
[{{"msgid":"Original string", "msgstr":"Translated string", "msgctxt":"The context of the string"}}]
104104
105105
Answer just with the translation results, do not add any other text. If an error occurs
106-
or a translation does not exist for a given id, use an empty string for "msgstr".
106+
or a translation does not exist for a given "id", use an empty string for "msgstr".
107107
108108
The texts to translate follow:
109109
@@ -138,15 +138,4 @@ def translate(self, texts_to_translate):
138138

139139
return translated_texts
140140
# translate
141-
142-
# -------------------------------------------------------------------------
143-
144-
def get_required_configuration(self):
145-
meta = {}
146-
for name, typ in self.__annotations__.items():
147-
value = getattr(self, name, None)
148-
meta[name] = value
149-
150-
return meta
151-
# get_required_configuration
152141
# TranslatorChatGPT

translators/gettext-translator-chatgpt/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "gettext-translator-chatgpt"
77
version = "0.0.1"
88
description = "ChatGPT API implementation for translator-service"
9-
authors = [{ name="Rodolfo González González", email="github@rodolfo.gg" }]
9+
authors = [{ name="Rodolfo González González", email="code@rodolfo.gg" }]
1010
readme = "README.md"
1111
license = { text = "Apache 2.0" }
1212
dependencies = [
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
openai==1.99.9
2-
translator_service==0.0.1
2+
gettext_translator_service
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# gettext-translator-marianmt
2+
3+
Azure implementation for `translator-service`.
4+
5+
## Usage
6+
```python
7+
from translator_service import load_plugins
8+
9+
plugins = load_plugins()
10+
impl_cls = plugins["TranslatorAzure"]
11+
impl = impl_cls()
12+
impl.connect()
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""
2+
Copyright 2025 Rodolfo González González
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
"""
16+
17+
from .gettext_translator_marianmt import TranslatorMarianMT
18+
19+
__all__ = ["TranslatorMarianMT"]

0 commit comments

Comments
 (0)