Ver código fonte

Add i18n to experiences section (#232)

Roxedus 4 anos atrás
pai
commit
a15f7364f8

+ 6 - 0
i18n/en.toml

@@ -73,3 +73,9 @@ other = "Extracurricular Activities"
 
 [see_more]
 other = "See More"
+
+[responsibilities]
+other = "Responsibilities:"
+
+[present]
+other = "Present"

+ 2 - 2
layouts/partials/sections/experiences/single-position.html

@@ -5,14 +5,14 @@
         <h5>{{ $position.designation }}</h5>
         <h6>{{ if .company.url }}<a href={{.company.url}}>{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h6>
         <!-- Add experience duration info -->
-        <p class="text-muted">{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}Present{{ end }},
+        <p class="text-muted">{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }},
             {{ .company.location }}
         </p>
     </div>
     <!-- Add company overview -->
     <p>{{ .company.overview | markdownify }}</p>
     <!-- Add the responsibilities handled at this position -->
-    <h6 class="text-muted">Responsibilities:</h6>
+    <h6 class="text-muted">{{ i18n "responsibilities" }}</h6>
     <ul class="justify-content-around">
     {{ range $position.responsibilities }}
         <li>{{ . | markdownify }}</li>