microsoft / microsoft/TypeScript

Allow custom keywords to make it easy for children in different languages to contact typescript for simple computational experiments

Offen
#31,256 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Awaiting More Feedback Suggestion
Vorherrschende Sprache
Go
Sterne
111k
Forks
14.4k
Ø Merge
1 T. 19 Std.
Gemergte PRs (30 T.)
117

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Der Issue nennt keine Dateien, Tests oder keinen Einstiegspunkt des Compilers. Beginne damit zu ermitteln, wo TypeScript Schlüsselwörter parst und wie lokalisierte Schlüsselwortmengen angegeben werden könnten; definiere anschließend eine konkrete unterstützte Syntax und Tests, die zeigen, dass übersetzte Beispiele kompiliert werden, ohne das ausgegebene JavaScript zu ändern.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
compilers, localization
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
15/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.