π Phrases Configuration β
The phrases
array contains all quotes in your application.
π Schema β
ts
interface PhraseSchema {
message: string | InternationalizationSchema[];
footer?: string | InternationalizationSchema[];
image?: string;
badgeId?: string;
}
π·οΈ Properties β
message β
- Type:
string | InternationalizationSchema[]
- Required:
true
- Description: The quote text
footer β
- Type:
string | InternationalizationSchema[]
- Required:
false
- Description: Quote attribution or author
- Default: Value in
author
ofgenerals
orAnonymous
image β
- Type:
string
- Required:
false
- Description: URL of an image associated with the quote
- Default: Value in
authorImage
ofgenerals
or/author.png
badgeId β
- Type:
string
- Required:
false
- Description: ID of a badge to apply to this quote
- Default: Not Render any Badge
β¨ Example β
ts
export const phrases: PhraseSchema[] = [
{
message: [
{ languageId: 'en', message: 'Hello World!' },
{ languageId: 'es', message: 'Β‘Hola Mundo!' }
],
footer: 'Someone',
badgeId: 'new'
},
{
message: 'Vue Quotes rocks π€',
footer: 'An awesome developer',
image: '/custom-image.png'
}
]