Add Token and Regular Expression matching

Created on 17 January 2024, 5 months ago
Updated 18 January 2024, 5 months ago

Problem/Motivation

We have a case where the same sentence, depending on where it is, needs to be two different translations. The context option in t() can help if the sources are different and context is added to t() on at least one of the sources, in this case however the source is the same for both translations and there isn't any context provided anyway.

Steps to reproduce

Use it as is.

Proposed resolution

Add a field that allows the user to enter token - regular expression pairs for advanced matching.

Remaining tasks

About to upload a patch for it.

User interface changes

Field added to the right of the context field for the advanced matching.
Token list link and help field added.

API changes

N/A

Data model changes

Extra field for the tokens and regular expressions in the config.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Reg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024