mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Update styleguide to use real i18n helper implementation (#24080)
This commit is contained in:
parent
895036bd7a
commit
605ec0ad9f
@ -1,34 +1,32 @@
|
|||||||
import I18n from "discourse-i18n";
|
import i18n from "discourse/helpers/i18n";
|
||||||
import StyleguideExample from "../../styleguide-example";
|
import StyleguideExample from "../../styleguide-example";
|
||||||
|
|
||||||
const t = I18n.t.bind(I18n);
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<StyleguideExample @title="h1">
|
<StyleguideExample @title="h1">
|
||||||
<h1>{{t "styleguide.sections.typography.example"}}</h1>
|
<h1>{{i18n "styleguide.sections.typography.example"}}</h1>
|
||||||
</StyleguideExample>
|
</StyleguideExample>
|
||||||
|
|
||||||
<StyleguideExample @title="h2">
|
<StyleguideExample @title="h2">
|
||||||
<h2>{{t "styleguide.sections.typography.example"}}</h2>
|
<h2>{{i18n "styleguide.sections.typography.example"}}</h2>
|
||||||
</StyleguideExample>
|
</StyleguideExample>
|
||||||
|
|
||||||
<StyleguideExample @title="h3">
|
<StyleguideExample @title="h3">
|
||||||
<h3>{{t "styleguide.sections.typography.example"}}</h3>
|
<h3>{{i18n "styleguide.sections.typography.example"}}</h3>
|
||||||
</StyleguideExample>
|
</StyleguideExample>
|
||||||
|
|
||||||
<StyleguideExample @title="h4">
|
<StyleguideExample @title="h4">
|
||||||
<h4>{{t "styleguide.sections.typography.example"}}</h4>
|
<h4>{{i18n "styleguide.sections.typography.example"}}</h4>
|
||||||
</StyleguideExample>
|
</StyleguideExample>
|
||||||
|
|
||||||
<StyleguideExample @title="h5">
|
<StyleguideExample @title="h5">
|
||||||
<h5>{{t "styleguide.sections.typography.example"}}</h5>
|
<h5>{{i18n "styleguide.sections.typography.example"}}</h5>
|
||||||
</StyleguideExample>
|
</StyleguideExample>
|
||||||
|
|
||||||
<StyleguideExample @title="h6">
|
<StyleguideExample @title="h6">
|
||||||
<h6>{{t "styleguide.sections.typography.example"}}</h6>
|
<h6>{{i18n "styleguide.sections.typography.example"}}</h6>
|
||||||
</StyleguideExample>
|
</StyleguideExample>
|
||||||
|
|
||||||
<StyleguideExample @title="p">
|
<StyleguideExample @title="p">
|
||||||
<p>{{t "styleguide.sections.typography.paragraph"}}</p>
|
<p>{{i18n "styleguide.sections.typography.paragraph"}}</p>
|
||||||
</StyleguideExample>
|
</StyleguideExample>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user