File tree Expand file tree Collapse file tree
cmp/demo/react-router/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import "./app.css" ;
88
99// TODO (AleksandrSl 29/11/2025): Fix the problem when TranslationProvider cannot be used in the root component.
10- function App ( locale : string ) {
10+ function App ( props : { locale : string } ) {
1111 return (
12- < html lang = { locale } >
12+ < html lang = { props . locale } >
1313 < head >
1414 < meta charSet = "utf-8" />
1515 < meta name = "viewport" content = "width=device-width, initial-scale=1" />
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default function Home() {
99 < section className = "bg-gradient-to-br from-purple-600 to-purple-800 text-white py-24 px-8 text-center" >
1010 < div className = "max-w-4xl mx-auto" >
1111 < h1 className = "text-5xl md:text-6xl font-bold mb-6 leading-tight" >
12- Build Amazing Products Faster
12+ Translate your app on the flight
1313 </ h1 >
1414 < p className = "text-xl md:text-2xl mb-8 opacity-95" >
1515 The all-in-one platform for modern teams to collaborate, innovate,
@@ -32,6 +32,20 @@ export default function Home() {
3232 </ div >
3333 </ section >
3434
35+ < div data-lingo-skip >
36+ If you want to skip translations for a component, you can use
37+ `data-lingo-skip` attribute, or `translate="no"` (which also affects
38+ browser translation, see{ " " }
39+ < a href = "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/translate" >
40+ MDN
41+ </ a >
42+ ).
43+ < div >
44+ Using this attribute will affect the text inside the component. Nested
45+ component will still be translated.
46+ </ div >
47+ </ div >
48+
3549 { /* Features Overview */ }
3650 < section className = "py-16 px-8 bg-gray-50" >
3751 < div className = "max-w-7xl mx-auto" >
You can’t perform that action at this time.
0 commit comments