chore: consolidate repeat-use i18n keys #1604
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR moves repeat-use i18n keys into
app.json
, explicitly references that namespace as needed in the appropriate files, and cleans up a few related details. This work enables more of a standardized, taxonomy-style approach as we continue to enhance functionality in Web UI overall.Closes #1600.
Details
The
app.json
file now includes i18n key categories for repeat-use items:actions
(things that are likely to appear on buttons and similar):add
browse
cancel
change
clear
close
copy
create
delete
download
edit
import
more
moreInfo
noThanks
OK
pinVerb
(to distinguish between that andterms.pinNoun
when languages differ)rename
reset
save
saving
selectAll
submit
unpin
unselectAll
nav
(things that appear in navigation furniture):bugsLink
codeLink
revision
status
(repeat-instance global status messages):connectedToIpfs
connectingToIpfs
couldNotConnect
terms
(either IPFS terms of art, or extremely common words in the Web UI context):address
addresses
advanced
agent
api
apiAddress
blocks
connection
downSpeed
example
file
files
folder
folders
gateway
in
latency
location
name
node
out
peer
peerId
peers
pinNoun
(to distinguish between that andactions.pinVerb
when languages differ)pins
publicKey
rateIn
rateOut
repo
size
totalIn
totalOut
unknown
upSpeed
tour
(previously existed, but didn't contain complete list of keys):back
close
finish
next
skip
tooltip