Skip to content

Commit

Permalink
Fix french translation
Browse files Browse the repository at this point in the history
  • Loading branch information
mlamberts78 committed Aug 21, 2024
1 parent d74ff97 commit b2fd106
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions dist/weather-chart-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ const locale = {
'windy-variant': 'Blåsigt'
},
fr: {
'tempHi': 'Temperature max',
'tempLo': 'Temperature min',
'tempHi': 'Température max',
'tempLo': 'Température min',
'precip': 'Précipitations',
'feelsLike': 'Ressenti',
'units': {
Expand All @@ -360,18 +360,18 @@ const locale = {
'N', 'N-NE', 'NE', 'E-NE', 'E', 'E-SE', 'SE', 'S-SE',
'S', 'S-SO', 'SO', 'O-SO', 'O', 'O-NO', 'NO', 'N-NO', 'N'
],
'clear-night': 'Nuit dégagé',
'clear-night': 'Nuit dégagée',
'cloudy': 'Nuageux',
'fog': 'Brouillard',
'hail': 'Grèle',
'lightning': 'Tonnère',
'lightning-rainy': 'Orage',
'partlycloudy': 'Couvert partielle',
'pouring': 'Forte Pluie',
'hail': 'Grêle',
'lightning': 'Orage',
'lightning-rainy': 'Orage et Pluie',
'partlycloudy': 'Éclaircies',
'pouring': 'Fortes Pluies',
'rainy': 'Pluie',
'snowy': 'Neige',
'snowy-rainy': 'Neige et Pluie',
'sunny': 'Ensoleillée',
'sunny': 'Ensoleillé',
'windy': 'Venteux',
'windy-variant': 'Venteux'
},
Expand Down Expand Up @@ -18351,6 +18351,8 @@ drawChart({ config, language, weather, forecastItems } = this) {
},
];

const chart_text_color = (config.forecast.chart_text_color === 'auto') ? textColor : config.forecast.chart_text_color;

if (config.forecast.style === 'style2') {
datasets[0].datalabels = {
display: function (context) {
Expand All @@ -18363,7 +18365,7 @@ drawChart({ config, language, weather, forecastItems } = this) {
anchor: 'center',
backgroundColor: 'transparent',
borderColor: 'transparent',
color: config.forecast.chart_text_color || config.forecast.temperature1_color,
color: chart_text_color || config.forecast.temperature1_color,
font: {
size: parseInt(config.forecast.labels_font_size) + 1,
lineHeight: 0.7,
Expand All @@ -18381,7 +18383,7 @@ drawChart({ config, language, weather, forecastItems } = this) {
anchor: 'center',
backgroundColor: 'transparent',
borderColor: 'transparent',
color: config.forecast.chart_text_color || config.forecast.temperature2_color,
color: chart_text_color || config.forecast.temperature2_color,
font: {
size: parseInt(config.forecast.labels_font_size) + 1,
lineHeight: 0.7,
Expand Down Expand Up @@ -18484,7 +18486,7 @@ drawChart({ config, language, weather, forecastItems } = this) {
borderRadius: 0,
borderWidth: 1.5,
padding: config.forecast.precipitation_type === 'rainfall' && config.forecast.show_probability && config.forecast.type !== 'hourly' ? 3 : 4,
color: config.forecast.chart_text_color || textColor,
color: chart_text_color || textColor,
font: {
size: config.forecast.labels_font_size,
lineHeight: 0.7,
Expand Down

0 comments on commit b2fd106

Please sign in to comment.