mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Incorporate i18n into UI elements (#1471)
* Update zh-tw string table (till 975343d2)
* Prepare localization table
* Implement i18n for Performers & Tags
* Add "add" action strings
* Use Lodash merge for deep merging language JSONs
The original implementation does not properly merge language files, causing unexpected localization string fallback behavior.
* Localize pagination strings
* Use Field name value as null id fallback
...otherwise FormattedMessage is gonna throw when the ID is null
* Use localized "Path" string for all instances
* Localize the "Interface" tab under settings
* Localize scene & performer cards
* Rename locale folder for better compatibility with i18n-ally
* Localize majority of the categories and features
This commit is contained in:
@@ -6,6 +6,7 @@ import { Link } from "react-router-dom";
|
||||
import * as GQL from "src/core/generated-graphql";
|
||||
import { NavUtils, TextUtils } from "src/utils";
|
||||
import { Icon, TruncatedText } from "src/components/Shared";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
interface ISceneListTableProps {
|
||||
scenes: GQL.SlimSceneDataFragment[];
|
||||
@@ -97,14 +98,30 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
<thead>
|
||||
<tr>
|
||||
<th />
|
||||
<th className="text-left">Title</th>
|
||||
<th>Rating</th>
|
||||
<th>Duration</th>
|
||||
<th>Tags</th>
|
||||
<th>Performers</th>
|
||||
<th>Studio</th>
|
||||
<th>Movies</th>
|
||||
<th>Gallery</th>
|
||||
<th className="text-left">
|
||||
<FormattedMessage id="title" />
|
||||
</th>
|
||||
<th>
|
||||
<FormattedMessage id="rating" />
|
||||
</th>
|
||||
<th>
|
||||
<FormattedMessage id="duration" />
|
||||
</th>
|
||||
<th>
|
||||
<FormattedMessage id="tags" />
|
||||
</th>
|
||||
<th>
|
||||
<FormattedMessage id="performers" />
|
||||
</th>
|
||||
<th>
|
||||
<FormattedMessage id="studio" />
|
||||
</th>
|
||||
<th>
|
||||
<FormattedMessage id="movies" />
|
||||
</th>
|
||||
<th>
|
||||
<FormattedMessage id="gallery" />
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>{props.scenes.map(renderSceneRow)}</tbody>
|
||||
|
||||
Reference in New Issue
Block a user