ソースを参照

translate_Chinese (#198)

* translate_Chinese

* translate_Chinese
BoT 4 年 前
コミット
00b42fd266

+ 3 - 0
exampleSite/config.yaml

@@ -27,6 +27,9 @@ languages:
   it:
     languageName: Italian
     weight: 7
+  cn:
+    languageName: 中文
+    weight: 8
 
 # Force a locale to be use, really useful to develop the application ! Should be commented in production, the "weight" should rocks.
 # DefaultContentLanguage: fr

+ 18 - 0
exampleSite/data/cn/author.yaml

@@ -0,0 +1,18 @@
+# some information about you
+name: "乔伊"
+nickname: "伊"
+# greeting message before your name. it will default to "Hi! I am" if not provided
+greeting: "哟, 我是"
+image: "images/author/john.png"
+# give your some contact information. they will be used in the footer
+contactInfo:
+  邮箱: "qiaoyi@example.com"
+  电话: "+0123456789"
+
+# some summary about what you do,首页滚动信息
+summary:
+  - I am a Developer
+  - I am a Devops
+  - I love servers
+  - I work on open-source projects
+  - I love to work with some fun projects

+ 82 - 0
exampleSite/data/cn/sections/about.yaml

@@ -0,0 +1,82 @@
+# section information
+section:
+  name: 简介
+  id: about
+  enable: true
+  weight: 1
+  showOnNavbar: true
+  template: sections/about.html
+
+# your designation
+designation: 软件工程师
+# your company information
+company:
+  name: 某某公司.
+  url: "https://www.example.com"
+
+# your resume. this file path should be relative to you "static" directory
+resume: "files/resume.pdf"
+
+# a summary about you
+summary: "我是一个软件工程师,就职于某某公司,巴拉巴拉."
+
+# your social links
+# give as many as you want. use font-awesome for the icons.
+socialLinks:
+  - name: Email
+    icon: "fas fa-envelope"
+    url: "example@gmail.com"
+
+  - name: Github
+    icon: "fab fa-github"
+    url: "https://www.github.com/example"
+
+  - name: PGP key
+    icon: "fab fa-keybase"
+    url: "#"
+
+  - name: LinkedIn
+    icon: "fab fa-linkedin"
+    url: "#"
+
+  - name: Twitter
+    icon: "fab fa-twitter"
+    url: "#"
+
+  - name: Facebook
+    icon: "fab fa-facebook"
+    url: "#"
+
+  - name: Steam
+    icon: "fab fa-steam"
+    url: "#"
+
+# your soft skills
+# give the percentage between 50 to 100 with 5 intervals.
+# currently supported colors: blue, yellow, pink, green, sky, orange
+softSkills:
+  - name: 领导能力
+    percentage: 90
+    color: blue
+  - name: 团队合作
+    percentage: 90
+    color: yellow
+  - name: 沟通能力
+    percentage: 85
+    color: pink
+  - name: 辛勤刻苦
+    percentage: 85
+    color: green
+  - name: 接受能力
+    percentage: 85
+    color: sky
+  - name: 攻坚能力
+    percentage: 85
+    color: orange
+# you can also provide color code instead of pre-defined color name
+# - name: Example 1
+#   percentage: 75
+#   color: "#00adb5"
+# - name: Example 2
+#   percentage: 65
+#   color: "#8b8383"

+ 24 - 0
exampleSite/data/cn/sections/achievements.yaml

@@ -0,0 +1,24 @@
+# section information
+section:
+  name: 成就
+  id: achievements
+  enable: true
+  weight: 6
+  showOnNavbar: true
+  # Can optionally hide the title in sections
+  # hideTitle: true
+
+# Your achievements achievements
+achievements:
+- title: Best Presenter
+  image: /images/sections/achievements/presenter.jpg
+  summary: Best presenter in the 2020 XYZ conference.
+- title: Champion
+  image: /images/sections/achievements/sport.jpg
+  summary: Champion in cycling inter-city cycling championship 2020.
+- title: Graduation
+  image: /images/sections/achievements/graduation-cap.jpg
+  summary: Received Bachelor of Science (B.Sc.) in Computer Science and Engineer from XYZ University.
+- title: Award Winner
+  image: /images/sections/achievements/woman-winner.jpg
+  summary: Wined best paper award at IEE Conference 2020.

+ 64 - 0
exampleSite/data/cn/sections/experiences.yaml

@@ -0,0 +1,64 @@
+# section information
+section:
+  name: 履历
+  id: experiences
+  enable: true
+  weight: 3
+  showOnNavbar: true
+  # Can optionally hide the title in sections
+  # hideTitle: true 
+
+# Your experiences
+experiences:
+- company:
+    name: Example Co.
+    url: "https://www.example.com"
+    location: Dhaka Branch
+    # company overview
+    overview: Example Co. is a widely recognized company for cloud-native development. It builds tools for Kubernetes.
+  positions:
+  - designation: Senior Software Engineer
+    start: Nov 2019
+    # don't provide end date if you are currently working there. It will be replaced by "Present"
+    # end: Dec 2020
+    # give some points about what was your responsibilities at the company.
+    responsibilities:
+    - Design and develop XYZ tool for ABC task
+    - Design, develop and manage disaster recovery tool [Xtool](https://www.example.com) that backup Kubernetes volumes, databases, and cluster's resource definition.
+    - Lead backend team.
+
+  - designation: Junior Software Engineer
+    start: Nov 2017
+    end: Oct 2019
+    responsibilities:
+    - Implement and test xyz feature for abc tool.
+    - Support client for abc tool.
+    - Learn k,d,w technology for xyz.
+
+- company:
+    name: PreExample Co.
+    url: "https://www.preexample.com"
+    location: Nowhere
+    overview: PreExample Co. is a gateway company to enter into Example co. So, nothing special here.
+  positions:
+  - designation: Software Engineer
+    start: March 2016
+    end: May 2017
+    responsibilities:
+    - Write lots of example codes.
+    - Read lots of examples.
+    - See lots of example videos.
+
+- company:
+    name: Intern Counting Company (ICC).
+    url: "https://www.intern.com"
+    location: Intern Land
+    overview: Intern counting Company (ICC) is responsible for counting worldwide intern Engineers.
+  positions:
+  - designation: Intern
+    start: Jun 2015
+    end: Jan 2016
+    responsibilities:
+    - Count lost of interns.
+    - Count more interns.
+    - Count me as an intern.

+ 64 - 0
exampleSite/data/cn/sections/projects.yaml

@@ -0,0 +1,64 @@
+# section information
+section:
+  name: 项目
+  id: projects
+  enable: true
+  weight: 4
+  showOnNavbar: true
+  # Can optionally hide the title in sections
+  # hideTitle: true
+
+# filter buttons
+buttons:
+- name: All
+  filter: "all"
+- name: Professional
+  filter: "professional"
+- name: Academic
+  filter: "academic"
+- name: Hobby
+  filter: "hobby"
+
+# your projects
+projects:
+- name: Kubernetes
+  logo: /images/sections/projects/kubernetes.png
+  role: Contributor
+  timeline: "March 2018 - Present"
+  repo: https://github.com/kubernetes/kubernetes # If your project is a public repo on GitHub, then provide this link. it will show star count.
+  #url: ""  # If your project is not a public repo but it has a website or any external details url then provide it here. don't provide "repo" and "url" simultaneously.
+  summary: Production-Grade Container Scheduling and Management.
+  tags: ["professional", "kubernetes", "cloud"]
+
+- name: Tensorflow
+  logo: /images/sections/projects/tensorflow.png
+  role: Developer
+  timeline: "Jun 2018 - Present"
+  repo: https://github.com/tensorflow/tensorflow
+  #url: ""
+  summary: An Open Source Machine Learning Framework for Everyone.
+  tags: ["professional", "machine-learning","academic"]
+
+- name: A sample academic paper
+  role: Team Lead
+  timeline: "Jan 2017 - Nov 2017"
+  url: "https://www.example.com"
+  summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Sapiente eius reprehenderit animi suscipit autem eligendi esse amet aliquid error eum. Accusantium distinctio soluta aliquid quas placeat modi suscipit eligendi nisi.
+  tags: ["academic","iot"]
+
+- name: Nocode
+  logo: /images/sections/projects/no-code.png
+  role: Nothing
+  timeline: "Oct 2019 - Dec 2019"
+  repo: https://github.com/kelseyhightower/nocode
+  #url: ""
+  summary: The best way to write secure and reliable applications. Write nothing; deploy nowhere.
+  tags: ["hobby", "fun"]
+
+- name: Toha
+  logo: /images/sections/projects/toha.png
+  role: Owner
+  timeline: "Jun 2019 - Present"
+  repo: https://github.com/hossainemruz/toha
+  summary: A Hugo theme for personal portfolio.
+  tags: ["hobby","hugo","theme","professional"]

+ 11 - 0
exampleSite/data/cn/sections/recent-posts.yaml

@@ -0,0 +1,11 @@
+# section information
+section:
+  name: 最近文章
+  id: recent-posts
+  enable: true
+  weight: 5
+  showOnNavbar: true
+  # Can optionally hide the title in sections
+  # hideTitle: true
+
+# no additional configuration is required

+ 49 - 0
exampleSite/data/cn/sections/skills.yaml

@@ -0,0 +1,49 @@
+# section information
+section:
+  name: 技能
+  id: skills
+  enable: true
+  weight: 2
+  showOnNavbar: true
+  # Can optionally hide the title in sections
+  # hideTitle: true
+
+# Your Skills.
+# Give a summary of you each skill in the summary section.
+skills:
+- name: Kubernetes
+  icon: "/images/sections/skills/kubernetes.png"
+  summary: "Capable of deploying, managing application on Kubernetes. Experienced in writing Kubernetes controllers for CRDs."
+  url: "https://kubernetes.io/"
+
+- name: Go Development
+  icon: "/images/sections/skills/go.png"
+  summary: "Using as the main language for professional development. Capable of writing scalable, testable, and maintainable program."
+  url: "https://golang.org/"
+
+- name: Cloud Computing
+  icon: "/images/sections/skills/cloud.png"
+  summary: "Worked with most of the major clouds such as GCP, AWS, Azure etc."
+
+- name: Docker
+  icon: "/images/sections/skills/docker.svg"
+  summary: "Write most of the programs as dockerized container. Experienced with multi-stage, multi-arch build process."
+  url: "https://www.docker.com/"
+
+- name: Prometheus
+  icon: "/images/sections/skills/prometheus.png"
+  summary: "Capable of setup, configure Prometheus metrics. Experienced with PromQL, AlertManager. Also, experienced with writing metric exporters."
+  url: "https://prometheus.io/"
+
+- name: Linux
+  icon: "/images/sections/skills/linux.png"
+  summary: "Using as the main operating system. Capable of writing bash/shell scripts."
+
+- name: Git
+  icon: "/images/sections/skills/git.png"
+  summary: "Experienced with git-based development. Mostly, use Github. Also, have experience in working with GitLab."
+  url: "https://git-scm.com/"
+
+- name: C++
+  icon: "/images/sections/skills/c++.png"
+  summary: "Know basic C/C++ programming. Used for contest programming and problem solving."

+ 13 - 0
exampleSite/data/cn/site.yaml

@@ -0,0 +1,13 @@
+# Copyright Notice
+copyright: © 2008 - 2020 Copyright.
+
+# Meta description for your site.  This will help the search engines to find your site.
+description: Portfolio and personal blog of John Doe.
+
+# specify the list of custom menus that you want to show in the top navbar.
+# they will be separated by a divider from the main menus.
+customMenus:
+  - name: 文档
+    url: https://toha-guides.netlify.app/posts/
+  # - name: 关于 #这里可以放个人说明页
+  #   url: about

+ 51 - 0
i18n/cn.toml

@@ -0,0 +1,51 @@
+# More documentation here: https://github.com/nicksnyder/go-i18n
+[home]
+other = "主页"
+
+[posts]
+other = "博文"
+
+[toc_heading]
+other = "目录"
+
+[at]
+other = "at"
+
+[resume]
+other = "我的简历"
+
+[navigation]
+other = "导航"
+
+[contact_me]
+other = "联系方式:"
+
+[email]
+other = "邮箱"
+
+[phone]
+other = "电话"
+
+[newsletter_text]
+other = "通过电子邮件接收最新信息"
+
+[newsletter_input_placeholder]
+other = "填入 E-mail"
+
+[newsletter_warning]
+other = "我们绝不会与任何人共享您的电子邮件。"
+
+[submit]
+other = "提交"
+
+[hugoAttributionText]
+other = "Powered by"
+
+[prev]
+other = "上一篇"
+
+[next]
+other = "下一篇"
+
+[improve_this_page]
+other = "改善此页面"