Skip to content

Commit 8e5405e

Browse files
committed
i18n: add swiftWasm.link key and translations for the Swift tooltip links
1 parent 9299f9c commit 8e5405e

37 files changed

Lines changed: 74 additions & 1 deletion

‎src/livecodes/html/language-info.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ <h3 data-i18n="language-info:swiftWasm.name">Swift (Wasm)</h3>
14401440
<code>wasm-ld</code>, both compiled to WebAssembly, run entirely in the browser. No server is
14411441
involved.
14421442
</div>
1443-
<ul>
1443+
<ul data-i18n="language-info:swiftWasm.link" data-i18n-prop="innerHTML">
14441444
<li>
14451445
<a href="https://www.swift.org/" target="_blank" rel="noopener">Swift official website</a>
14461446
</li>

‎src/livecodes/i18n/locales/ar/language-info.lokalise.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,9 @@
807807
"swiftWasm.desc": {
808808
"translation": "يتم تجميع Swift إلى WebAssembly بواسطة مُترجم Swift نفسه: <tag-1>swift-frontend</tag-1> و<tag-2>wasm-ld</tag-2>، وكلاهما مُجمَّع إلى WebAssembly ويعمل بالكامل داخل المتصفح. لا يتضمن ذلك أي خادم."
809809
},
810+
"swiftWasm.link": {
811+
"translation": "<tag-1> <tag-2>الموقع الرسمي لـ Swift</tag-2> </tag-1> <tag-3> <tag-4>لغة البرمجة Swift</tag-4> </tag-3> <tag-5> <tag-6>تعلم X في Y دقائق، حيث X = Swift</tag-6> </tag-5> <tag-7> <tag-8>وثائق LiveCodes</tag-8> </tag-7> <tag-9> <tag-10>تحميل قالب البدء</tag-10> </tag-9>"
812+
},
810813
"swiftWasm.name": {
811814
"translation": "Swift (Wasm)"
812815
},

‎src/livecodes/i18n/locales/ar/language-info.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ const languageInfo: I18nLangInfoTranslation = {
453453
},
454454
swiftWasm: {
455455
desc: 'يتم تجميع Swift إلى WebAssembly بواسطة مُترجم Swift نفسه: <1>swift-frontend</1> و<2>wasm-ld</2>، وكلاهما مُجمَّع إلى WebAssembly ويعمل بالكامل داخل المتصفح. لا يتضمن ذلك أي خادم.',
456+
link: '<1> <2>الموقع الرسمي لـ Swift</2> </1> <3> <4>لغة البرمجة Swift</4> </3> <5> <6>تعلم X في Y دقائق، حيث X = Swift</6> </5> <7> <8>وثائق LiveCodes</8> </7> <9> <10>تحميل قالب البدء</10> </9>',
456457
name: 'Swift (Wasm)',
457458
},
458459
tcl: {

‎src/livecodes/i18n/locales/bn/language-info.lokalise.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,9 @@
807807
"swiftWasm.desc": {
808808
"translation": "Swift স্বয়ং Swift কম্পাইলার দ্বারা WebAssembly-তে কম্পাইল করা হয়েছে: <tag-1>swift-frontend</tag-1> এবং <tag-2>wasm-ld</tag-2>, উভয়ই WebAssembly-তে কম্পাইল করা হয়েছে এবং সম্পূর্ণরূপে ব্রাউজারে চলে। কোনো সার্ভার জড়িত নয়।"
809809
},
810+
"swiftWasm.link": {
811+
"translation": "<tag-1> <tag-2>Swift অফিসিয়াল ওয়েবসাইট</tag-2> </tag-1> <tag-3> <tag-4>Swift প্রোগ্রামিং ভাষা</tag-4> </tag-3> <tag-5> <tag-6>Y মিনিটে X শিখুন, যেখানে X=Swift</tag-6> </tag-5> <tag-7> <tag-8>লাইভকোডস ডকুমেন্টেশন</tag-8> </tag-7> <tag-9> <tag-10>স্টার্টার টেমপ্লেট লোড করুন</tag-10> </tag-9>"
812+
},
810813
"swiftWasm.name": {
811814
"translation": "Swift (Wasm)"
812815
},

‎src/livecodes/i18n/locales/bn/language-info.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ const languageInfo: I18nLangInfoTranslation = {
455455
},
456456
swiftWasm: {
457457
desc: 'Swift স্বয়ং Swift কম্পাইলার দ্বারা WebAssembly-তে কম্পাইল করা হয়েছে: <1>swift-frontend</1> এবং <2>wasm-ld</2>, উভয়ই WebAssembly-তে কম্পাইল করা হয়েছে এবং সম্পূর্ণরূপে ব্রাউজারে চলে। কোনো সার্ভার জড়িত নয়।',
458+
link: '<1> <2>Swift অফিসিয়াল ওয়েবসাইট</2> </1> <3> <4>Swift প্রোগ্রামিং ভাষা</4> </3> <5> <6>Y মিনিটে X শিখুন, যেখানে X=Swift</6> </5> <7> <8>লাইভকোডস ডকুমেন্টেশন</8> </7> <9> <10>স্টার্টার টেমপ্লেট লোড করুন</10> </9>',
458459
name: 'Swift (Wasm)',
459460
},
460461
tcl: {

‎src/livecodes/i18n/locales/de/language-info.lokalise.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,9 @@
807807
"swiftWasm.desc": {
808808
"translation": "Swift wird vom Swift-Compiler selbst zu WebAssembly kompiliert: <tag-1>swift-frontend</tag-1> und <tag-2>wasm-ld</tag-2> sind beide zu WebAssembly kompiliert und laufen vollständig im Browser. Es ist kein Server beteiligt."
809809
},
810+
"swiftWasm.link": {
811+
"translation": "<tag-1> <tag-2>Offizielle Website von Swift</tag-2> </tag-1> <tag-3> <tag-4>Die Swift Programmiersprache</tag-4> </tag-3> <tag-5> <tag-6>Lerne X in Y Minuten, wobei X = Swift</tag-6> </tag-5> <tag-7> <tag-8>LiveCodes-Dokumentation</tag-8> </tag-7> <tag-9> <tag-10>Startervorlage laden</tag-10> </tag-9>"
812+
},
810813
"swiftWasm.name": {
811814
"translation": "Swift (Wasm)"
812815
},

‎src/livecodes/i18n/locales/de/language-info.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ const languageInfo: I18nLangInfoTranslation = {
457457
},
458458
swiftWasm: {
459459
desc: 'Swift wird vom Swift-Compiler selbst zu WebAssembly kompiliert: <1>swift-frontend</1> und <2>wasm-ld</2> sind beide zu WebAssembly kompiliert und laufen vollständig im Browser. Es ist kein Server beteiligt.',
460+
link: '<1> <2>Offizielle Website von Swift</2> </1> <3> <4>Die Swift Programmiersprache</4> </3> <5> <6>Lerne X in Y Minuten, wobei X = Swift</6> </5> <7> <8>LiveCodes-Dokumentation</8> </7> <9> <10>Startervorlage laden</10> </9>',
460461
name: 'Swift (Wasm)',
461462
},
462463
tcl: {

‎src/livecodes/i18n/locales/en/language-info.lokalise.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,10 @@
10761076
"notes": "### <tag-1> ###\n<code />\n\n### <tag-2> ###\n<code />\n\n",
10771077
"translation": "Swift is compiled to WebAssembly by the Swift compiler itself: <tag-1>swift-frontend</tag-1> and <tag-2>wasm-ld</tag-2>, both compiled to WebAssembly, run entirely in the browser. No server is involved."
10781078
},
1079+
"swiftWasm.link": {
1080+
"notes": "### <tag-1> ###\n<li />\n\n### <tag-2> ###\n<a href=\"https://www.swift.org/\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-3> ###\n<li />\n\n### <tag-4> ###\n<a href=\"https://docs.swift.org/swift-book/\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-5> ###\n<li />\n\n### <tag-6> ###\n<a href=\"https://learnxinyminutes.com/swift/\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-7> ###\n<li />\n\n### <tag-8> ###\n<a href=\"{{DOCS_BASE_URL}}languages/swift-wasm\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-9> ###\n<li />\n\n### <tag-10> ###\n<a href=\"?template=swift-wasm\" class=\"button\" target=\"_parent\" data-template=\"swift-wasm\" />\n\n",
1081+
"translation": "<tag-1> <tag-2>Swift official website</tag-2> </tag-1> <tag-3> <tag-4>The Swift Programming Language</tag-4> </tag-3> <tag-5> <tag-6>Learn X in Y minutes, where X=Swift</tag-6> </tag-5> <tag-7> <tag-8>LiveCodes Documentation</tag-8> </tag-7> <tag-9> <tag-10>Load starter template</tag-10> </tag-9>"
1082+
},
10791083
"swiftWasm.name": {
10801084
"notes": "",
10811085
"translation": "Swift (Wasm)"

‎src/livecodes/i18n/locales/en/language-info.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ const languageInfo = {
463463
},
464464
swiftWasm: {
465465
desc: 'Swift is compiled to WebAssembly by the Swift compiler itself: <1>swift-frontend</1> and <2>wasm-ld</2>, both compiled to WebAssembly, run entirely in the browser. No server is involved.',
466+
link: '<1> <2>Swift official website</2> </1> <3> <4>The Swift Programming Language</4> </3> <5> <6>Learn X in Y minutes, where X=Swift</6> </5> <7> <8>LiveCodes Documentation</8> </7> <9> <10>Load starter template</10> </9>',
466467
name: 'Swift (Wasm)',
467468
},
468469
tcl: {

‎src/livecodes/i18n/locales/es/language-info.lokalise.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,9 @@
807807
"swiftWasm.desc": {
808808
"translation": "Swift se compila a WebAssembly por el propio compilador de Swift: <tag-1>swift-frontend</tag-1> y <tag-2>wasm-ld</tag-2>, ambos compilados a WebAssembly, se ejecutan íntegramente en el navegador. No hay ningún servidor involucrado."
809809
},
810+
"swiftWasm.link": {
811+
"translation": "<tag-1> <tag-2>Página web oficial de Swift</tag-2> </tag-1> <tag-3> <tag-4>El Lenguaje de Programación Swift</tag-4> </tag-3> <tag-5> <tag-6>Aprende X en Y minutos, donde X = Swift</tag-6> </tag-5> <tag-7> <tag-8>Documentación de LiveCodes</tag-8> </tag-7> <tag-9> <tag-10>Cargar plantilla de inicio</tag-10> </tag-9>"
812+
},
810813
"swiftWasm.name": {
811814
"translation": "Swift (Wasm)"
812815
},

0 commit comments

Comments
 (0)