mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-11 06:22:31 -05:00
feat: translations support
This commit is contained in:
@@ -4,6 +4,7 @@ import { PageStore } from '../../../utils/stores/';
|
||||
import { HeaderConsumer, MemberConsumer, LinksConsumer } from '../../../utils/contexts/';
|
||||
import { CircleIconButton, MaterialIcon, NavigationContentApp, NavigationMenuList, PopupTop, PopupMain, UserThumbnail } from '../../_shared';
|
||||
import { HeaderThemeSwitcher } from './HeaderThemeSwitcher';
|
||||
import { translateString } from '../../../utils/helpers/';
|
||||
|
||||
function headerPopupPages(user, popupNavItems, hasHeaderThemeSwitcher) {
|
||||
const pages = {
|
||||
@@ -95,9 +96,9 @@ function LoginButton({ user, link, hasHeaderThemeSwitcher }) {
|
||||
className={
|
||||
'button-link sign-in' + (hasHeaderThemeSwitcher ? ' hidden-only-in-small' : ' hidden-only-in-extra-small')
|
||||
}
|
||||
title="Sign in"
|
||||
title={translateString('Sign in')}
|
||||
>
|
||||
Sign in
|
||||
{translateString('Sign in')}
|
||||
</a>
|
||||
</div>
|
||||
) : null;
|
||||
@@ -112,9 +113,9 @@ function RegisterButton({ user, link, hasHeaderThemeSwitcher }) {
|
||||
'button-link register-link' +
|
||||
(hasHeaderThemeSwitcher ? ' hidden-only-in-small' : ' hidden-only-in-extra-small')
|
||||
}
|
||||
title="Register"
|
||||
title={translateString('Register')}
|
||||
>
|
||||
Register
|
||||
{translateString('Register')}
|
||||
</a>
|
||||
</div>
|
||||
) : null;
|
||||
|
||||
Reference in New Issue
Block a user