Commit a131ab14 authored by Dave Schuyler's avatar Dave Schuyler Committed by Commit Bot

[docs] replace i18n-content examples with $i18n{}

This CL replaces some examples of using old i18n with new $i18n{}
replacements.

Bug: 677338
Change-Id: Ibdd8b98bd067262879ea11842b5b20c2c4ac34e7
Reviewed-on: https://chromium-review.googlesource.com/820550
Commit-Queue: Dave Schuyler <dschuyler@chromium.org>
Reviewed-by: default avatarHector Carmona <hcarmona@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523525}
parent 8abd79f4
......@@ -24,10 +24,10 @@ WebUI resources in `components/` will be added in your specific project folder.
`src/components/hello_world/hello_world.html:`
```html
<!DOCTYPE HTML>
<html i18n-values="dir:textdirection">
<html dir="$i18n{textdirection}">
<head>
<meta charset="utf-8">
<title i18n-content="helloWorldTitle"></title>
<title>$i18n{helloWorldTitle}</title>
<link rel="stylesheet" href="hello_world.css">
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://resources/js/load_time_data.js"></script>
......@@ -35,10 +35,9 @@ WebUI resources in `components/` will be added in your specific project folder.
<script src="strings.js"></script>
<script src="hello_world.js"></script>
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<h1 i18n-content="helloWorldTitle"></h1>
<body style="font-family:$i18n{fontfamily};font-size:$i18n{fontSize}">
<h1>$i18n{helloWorldTitle}</h1>
<p id="welcome-message"></p>
<script src="chrome://resources/js/i18n_template.js"></script>
</body>
</html>
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment