Is it possible to pass a variable within a text field or rich text in strapi ? And when fetched api it repalce the variable with value

System Information
  • Strapi Version: 4.7
  • Operating System: ubuntu 20.04
  • Database: postgresql
  • Node Version: 18.16
  • NPM Version: 10.2.3
  • Yarn Version: 1.22.9
  • using docker image node:18.16-alpine

Add dynamic variable within value of any field

I have multiple single types in strapi like Home, About, Contact. I want to pass a common variable or field value within another field like-

In Home I have field “section1” i want to set value like “We are present for {years} in industry”. In About I have field “about_content” i want to set value like “Some other text. We have {years} + experience. Some more content”

When I fetch api I want result for home.section1 =“We are present for 14 in industry” about.about_content = “Some other text. We have 14 + experience. Some more content”

Is there any ways to implement this ? It can be from env variable or from another global field from strapi