소스 검색

refactor(yaml): run code formatter

George Cushen 4 년 전
부모
커밋
0153af8283

+ 2 - 1
scripts/sync_i18n.py

@@ -45,7 +45,8 @@ for filename in Path(I18N_PATH).glob("*.yaml"):
 
     # Write the synced language pack to file.
     with open(i18n_file, 'w') as f:
-      yaml.dump(tmp_map, f, allow_unicode=True, width=float("inf"))  # PyYAML will break lines unless a large column width is set.
+      # PyYAML will break lines unless a large column `width` is set.
+      yaml.dump(tmp_map, f, allow_unicode=True, width=float("inf"), default_style='\'')
     cnt += 1
 
 # Print results.

+ 13 - 1
wowchemy/.prettierignore

@@ -1 +1,13 @@
-assets/js/_vendor/
+_vendor/
+vendor/
+
+public/
+resources/
+
+*.html
+
+assets/css/reveal.css
+assets/scss/main.scss
+
+layouts/index.json
+layouts/index.webmanifest

+ 34 - 34
wowchemy/data/i18n/languages.yaml

@@ -1,34 +1,34 @@
-"ar": "عربي"
-"ca": "Català"
-"cs": "Česky"
-"da": "Dansk"
-"de": "Deutsch"
-"el": "Ελληνικά"
-"en": "English"
-"es": "Español"
-"et": "Eesti"
-"eu": "Euskara"
-"fa": "فارسی"
-"fr": "Français"
-"he": "עברית"
-"hu": "Magyar"
-"id": "Bahasa Indonesia"
-"it": "Italiano"
-"ja": "日本語"
-"km": "ភាសាខ្មែរ"
-"ko": "한국어"
-"lt": "Lietuvių"
-"lv": "Latviešu"
-"nb": "Norsk bokmål"
-"nl": "Nederlands"
-"pl": "Polski"
-"pt": "Português"
-"ro": "Română"
-"ru": "Русский"
-"so": "Soomaali"
-"sv": "Svenska"
-"tr": "Türkçe"
-"uk": "Українська"
-"vi": "Tiếng Việt"
-"zh": "中文 (简体)"
-"zh-Hant": "中文 (繁體)"
+'ar': 'عربي'
+'ca': 'Català'
+'cs': 'Česky'
+'da': 'Dansk'
+'de': 'Deutsch'
+'el': 'Ελληνικά'
+'en': 'English'
+'es': 'Español'
+'et': 'Eesti'
+'eu': 'Euskara'
+'fa': 'فارسی'
+'fr': 'Français'
+'he': 'עברית'
+'hu': 'Magyar'
+'id': 'Bahasa Indonesia'
+'it': 'Italiano'
+'ja': '日本語'
+'km': 'ភាសាខ្មែរ'
+'ko': '한국어'
+'lt': 'Lietuvių'
+'lv': 'Latviešu'
+'nb': 'Norsk bokmål'
+'nl': 'Nederlands'
+'pl': 'Polski'
+'pt': 'Português'
+'ro': 'Română'
+'ru': 'Русский'
+'so': 'Soomaali'
+'sv': 'Svenska'
+'tr': 'Türkçe'
+'uk': 'Українська'
+'vi': 'Tiếng Việt'
+'zh': '中文 (简体)'
+'zh-Hant': '中文 (繁體)'

+ 5 - 6
wowchemy/i18n/ar.yaml

@@ -10,7 +10,7 @@
   translation: المحتويات
 
 - id: back_to_top
-  translation:  الرجوع لأعلى الصفحة
+  translation: الرجوع لأعلى الصفحة
 
 # General
 
@@ -27,7 +27,7 @@
   translation: التالي
 
 - id: figure
-  translation: "شكل %d:"
+  translation: 'شكل %d:'
 
 - id: edit_page
   translation: عدل هذه الصفحة
@@ -49,7 +49,7 @@
   translation: المسودة
 
 - id: btn_pdf
-  translation:  بي دي اف
+  translation: بي دي اف
 
 - id: btn_cite
   translation: استشهاد
@@ -154,7 +154,7 @@
   translation: حدث
 
 - id: location
-  translation:  موقع
+  translation: موقع
 
 - id: pub_uncat
   translation: غير مصنف
@@ -211,7 +211,7 @@
   translation: ابحث هنا‫...‬
 
 - id: search_results
-  translation:  نتائج البحث
+  translation: نتائج البحث
 
 - id: search_no_results
   translation: لم يتم العثور على نتائج
@@ -226,7 +226,6 @@
 
 # Cookie consent
 
-
 - id: cookie_message
   translation: هذا الموقع يستخدم ملفات تعريف الارتباط "الكوكيز" لنمنحك أفضل تجربة مستخدم ممكنة
 

+ 1 - 1
wowchemy/i18n/cs.yaml

@@ -27,7 +27,7 @@
   translation: Další
 
 - id: figure
-  translation: "Obrázek %d:"
+  translation: 'Obrázek %d:'
 
 - id: edit_page
   translation: Upravit stránku

+ 1 - 1
wowchemy/i18n/en.yaml

@@ -36,7 +36,7 @@
   translation: Next
 
 - id: figure
-  translation: "Figure %d:"
+  translation: 'Figure %d:'
 
 - id: edit_page
   translation: Edit this page

+ 1 - 1
wowchemy/i18n/et.yaml

@@ -27,7 +27,7 @@
   translation: Edasi
 
 - id: figure
-  translation: "Kujutis %d:"
+  translation: 'Kujutis %d:'
 
 - id: edit_page
   translation: Muuda seda lehte

+ 1 - 1
wowchemy/i18n/fa.yaml

@@ -27,7 +27,7 @@
   translation: بعدی
 
 - id: figure
-  translation: "شکل %d:"
+  translation: 'شکل %d:'
 
 - id: edit_page
   translation: ویرایش صفحه

+ 1 - 1
wowchemy/i18n/he.yaml

@@ -27,7 +27,7 @@
   translation: הבא
 
 - id: figure
-  translation: "איור %d:"
+  translation: 'איור %d:'
 
 - id: edit_page
   translation: עריכת דף זה

+ 1 - 1
wowchemy/i18n/km.yaml

@@ -2,7 +2,7 @@
 
 - id: toggle_navigation
   translation: បិទ/បើក នាវាចរណ៍
-  
+
 - id: table_of_contents
   translation: តារាងមាតិកា
 

+ 1 - 1
wowchemy/i18n/lt.yaml

@@ -27,7 +27,7 @@
   translation: Tolimesnis
 
 - id: figure
-  translation: "Pav. %d:"
+  translation: 'Pav. %d:'
 
 - id: edit_page
   translation: Redaguoti šį puslapį

+ 2 - 2
wowchemy/i18n/lv.yaml

@@ -27,7 +27,7 @@
   translation: Uz priekšu
 
 - id: figure
-  translation: "Attēls %d:"
+  translation: 'Attēls %d:'
 
 - id: edit_page
   translation: Rediģēt šo lapu
@@ -222,4 +222,4 @@
   translation: Sapratu!
 
 - id: cookie_learn
-  translation: Uzzināt vairāk
+  translation: Uzzināt vairāk

+ 1 - 1
wowchemy/i18n/nb.yaml

@@ -27,7 +27,7 @@
   translation: Neste
 
 - id: figure
-  translation: "Figur %d:"
+  translation: 'Figur %d:'
 
 - id: edit_page
   translation: Rediger denne siden

+ 1 - 1
wowchemy/i18n/pl.yaml

@@ -87,7 +87,7 @@
 - id: pub_conf
   translation: Prezentacja z konferencji
 - id: pub_journal
-  translation: Artykuł w czasopiśmie 
+  translation: Artykuł w czasopiśmie
 - id: pub_preprint
   translation: Preprint
 - id: pub_report

+ 1 - 1
wowchemy/i18n/ro.yaml

@@ -1,5 +1,5 @@
 - id: toggle_navigation
-  translation:  Bara de navigare
+  translation: Bara de navigare
 - id: table_of_contents
   translation: Indice
 - id: on_this_page

+ 1 - 1
wowchemy/i18n/so.yaml

@@ -27,7 +27,7 @@
   translation: Xiga
 
 - id: figure
-  translation: "Sawir %d:"
+  translation: 'Sawir %d:'
 
 - id: edit_page
   translation: Tifatir Boggan

+ 1 - 1
wowchemy/i18n/sv.yaml

@@ -27,7 +27,7 @@
   translation: Nästa
 
 - id: figure
-  translation: "Figur %d:"
+  translation: 'Figur %d:'
 
 - id: edit_page
   translation: Redigera den här sidan

+ 1 - 1
wowchemy/i18n/uk.yaml

@@ -27,7 +27,7 @@
   translation: Наступний
 
 - id: figure
-  translation: "Схема %d:"
+  translation: 'Схема %d:'
 
 - id: edit_page
   translation: Редагувати цю сторінку

+ 1 - 1
wowchemy/i18n/zh-Hant.yaml

@@ -2,7 +2,7 @@
 
 - id: toggle_navigation
   translation: 切換導航
-  
+
 - id: table_of_contents
   translation: 目錄