This repository was archived by the owner on Apr 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +34
-2
lines changed Expand file tree Collapse file tree 5 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <span >{{ en[t] }}</span >
3
+ </template >
4
+
5
+ <script lang="ts">
6
+ import { Component , Vue , Prop } from " vue-property-decorator" ;
7
+ import flat from " flat" ;
8
+ import en from " @/locales/en" ;
9
+
10
+ @Component
11
+ export default class Translate extends Vue {
12
+ en = flat (en );
13
+ @Prop ({ required: true }) t;
14
+ }
15
+ </script >
Original file line number Diff line number Diff line change @@ -108,5 +108,12 @@ export default {
108
108
10 : "October" ,
109
109
11 : "November" ,
110
110
12 : "December"
111
+ } ,
112
+ pages : {
113
+ index : {
114
+ hero : {
115
+ title : "Staart is a SaaS starter for your next big idea."
116
+ }
117
+ }
111
118
}
112
119
} ;
Original file line number Diff line number Diff line change 23
23
"countries-and-timezones" : " ^1.0.1" ,
24
24
"date-fns" : " ^1.30.1" ,
25
25
"downloadjs" : " ^1.4.7" ,
26
+ "flat" : " ^4.1.0" ,
26
27
"hashids" : " ^1.2.2" ,
27
28
"jwt-decode" : " ^2.2.0" ,
28
29
"meta-ctrl-enter" : " ^1.0.2" ,
Original file line number Diff line number Diff line change 4
4
<div class =" container" >
5
5
<div class =" row" >
6
6
<div >
7
- <h1 >Staart is a SaaS starter for your next big idea. </h1 >
7
+ <h1 >< Translate t = " pages.index.hero.title " /> </h1 >
8
8
<p style =" max-width : 500px " >
9
9
Written in TypeScript and Vue, Staart gives you a 6-month
10
10
headstart in building your SaaS product. Free and open-source.
@@ -452,6 +452,7 @@ import {
452
452
faVuejs ,
453
453
faAccessibleIcon
454
454
} from " @fortawesome/free-brands-svg-icons" ;
455
+ import Translate from " @/components/Translate.vue" ;
455
456
library .add (
456
457
faSync ,
457
458
faMagic ,
@@ -480,6 +481,7 @@ library.add(
480
481
isAuthenticated: " auth/isAuthenticated"
481
482
}),
482
483
components: {
484
+ Translate ,
483
485
FontAwesomeIcon
484
486
}
485
487
})
Original file line number Diff line number Diff line change @@ -4401,6 +4401,13 @@ flat-cache@^2.0.1:
4401
4401
rimraf "2.6.3"
4402
4402
write "1.0.3"
4403
4403
4404
+ flat@^4.1.0 :
4405
+ version "4.1.0"
4406
+ resolved "https://registry.yarnpkg.com/flat/-/flat-4.1.0.tgz#090bec8b05e39cba309747f1d588f04dbaf98db2"
4407
+ integrity sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==
4408
+ dependencies :
4409
+ is-buffer "~2.0.3"
4410
+
4404
4411
flatted@^2.0.0 :
4405
4412
version "2.0.0"
4406
4413
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.0.tgz#55122b6536ea496b4b44893ee2608141d10d9916"
@@ -5284,7 +5291,7 @@ is-buffer@^1.1.5:
5284
5291
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
5285
5292
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==
5286
5293
5287
- is-buffer@^2.0.2 :
5294
+ is-buffer@^2.0.2, is-buffer@~2.0.3 :
5288
5295
version "2.0.3"
5289
5296
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.3.tgz#4ecf3fcf749cbd1e472689e109ac66261a25e725"
5290
5297
integrity sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==
You can’t perform that action at this time.
0 commit comments