microsoft / microsoft/TypeScript
Allow custom keywords to make it easy for children in different languages to contact typescript for simple computational experiments
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
Search Terms
custome keywords
Suggestion
Allow custom keywords to make it easy for children in different languages to contact typescript for simple computational experiments
This requires a keyword standard in different language environments.
Unfortunately, no standardization organization has set standards for it, and because of the inaccuracy of translation, there is not even a recognized standard.
Use Cases
Let children play with programming.
eg:
lingascript (Multilingual Javascript, based on Typescript)
chinese keywords typescript, use cases of chinese keywords typescript
Japanese keyword javascript nadesiko3
Examples
//English
function sum(a:number,b:number):number{
return a+b;
}
//Chinese
函数 加和( a:数字, b:数字) :数字{
返回 a+b
}
//Russian
функция суммировать( a:цифра, b:цифра) :цифра{
возвращение a+b
}
//Japanese
関数 和を加える( a:数字, b:数字) :数字{
戻る a+b
}
... etc.
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
L'issue non indica alcun file, test o punto di ingresso del compilatore. Inizia determinando dove TypeScript analizza le parole chiave e come potrebbero essere specificati set di parole chiave localizzati, quindi definisci una sintassi supportata concreta e test che dimostrino che gli esempi tradotti vengono compilati senza modificare il JavaScript emesso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- compilers, localization
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 15/100