|
9 | 9 | <input |
10 | 10 | type="text" |
11 | 11 | id="searchInput" |
12 | | - placeholder="<%= i18n.hero?.searchPlaceholder || 'Search templates...' %>" |
| 12 | + placeholder="<%= i18n.hero?.searchPlaceholder %>" |
13 | 13 | class="search-input" |
14 | 14 | autocomplete="off" |
15 | 15 | > |
|
26 | 26 | <div class="filter-groups"> |
27 | 27 | <!-- Category Filter --> |
28 | 28 | <div class="filter-group"> |
29 | | - <label><%= i18n.filters?.category || 'Category:' %></label> |
| 29 | + <label><%= i18n.filters?.category %></label> |
30 | 30 | <select id="categoryFilter" class="filter-select"> |
31 | | - <option value=""><%= i18n.filters?.allCategories || 'All Categories' %></option> |
| 31 | + <option value=""><%= i18n.filters?.allCategories %></option> |
32 | 32 | <% categories.forEach(cat => { %> |
33 | 33 | <option value="<%= cat %>"><%= cat %></option> |
34 | 34 | <% }) %> |
|
37 | 37 | </div> |
38 | 38 |
|
39 | 39 | <div class="results-count"> |
40 | | - <span id="resultsCount"><%= templates.length %></span> <%= i18n.filters?.resultsCount || 'templates found' %> |
| 40 | + <span id="resultsCount"><%= templates.length %></span> <%= i18n.filters?.resultsCount %> |
41 | 41 | </div> |
42 | 42 | </div> |
43 | 43 | </section> |
44 | 44 |
|
45 | 45 | <!-- Templates Grid --> |
46 | 46 | <% const types = [ |
47 | | - { key: 'embedded', name: i18n.types?.embedded || 'Built-in' }, |
48 | | - { key: 'external', name: i18n.types?.external || 'Official External' }, |
49 | | - { key: 'third_party', name: i18n.types?.third_party || 'Third-party' } |
| 47 | + { key: 'embedded', name: i18n.types?.embedded }, |
| 48 | + { key: 'external', name: i18n.types?.external }, |
| 49 | + { key: 'third_party', name: i18n.types?.third_party } |
50 | 50 | ]; %> |
51 | 51 |
|
52 | 52 | <% types.forEach(type => { %> |
|
66 | 66 | </svg> |
67 | 67 | </div> |
68 | 68 | <div class="contribution-content"> |
69 | | - <h3><%= i18n.contribution?.title || 'Contribute Your Template' %></h3> |
70 | | - <p><%= i18n.contribution?.description || 'Create and share your template to help more developers start projects quickly.' %></p> |
| 69 | + <h3><%= i18n.contribution?.title %></h3> |
| 70 | + <p><%= i18n.contribution?.description %></p> |
71 | 71 | <a href="<%= baseUrl || '' %>/contribute/index.html" class="btn btn-contribution"> |
72 | | - <%= i18n.contribution?.button || 'View Contribution Guide' %> |
| 72 | + <%= i18n.contribution?.button %> |
73 | 73 | <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> |
74 | 74 | <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/> |
75 | 75 | <polyline points="15 3 21 3 21 9"/> |
|
108 | 108 |
|
109 | 109 | <div class="template-actions"> |
110 | 110 | <a href="<%= baseUrl || '' %>/<%= template.type %>/<%= template.id %>/index.html" class="btn btn-primary"> |
111 | | - <%= i18n.card?.viewDetails || 'View Details' %> |
| 111 | + <%= i18n.card?.viewDetails %> |
112 | 112 | </a> |
113 | 113 | <% if (template.demo) { %> |
114 | 114 | <a href="<%= template.demo %>" target="_blank" rel="noopener" class="btn btn-secondary"> |
115 | | - <%= i18n.card?.liveDemo || 'Live Demo' %> |
| 115 | + <%= i18n.card?.liveDemo %> |
116 | 116 | </a> |
117 | 117 | <% } %> |
118 | 118 | </div> |
|
128 | 128 | <section class="templates"> |
129 | 129 | <div class="container"> |
130 | 130 | <div class="no-results"> |
131 | | - <h3><%= i18n.noResults?.title || 'No templates found' %></h3> |
132 | | - <p><%= i18n.noResults?.description || 'Try adjusting your search or filters' %></p> |
| 131 | + <h3><%= i18n.noResults?.title %></h3> |
| 132 | + <p><%= i18n.noResults?.description %></p> |
133 | 133 | </div> |
134 | 134 | </div> |
135 | 135 | </section> |
|
0 commit comments