Browse Source

Translated map button

main
Youen 1 year ago
parent
commit
5c5d1f0d16
  1. 5
      js/dist/forum.js
  2. 2
      js/dist/forum.js.map
  3. 4
      js/src/forum/index.js
  4. 1
      locale/en.yml
  5. 1
      locale/fr.yml

5
js/dist/forum.js vendored

@ -16654,8 +16654,9 @@ flarum_forum_app__WEBPACK_IMPORTED_MODULE_0___default().initializers.add('justov
(_homeLink$parentEleme = homeLink.parentElement) == null ? void 0 : _homeLink$parentEleme.append(globalMapLink);
m.render(globalMapLink, m((flarum_common_components_Link__WEBPACK_IMPORTED_MODULE_8___default()), {
href: "/global-map",
id: "map-link"
}, "Carte"));
id: "map-link",
"class": "Button Button--primary"
}, flarum_forum_app__WEBPACK_IMPORTED_MODULE_0___default().translator.trans('justoverclock-users-map-location.forum.global-map.linkToMap')));
}
}
});

2
js/dist/forum.js.map vendored

File diff suppressed because one or more lines are too long

4
js/src/forum/index.js

@ -101,8 +101,8 @@ extend(HeaderPrimary.prototype, 'onupdate', function() {
globalMapLink.setAttribute('id', 'global-map-link');
homeLink.parentElement?.append(globalMapLink);
m.render(globalMapLink, <Link href="/global-map" id="map-link">
Carte
m.render(globalMapLink, <Link href="/global-map" id="map-link" class="Button Button--primary">
{app.translator.trans('justoverclock-users-map-location.forum.global-map.linkToMap')}
</Link>);
}
}

1
locale/en.yml

@ -13,5 +13,6 @@ justoverclock-users-map-location:
locationNotFound: Location not found
locationCleared: Your location has been deleted
global-map:
linkToMap: Map
title: Global Map
title2: Map of members

1
locale/fr.yml

@ -13,5 +13,6 @@ justoverclock-users-map-location:
locationNotFound: Ville ou commune non trouvée dans ce pays
locationCleared: Votre localité a été supprimée
global-map:
linkToMap: Carte
title: Carte globale
title2: Carte des membres
Loading…
Cancel
Save