Update src/core/I18n.js

Co-authored-by: Florian Bischof <design.falke@gmail.com>
This commit is contained in:
Yohan Boniface
2024-02-27 21:30:12 +01:00
committed by GitHub
parent c3a5b981a9
commit e619eac438

View File

@ -23,7 +23,7 @@ export function setLocale(code) {
locale = code;
}
// @function translate(string: String, data?: Object): String
// Actually try to translate the `string`, with optionnal variable passed in `data`.
// Actually try to translate the `string`, with optional variable passed in `data`.
export function translate(string, data = {}) {
if (locale && locales[locale] && locales[locale][string] !== undefined) {
string = locales[locale][string];