From ec7b3c75ed4a5c456dcd3b091f35525c6304dc4b Mon Sep 17 00:00:00 2001
From: sequencerr <45060278+sequencerr@users.noreply.github.com>
Date: Sun, 7 Apr 2024 17:04:44 +0200
Subject: [PATCH 1/2] Add usage examples. translation.md

---
 docs/development/translation.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/docs/development/translation.md b/docs/development/translation.md
index ce2754cae..a096801ed 100644
--- a/docs/development/translation.md
+++ b/docs/development/translation.md
@@ -1,5 +1,18 @@
 # Translation
 
+## Usage
+
+In templates:
+```
+{{ translate 'your_field' scope='EntityNameOrScope' category='fields'  }}
+{{ translateOption this.myField scope='EntityNameOrScope' field='your_field' }}
+```
+In views:
+```js
+this.translate('your_field', 'options', 'EntityNameOrScope')[this.myField]
+this.getLanguage().translateOption(this.myField, 'your_field', 'EntityNameOrScope')
+```
+
 ## PO file
 
 ### Generating PO file

From 8deea21727b72095581659de0fc8414955ed1e2a Mon Sep 17 00:00:00 2001
From: sequencerr <45060278+sequencerr@users.noreply.github.com>
Date: Sun, 7 Apr 2024 20:43:21 +0200
Subject: [PATCH 2/2] Update translation.md

---
 docs/development/translation.md | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/docs/development/translation.md b/docs/development/translation.md
index a096801ed..f92b1a180 100644
--- a/docs/development/translation.md
+++ b/docs/development/translation.md
@@ -2,16 +2,7 @@
 
 ## Usage
 
-In templates:
-```
-{{ translate 'your_field' scope='EntityNameOrScope' category='fields'  }}
-{{ translateOption this.myField scope='EntityNameOrScope' field='your_field' }}
-```
-In views:
-```js
-this.translate('your_field', 'options', 'EntityNameOrScope')[this.myField]
-this.getLanguage().translateOption(this.myField, 'your_field', 'EntityNameOrScope')
-```
+See: https://docs.espocrm.com/development/frontend/templates/#translate
 
 ## PO file