LocaleLink
Last updated
Last updated
Locale aware <Link />
component for routing. See for <Link />
documentation.
Ensure
<LocaleLink />
is rendered within hierarchy.
href
(String|): Path section of URL.
[as
] (String|): Actual path (including the query) shows in the browser.
[locale
] (String): A locale string, e.g. id-id
, en-id
, etc.
[passHref
] (Boolean): Passes href to <a>
child that doesn't have href attribute.
[prefetch
] (Boolean): Allows all the future interaction paths of your app to be instant.
[replace
] (Boolean): Uses replace state instead of the default push state.
[shallow
] (Boolean): Allows changing URL without running getInitialProps
.
<a>