mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-13 19:41:40 +00:00
[AB-xxx] changing locale of templates to default, instead of explicitly en_US
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<#assign httpCode=model.responseCode>
|
||||
<#include "suggest_queries_request_exception_text">
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"title": {
|
||||
"title": "${word?json_string}"
|
||||
},
|
||||
<#macro definitionDisplay definition>
|
||||
<#assign meaning=definition.definition>
|
||||
<#assign hasExample=definition.example?has_content>
|
||||
<#if hasExample>
|
||||
<#assign example=definition.example>
|
||||
</#if>
|
||||
<@safe_include "dictionaryDefinition_response_meaning_display"/>
|
||||
|
||||
|
||||
</#macro>
|
||||
"description": "<#list definitions as definition>${definition?index + 1}: <@definitionDisplay definition=definition /></#list>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "dictionary_api_request_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_dictionary_api_definition_found_exception_text">
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"color" : {
|
||||
"r": ${embedColor.red},
|
||||
"g": ${embedColor.green},
|
||||
"b": ${embedColor.blue}
|
||||
},
|
||||
<#assign weatherMap = { "Rain": "🌧️", "Clouds": "☁️", "Mist": "🌁", "Fog": "🌫️", "Sand": "⏳", "Dust": "⏳", "Thunderstorm": "⛈️", "Snow": "🌨️", "Clear": "☀️"}>
|
||||
<#assign locationName=locationName>
|
||||
<#assign countryKey=countryKey>
|
||||
<#assign weatherIcon>${weatherMap[mainWeather]!""}</#assign>
|
||||
<#assign weatherKey=mainWeather!"">
|
||||
<#assign weatherDescription=description!"">
|
||||
<#assign weatherLocationLink>https://openweathermap.org/city/${locationId?c}</#assign>
|
||||
"description": "<@safe_include "openWeatherMap_command_response_description"/>",
|
||||
"fields": [
|
||||
<#if temperature??>
|
||||
{
|
||||
<#assign displayTemperaturRange=maxTemperature!=minTemperature>
|
||||
"name": "<@safe_include "openWeatherMap_command_response_field_temperature_field_title"/>",
|
||||
"value": "<@safe_include "openWeatherMap_command_response_field_temperature_field_value"/>",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "openWeatherMap_command_response_field_temperature_feels_like_field_title"/>",
|
||||
"value": "${feelsLikeTemperature}°C",
|
||||
"inline": "true"
|
||||
}
|
||||
</#if>
|
||||
<#if windSpeed??>
|
||||
<#if temperature??>,</#if>
|
||||
{
|
||||
"name": "<@safe_include "openWeatherMap_command_response_field_wind_field_title"/>",
|
||||
"value": "${windSpeed}m/s",
|
||||
"inline": "true"
|
||||
}
|
||||
</#if>
|
||||
<#if humidity??>
|
||||
<#if windSpeed?? || temperature??>,</#if>
|
||||
{
|
||||
"name": "<@safe_include "openWeatherMap_command_response_field_humidity_field_title"/>",
|
||||
"value": "${humidity}%",
|
||||
"inline": "true"
|
||||
}
|
||||
</#if>
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_weather_location_found_exception_text">
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"additionalMessage": "https://threadreaderapp.com/thread/${tweetId?c}.html"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_twitter_link_found_exception_text">
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "${definition.definition?json_string}",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_author"/>",
|
||||
"value": "${definition.author?json_string}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_up_votes"/>",
|
||||
"value": "${definition.upvoteCount}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_downvotes"/>",
|
||||
"value": "${definition.downVoteCount}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_link"/>",
|
||||
"value": "[<@safe_include "urban_search_command_response_embed_field_value_jump"/>](${definition.url?json_string})",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_example"/>",
|
||||
"value": "${definition.example?json_string}"
|
||||
}
|
||||
],
|
||||
"timeStamp": "${definition.creationDate}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_urban_definition_found_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign httpCode=model.responseCode>
|
||||
<#include "urban_dictionary_request_exception_text">
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"title": {
|
||||
"title": "${title?json_string}"
|
||||
},
|
||||
"description": "${summary?json_string}"
|
||||
}
|
||||
],
|
||||
"buttons": [
|
||||
{
|
||||
"label": "<@safe_include "wikipediaArticleSummary_jump_link"/>",
|
||||
"url": "${fullURL?json_string}",
|
||||
"buttonStyle": "link",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_wikipedia_article_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "wikipedia_request_exception_text">
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"fields": [
|
||||
<#if video.views??>
|
||||
{
|
||||
"name": "<@safe_include "youtube_search_command_response_embed_field_title_views"/>",
|
||||
"value": "${video.views}",
|
||||
"inline": "true"
|
||||
}
|
||||
<#if video.likes?? || video.dislikes?? || video.commentCount??>,</#if>
|
||||
</#if>
|
||||
<#if video.likes??>
|
||||
{
|
||||
"name": "<@safe_include "youtube_search_command_response_embed_field_title_likes"/>",
|
||||
"value": "${video.likes}",
|
||||
"inline": "true"
|
||||
}
|
||||
<#if video.dislikes?? || video.commentCount??>,</#if>
|
||||
</#if>
|
||||
<#if video.dislikes??>
|
||||
{
|
||||
"name": "<@safe_include "youtube_search_command_response_embed_field_title_dislikes"/>",
|
||||
"value": "${video.dislikes}",
|
||||
"inline": "true"
|
||||
}
|
||||
<#if video.commentCount??>,</#if>
|
||||
</#if>
|
||||
<#if video.commentCount??>
|
||||
{
|
||||
"name": "<@safe_include "youtube_search_command_response_embed_field_title_comment_count"/>",
|
||||
"value": "${video.commentCount}",
|
||||
"inline": "true"
|
||||
}
|
||||
</#if>
|
||||
],
|
||||
"footer": {
|
||||
"text": "<@safe_include "youtube_search_command_response_embed_footer"/>"
|
||||
},
|
||||
"timeStamp": "${video.publishedAt}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"additionalMessage": "${video.url}"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign exception=model.exception>
|
||||
<#include "webservices_youtube_api_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "webservices_youtube_video_not_found_exception_text">
|
||||
Reference in New Issue
Block a user