View source: R/editTranslations.R
editTranslationFile | R Documentation |
Takes one translation file from disk, removes unwanted translations, edits translations according to provided patterns, splits the file into multiple if too big, saves to disk, and returns the number of created files.
editTranslationFile( slug, from.language, filter, replace, fuzzy, size.limit = 8e+05 )
slug |
The slug of the component the translation file belongs to. |
from.language |
The source language of the translation file. |
filter |
Optional. String vector. Translations containing any of these strings will be removed from the translation file. Supports regex, case-sensitive. |
replace |
Optional. Data frame of search/replace string pairs. Needs to contain a column "pattern" and a column "replace". Translation strings will be edited according to these patterns. Supports regex, case-sensitive. |
fuzzy |
Optional. String vector. Translations matching any of these will be marked with "needs editing". Supports regex, case-sensitive. |
size.limit |
The server's file size limit for uploads. Defaults to 800000. Decrease if getting HTTP 413 error on writing. Translation files bigger than this will be split into multiple smaller files. |
The number of saved processed files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.