8 Commits

Author SHA1 Message Date
30d6b1c721 Merge pull request 'fixed translation for map, bumped version' (#1) from map-translation-fix into main
All checks were successful
Pack Validation CI / validate (push) Successful in 8s
Publish Language Pack / verify (push) Successful in 7s
Publish Language Pack / publish (push) Successful in 14s
Reviewed-on: #1
2026-05-24 00:14:17 +00:00
76c0bbed1a fixed translation for map, bumped version
All checks were successful
Pack Validation CI / validate (pull_request) Successful in 15s
2026-05-23 19:13:48 -05:00
79204a473e fixed broken link
All checks were successful
Pack Validation CI / validate (push) Successful in 8s
Trigger Docs Rebuild / trigger (push) Successful in 2s
2026-05-21 15:12:36 +00:00
0802e81d41 fixed readme
All checks were successful
Pack Validation CI / validate (push) Successful in 8s
Trigger Docs Rebuild / trigger (push) Successful in 3s
2026-05-21 15:02:29 +00:00
2545d7ed9a test change readme
All checks were successful
Pack Validation CI / validate (push) Successful in 8s
Trigger Docs Rebuild / trigger (push) Successful in 3s
2026-05-20 22:06:08 -05:00
4c104baf4f add readme to main docs
All checks were successful
Pack Validation CI / validate (push) Successful in 8s
2026-05-20 22:05:21 -05:00
619a1b2660 added README minimal
All checks were successful
Pack Validation CI / validate (push) Successful in 8s
2026-05-20 17:47:50 -05:00
8b2bf776e2 fixed release naming in workflow publish.yml
All checks were successful
Pack Validation CI / validate (push) Successful in 7s
2026-05-19 18:00:48 -05:00
5 changed files with 133 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ jobs:
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{ -d "{
\"tag_name\": \"$TAG\", \"tag_name\": \"$TAG\",
\"name\": \"$REPO_NAME $TAG\", \"name\": \"$TAG\",
\"body\": \"Language pack release version $TAG for the foreignthon transpiler framework.\", \"body\": \"Language pack release version $TAG for the foreignthon transpiler framework.\",
\"draft\": false, \"draft\": false,
\"prerelease\": false \"prerelease\": false

View File

@@ -0,0 +1,21 @@
name: Trigger Docs Rebuild
on:
push:
branches: ["main"]
paths:
- "README.md"
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger docs rebuild
env:
DOCS_TOKEN: ${{ secrets.DOCS_TRIGGER_TOKEN }}
run: |
curl -s -X POST \
-H "Authorization: token $DOCS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ref": "main"}' \
"https://git.keshavanand.net/api/v1/repos/foreign-thon/foreignthon-docs/actions/workflows/deploy.yml/dispatches"

107
README.md
View File

@@ -1 +1,108 @@
# foreignthon-es # foreignthon-es
Spanish language pack for [ForeignThon](https://foreignthon.keshavanand.net/) — write Python in Español.
---
## Install
```bash
pip install foreignthon foreignthon-es
```
---
## Example
**`fizzbuzz.es.py`**
```python
def fizzbuzz(n):
para i en dist(1, n + 1):
si i % 15 == 0:
imprimir("FizzBuzz")
osi i % 3 == 0:
imprimir("Fizz")
osi i % 5 == 0:
imprimir("Buzz")
sino:
imprimir(i)
fizzbuzz(20)
```
Compiles to standard Python:
```python
def fizzbuzz(n):
for i in range(1, n + 1):
if i % 15 == 0:
print("FizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)
fizzbuzz(20)
```
Run it directly:
```bash
fpy run fizzbuzz.es.py
```
---
## Keyword reference
| Python | Español |
|---|---|
| `if` | `si` |
| `else` | `sino` |
| `elif` | `osi` |
| `for` | `para` |
| `while` | `mientras` |
| `def` | `def` |
| `class` | `clase` |
| `return` | `retornar` |
| `import` | `importar` |
| `True` | `Verda` |
| `False` | `Falso` |
| `None` | `Nada` |
| `print` | `imprimir` |
| `input` | `entrada` |
| `len` | `lon` |
| `range` | `dist` |
Full mapping: [`src/foreignthon_es/es.json`](https://git.keshavanand.net/foreign-thon/foreignthon-es/raw/branch/main/src/foreignthon_es/es.json)
---
## Start a project
```bash
fpy new myproject --lang es
cd myproject
fpy run src/main.es.py
```
---
## Documentation
→ [foreignthon.keshavanand.net](https://foreignthon.keshavanand.net/)
---
## Contributing
Found a missing translation or a better keyword choice? Open an issue or PR — no access to the core repo needed.
---
## License
GPL v3

View File

@@ -4,13 +4,13 @@ build-backend = "hatchling.build"
[project] [project]
name = "foreignthon-es" name = "foreignthon-es"
version = "0.3.2" version = "0.3.3"
description = "Spanish language pack for ForeignThon." description = "Spanish language pack for ForeignThon."
license = { text = "GPL v3" } license = { text = "GPL v3" }
requires-python = ">=3.9" requires-python = ">=3.9"
authors = [ authors = [
{ name = "Keshav Anand", email = "keshavanand.dev@gmail.com" }, { name = "Keshav Anand", email = "keshavanand.dev@gmail.com" },
{ name = "Cody Trainer" }, { name = "Cody Trainer" },
] ]
keywords = ["foreignthon", "spanish", "español"] keywords = ["foreignthon", "spanish", "español"]

View File

@@ -58,7 +58,7 @@
"bool": "bool", "bool": "bool",
"abrir": "open", "abrir": "open",
"enumerar": "enumerate", "enumerar": "enumerate",
"map": "map", "mapa": "map",
"filtrar": "filter", "filtrar": "filter",
"ordenado": "sorted", "ordenado": "sorted",
"invertido": "reversed", "invertido": "reversed",